commodities.sh

Cash grain basis for agents

Cash elevator bids for physical grain from USDA AMS daily reports — price in dollars per bushel, basis in cents against a named futures month — searched across all 25 state reports in one call, which AMS itself cannot do.

How agents call this

Each bid row carries location, elevator_class (country, terminal, barge-loading, mill or livestock feeder), sale_type, basis_cents_per_bu_low and _high with the futures month code, price_usd_per_bu_low and _high, the agency's own basis_change, freight and delivery period, and a new_crop flag. Ranges keep both endpoints because AMS publishes ranges; a single value sets low and high equal rather than collapsing, so “a range” and “a point” stay distinguishable.

Why does this need an API at all?

Because AMS Market News is report-centric. Each report has its own slug id and there is no commodity-wide search, so answering “what are elevators bidding for corn” means opening 25 PDFs by hand. This serves one commodity across every report in a single call.

How do I know the numbers are right?

Every row reconciles against the futures settlement the same report prints: price x 100 minus basis equals that month's settle. Across all 25 reports that identity holds to 0.000 cents, and a futures_cross_check block ships with each row so you can see it.

Is this the same as a futures price?

No, and the distinction is the point. A cash elevator bid is what a buyer will pay for physical grain at a location today. It is not a futures settlement, and it is not the NASS season-average price received that /v1/price/ZC returns. All three are correct and all three differ.

Which states and commodities are covered?

Corn, soybeans and four wheat classes across 25 live state reports, plus sorghum where a report carries it. Call /v1/cash-bids/reports free to see the current list, each report's as_of and whether it is still publishing.

How fresh is it, and what is the catch?

Reports publish every business day and carry eod freshness. There is no stored history — this is the latest published print — so it cannot tell you whether basis is strengthening. The report's own basis_change column is the agency's answer to that, and it ships on every row. Three reports are published as covered-but-unparsed rather than omitted, because a visible gap beats a silent absence.

Related