commodities.sh

USDA WASDE & ags fundies

WASDE-shaped supply and demand slices, NASS crop progress, and FAS export sales for agricultural commodity agents.

How agents call this

Start with GET /v1/calendar for the next WASDE or ESR window, then call /v1/fundamentals/wasde for S&D slices. Always branch on placeholder: if true, tell the user the row is not live official; if false, cite source (FAS PSD vs ESMIS WASDE) and as_of. Crop-progress and export-sales are separate paid paths — they may be placeholder when USDA keys are missing even while WASDE is live. Agents should not imply one successful WASDE call proves NASS/ESR are live.

When is WASDE live vs placeholder?

WASDE tries FAS PSD first, then falls back to USDA's public ESMIS WASDE API (no key required) if PSD is unreachable — either path ships quality official without placeholder. Only if both fail does placeholder: true appear; agents must check the flag either way, and the source field ("USDA FAS PSD" vs "USDA WAOB / ESMIS WASDE") shows which pipeline produced the number.

What about crop progress?

GET /v1/fundamentals/crop-progress returns NASS GOOD+EXCELLENT style progress when NASS_API_KEY works.

Export sales path?

GET /v1/fundamentals/export-sales for FAS ESR when keyed. Pair with /v1/calendar for release timing.

How do agents stay honest on USDA placeholders?

Treat placeholder: true as a hard stop on “official live” claims. Prefer saying the path is wired but upstream/keying is incomplete, and fall back to calendar timing rather than inventing balances.

Related