commodities.sh

Release calendar and surprise packs for agents

The release calendar joined to what each report last said — expected publish time with a real Eastern offset, the last print's values, week-on-week change, the five-year comparison and a surprise label — in one object instead of three calls and some arithmetic.

How agents call this

Each release carries release_id, cadence, expected_date and expected_at, the agency's source_url, and a last block holding the stored print: per-series value, unit, as_of, prior week, week-on-week change, five-year average and deviation, and the surprise label. last is null when nothing is stored for that release, which is a different statement from a print of zero.

Why not just call the calendar and the data separately?

Because that is three calls and the arithmetic. EIA's API v2 also dropped the v1-style update-catalog queries, so an agent cannot infer what printed today from a series alone. This packages when a report is due, what the last one said and whether it surprised into one object.

What counts as a surprise?

The report's own week-on-week change and its deviation from the five-year band for the same week of year. The label is null when no five-year band is stored — the print is still real, only the interpretation is missing, and it is never invented.

Which releases are covered?

EIA Weekly Petroleum Status, EIA Natural Gas Storage, CFTC Commitments of Traders, USDA WASDE, USDA Crop Progress and USDA Export Sales. Each carries the agency's own page so a human can verify a print an agent acted on.

Can I schedule against expected_at?

It is the agency's typical time for the next scheduled release, not a confirmation it will print then. Where the calendar publishes a clock time it is rendered with a real America/New_York offset rather than UTC, because an agent scheduling in UTC would be an hour out for half the year. Where no clock time is published it is null rather than guessed.

What does it refuse to say?

A placeholder fundamental — a fixture standing in for an upstream outage — is reported as no print at all rather than as official data. The surprise label is null without a five-year band. And /v1/calendar stays free, because when a report is due is the question an agent must answer before deciding whether to pay for anything.

Related