# CFTC 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.

- Provider: Alexandria
- Category: Finance
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `cftc-gov/commitments-of-traders/markets`
- Page: https://spiral.ai/tools/alexandria/cftc-gov/commitments-of-traders/markets

## Pricing

$0.00873 per call.

## Limits

- 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

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `report` (required) | one of | legacy_futures_only, legacy_combined, disaggregated_futures_only, disaggregated_combined, tff_futures_only, tff_combined, supplemental | — | Which dataset to list contract markets for. |
| `query` | text |  | — | Case-insensitive substring of contract_market_name or commodity_name (GOLD, WHEAT, S&P, EURO FX). Pattern: ^[^%_]+$. |
| `cursor` | text |  | — | next_cursor from the previous page of the same query. |
| `page_size` | number | 1 to 500 | 100 | page_size |
| `exchange_code` | text |  | — | Exchange code without padding: CBT, CME, CMX, NYME, ICUS, ICEU, CMXE, FREX... Pattern: ^[A-Za-z0-9]{1,4}$. |
| `commodity_group_name` | text |  | — | AGRICULTURE, NATURAL RESOURCES or FINANCIAL INSTRUMENTS (case-insensitive). |

## Example

```bash
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"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=cftc-gov%2Fcommitments-of-traders%2Fmarkets

## Common questions

### CFTC Commitments of Traders · Markets

**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.

