Skip to content

feat: add Commodities API#9

Merged
alexpipipi merged 1 commit intomainfrom
feat/commodities-api
Apr 8, 2026
Merged

feat: add Commodities API#9
alexpipipi merged 1 commit intomainfrom
feat/commodities-api

Conversation

@alexpipipi
Copy link
Copy Markdown
Contributor

Summary

  • Adds client.commodities.history(code, params) for historical commodity prices from FRED
  • Supports 23 commodity codes (energy, metals, agricultural, indices)
  • Intervals: daily, weekly, monthly (default), quarterly, annual
  • Types: CommodityCode, CommodityInterval, CommodityHistoryParams, CommodityHistoryResponse, CommodityMeta, CommodityDataPoint
  • 3 new unit tests (212 total, all passing)

Test plan

  • TypeScript typecheck passes
  • Build succeeds (CJS + ESM + types)
  • All 212 unit tests pass
  • Smoke test with live API token

🤖 Generated with Claude Code

Adds client.commodities.history(code, params) endpoint covering 23 commodity
codes (energy, metals, agricultural, indices) with daily/weekly/monthly/quarterly/annual
intervals sourced from FRED.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexpipipi alexpipipi merged commit d6490c5 into main Apr 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant