Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaFinanceAvailable now

CFTC Commitments of Traders · Markets

cftc-gov/commitments-of-traders/markets

Get market and financial data with CFTC Commitments of Traders · Markets from Alexandria through one Spiral API key. Start here to find the contract_market_code (and exchange_code / commodity names) to pass to a report function, or to see which markets a dataset covers and how far back. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
report requiredone of
legacy_futures_only, legacy_combined, disaggregated_futures_only, disaggregated_combined, tff_futures_only, tff_combined, supplemental
—

Which dataset to list contract markets for.

querytext—

Case-insensitive substring of contract_market_name or commodity_name (GOLD, WHEAT, S&P, EURO FX). Pattern: ^[^%_]+$.

cursortext—

next_cursor from the previous page of the same query.

page_sizenumber
1 to 500
100

page_size

exchange_codetext—

Exchange code without padding: CBT, CME, CMX, NYME, ICUS, ICEU, CMXE, FREX... Pattern: ^[A-Za-z0-9]{1,4}$.

commodity_group_nametext—

AGRICULTURE, NATURAL RESOURCES or FINANCIAL INSTRUMENTS (case-insensitive).

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "cftc-gov/commitments-of-traders/markets",
    "input": {
      "report": "legacy_futures_only"
    }
  }'

Frequently asked questions

How much does CFTC Commitments of Traders · Markets cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use CFTC Commitments of Traders · Markets through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "cftc-gov/commitments-of-traders/markets"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use CFTC Commitments of Traders · Markets?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use CFTC Commitments of Traders · Markets?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.