commodities.sh

Docs

API reference

Paid observation routes settle in USDC per call (x402) or Pro credits. Discovery stays free. Response shape is documented in the observation contract; the machine list lives at /openapi.json.

Discovery

Free — no payment header. Start here to learn instruments and prices.

MethodPathPrice
GET/health

Liveness probe

Free
GET/v1/catalog

Live instruments, freshness claims, and pricing_usd

Free
GET/v1/calendar

Upcoming release calendar

Free
GET/llms.txt

Agent-oriented site map

Free
GET/llms-full.txt

Expanded agent brief

Free
GET/openapi.json

OpenAPI 3.1 machine spec

Free
GET/SKILL.md

Agent skill card

Free
GET/.well-known/agent.json

Agent discovery card

Free
GET/.well-known/x402.json

x402 payment metadata

Free
GET/terms.txt

Plain-text terms

Free
GET/v1/trade/codes

Country and HS codes for forming trade-flow queries

Free
GET/v1/search

Resolve a commodity name or synonym to an instrument code

Free
GET/v1/cash-bids/reports

Which USDA AMS cash grain bid reports exist, what each covers, and how fresh it is

Free
GET/v1/minerals

Which minerals the dossier covers, their curated HS codes and the caveats on comparing supply to trade

Free

Prices & series

Cash and fundies prints, history, stats, observation resolve, and FX context.

MethodPathUSDC
GET

/v1/price/{code}

Latest cash/fundies price observation

$0.01
GET

/v1/prices

Bundle prices (codes=)

$0.02
GET

/v1/history/{code}

Series history

$0.02
GET

/v1/stats/{code}

Realized volatility, change over window, and range over stored history

$0.02
GET

/v1/observation/{id}

Resolve one observation by id — dereferences the inputs[] citations on derived observations

$0.01
GET

/v1/fx/{pair}

FX for commodity context

$0.01
GET

/v1/stats

Volatility, change and range for up to 20 instruments in one call

$0.04

Inventories

EIA weekly stocks with surprise — bundle or single series.

MethodPathUSDC
GET

/v1/inventory/eia

EIA weekly inventories + surprise

$0.03
GET

/v1/inventory/eia/{series}

Single EIA inventory series

$0.02

Positioning

CFTC managed-money Commitments of Traders nets.

MethodPathUSDC
GET

/v1/cot/{code}

CFTC managed-money COT net

$0.02

Spreads & structure

Cash proxies for crack, crush, and basis. Curve and calendar stay stubs until licensed.

MethodPathUSDC
GET

/v1/spreads/crack

3-2-1 crack spread cash proxy

$0.03
GET

/v1/spreads/crush

Soy crush margin proxy

$0.03
GET

/v1/spreads/basis

WTI-Brent basis spread

$0.03

Not live yet

MethodPathStatus
GET

/v1/curve/{root}

Forward curve stub — PHASE_2_REQUIRED until CME/ICE delayed license

501
GET

/v1/spreads/calendar/{root}

Calendar spread stub — available:false until licensed curves

200

Fundamentals

USDA WASDE, crop progress, export sales, and USGS mineral summaries.

MethodPathUSDC
GET

/v1/trade/flows

Bilateral trade volume and value between two countries for a commodity and year (UN Comtrade)

$0.05
GET

/v1/trade/partners

Every trading partner of one country for a commodity and year, ranked by value, with the implied unit value each paid (UN Comtrade)

$0.08
GET

/v1/trade/ranking

Largest exporting or importing countries for a commodity and year, ranked by value, with the implied unit value each realised (UN Comtrade)

$0.08
GET

/v1/fundamentals/wasde

USDA WASDE slice

$0.03
GET

/v1/fundamentals/crop-progress

Crop progress

$0.02
GET

/v1/fundamentals/export-sales

Export sales

$0.02
GET

/v1/producer-prices

Farm-gate producer prices by country for up to 20 commodities in one call (FAOSTAT)

$0.06
GET

/v1/sourcing/{code}

Cross-country sourcing comparison: farm-gate price against export unit value per country, with the share reaching the grower and optional caller-supplied landed costs (FAOSTAT + UN Comtrade)

$0.10
GET

/v1/producer-prices/{code}

Farm-gate producer prices by country for a commodity and year, with dispersion against the peer median (FAOSTAT, CC BY 4.0)

$0.03
GET

/v1/fundamentals/usgs

USGS Mineral Commodity Summaries (annual)

$0.03
GET

/v1/minerals/{mineral}

Critical minerals dossier: USGS mine production and reserves by country joined to UN Comtrade export flows and realised unit values, with supply concentration and US net import reliance — the two sides published side by side and never divided into each other

$0.08
GET

/v1/cash-bids/grain

Cash elevator bids for grain across every USDA AMS daily report at once, with basis against the named futures month, location, grade, freight and delivery — the commodity-wide search AMS itself does not offer

$0.05

Calculators

Caller-supplied freight, position, and FX inputs over catalog or supplied prices.

MethodPathUSDC
GET

/v1/calc/landed-cost

Landed cost from a catalog or supplied price plus caller-supplied freight, duty, insurance, port and handling

$0.02
GET

/v1/calc/trade-margin

Trade margin over a caller-supplied position

$0.02
GET

/v1/calc/break-even

Break-even sell price for a caller-supplied position

$0.02
GET

/v1/calc/fx-impact

Effect of a USD move on an amount held in another currency

$0.02

Snapshots & decisions

Sector bundles and deterministic decision packs for agents.

MethodPathUSDC
GET

/v1/snapshot/{sector}

energy|metals|ags snapshot

$0.05
GET

/v1/decision/{sector}

Deterministic decision pack (single sector)

$0.10
GET

/v1/releases

Release calendar joined to the last print and its surprise — when each report is due, what it last said, and how that compared to the 5-year band

$0.04
GET

/v1/snapshot/all

All-sector snapshot bundle

$0.12
GET

/v1/decision/all

All-sector decision pack bundle

$0.25

Pro & MCP

Credit keys and agent transport — auth details live elsewhere; this is the route map.

MethodPathNotes
POST

/v1/signup

Request a free key — send {email}, verify the emailed link, the key is shown once

None
POST

/v1/signup/verify

Redeem the emailed token: activates the free key and returns it once

None
GET

/v1/quota

Remaining credits this UTC month

Pro key
POST

/v1/subscriptions

Register a release webhook — signed push on EIA, COT or WASDE prints

Pro key
GET

/v1/subscriptions

List this key's webhook subscriptions

Pro key
DELETE

/v1/subscriptions/{id}

Remove one webhook subscription

Pro key
POST

/v1/subscriptions/{id}/test

Send a test delivery to that subscription

Pro key
GET

/v1/subscriptions/{id}/deliveries

Inspect recent delivery attempts and their status

Pro key
POST

/v1/alerts

Create a price alert — edge-triggered, delivered over the same signed webhooks

Pro key
GET

/v1/alerts

List this key's price alerts

Pro key
DELETE

/v1/alerts/{id}

Remove one price alert

Pro key
POST

/api/mcp

MCP handshake is free; observation tools follow the same x402 / credit paywall as REST

Free handshake

See Authentication and Agents for keys, headers, and MCP install.

Where is the machine-readable spec?

GET /openapi.json on the same host. Pair it with /.well-known/x402.json for payment metadata and /v1/catalog for live instruments and pricing_usd.

Are curve and calendar spreads live?

No. /v1/curve/{root} and /v1/spreads/calendar/{root} are deliberate stubs until CME/ICE delayed licenses land. Read catalog claims and observation quality before trading on them.

← Docs hubPricing page →

Related