docs: embedder-segment quick start (#26)#28
Conversation
Add 'Beyond Oil — Gas, LNG, Carbon & Fuels' immediately after the Quick
Start example (Brent/WTI stays first): typed futures helpers
futures.euaCarbon().latest() and futures.ttfGas().latest(), plus VLSFO/jet
spot via getLatestPrices({ commodity }). One sentence names the audiences:
maritime compliance (EU ETS/FuelEU), fleet & logistics, LNG/European gas
analytics, CBAM. All helper names verified against src/resources/futures.ts;
commodity codes verified against the backend commodities config. No
fabricated price values — placeholder shapes only.
Test suite: 422 passed, 1 skipped.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 38 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Addresses the README half of #26.
"Beyond Oil — Gas, LNG, Carbon & Fuels"
New compact section immediately after the Quick Start example (Brent/WTI stays first). Three runnable TypeScript examples using the real typed surface:
client.futures.euaCarbon().latest()— EU ETS carbon (EUA) front monthclient.futures.ttfGas().latest()— Dutch TTF, with the other family helpers (.lngJkm(),.naturalGas(),.ukCarbon(), ...) called outclient.getLatestPrices({ commodity: "VLSFO_USD" })/"JET_FUEL_USD"— marine + aviation fuel spotOne sentence names the audiences: maritime compliance (EU ETS / FuelEU Maritime), fleet & logistics fuel costing, LNG/European gas analytics, CBAM reporting. Closes with the remaining spot codes (
EU_CARBON_EUR,DUTCH_TTF_EUR,JKM_LNG_USD,DIESEL_USD,NATURAL_GAS_USD) and a pointer toclient.bunkerFuels, plus a tier note (futures/bunker endpoints are plan-gated, spot works on every tier).Notes on accuracy:
src/resources/futures.ts(ttfGas,lngJkm,euaCarbon,ukCarbonall exist and returnFuturesContractFamilywith.latest());front_month?.last_pricematches theFuturesPrice/FuturesContractMonthtypes.client.bunkerFuels.port()for the VLSFO example: the SDK'sPortBunkerPrices.pricestype is a keyed object (prices.VLSFO), but the live API returnspricesas an array of{grade, price, unit}records — a keyed-access example would type-check yet printundefined. Worth a follow-up issue to fix the type.Open question for Karl (from #26)
The 1.0.0 version bump is intentionally NOT included — that call is Karl's. Current version stays 0.10.0; #26 remains open for the versioning decision.
Verification
npm test: 422 passed, 1 skipped (28 files)🤖 Generated with Claude Code