Trader positions API reference
Weekly CFTC positions by trader type in US futures markets
Overview
Who is long and who is short in US futures markets, week by week, by REST and MCP. The data is the Commitments of Traders reports of the US Commodity Futures Trading Commission. REST and MCP draw on one credit balance.
A market is its CFTC contract market code, such as 088691. The main contract of a commodity or currency we serve also answers to our id, such as XAU, WTI or EUR.
Figures are counts of contracts, futures only, as the CFTC publishes them, with the change from the week before. There are no prices. The source is named on every answer.
Categories are non_, commercial, total_ and non_ in the legacy report; producer_, swap_, managed_, other_ and non_ in the disaggregated report; and dealer, asset_, leveraged_, other_ and non_ in the financial report.
Every category has long, short and spreading, and the change of each (long_, short_, spreading_). It also has net and net_, which Narwhal works out from the CFTC's counts.
Base URL: https:/. Each route below is an MCP tool of its own, with the same parameters.
What every account gets
| What | Every account |
|---|---|
| The market list | One Markets call |
| One market's latest week | One Markets call |
| One page of weekly history | One Markets call |
See pricing for what a call costs. A request is charged at the price of its API unless a route says otherwise.
- The legacy report covers every market, from 1986.
- The disaggregated report covers physical commodities, from 2006.
- The financial report covers financial futures, from 2006.
- A report counts positions held on a Tuesday and is published on the following Friday, later in a holiday week.
- A
_field from the CFTC is null where the CFTC gives no change.change net_is null on the first report held for a market in a report type.change - The list shows the markets still reported. A market the CFTC no longer reports keeps its history under its code.
- A market that is not in the report you ask for is 404 not_covered and is not charged.
- An empty history page is not charged.
- These figures are republished from public sources, for analysis, not financial, investment, legal or tax advice.
Endpoints
Every route is a GET and needs your key in the Authorization: Bearer header. The examples show the shape of an answer, not live data.
Futures markets with trader positions
GET /v1/markets/positions
Every US futures market in the CFTC's current Commitments of Traders reports, with its code, name, newest week and reports. A market we serve a commodity or currency for carries that id. Positions only, no prices. Source: US Commodity Futures Trading Commission.
MCP: tool positions_.
Parameters
This route takes no parameters.
Response fields
| Field | Type | Sent | Meaning |
|---|---|---|---|
markets | list of object | Always | One per market. |
markets[].market | string | Always | CFTC contract market code. |
markets[].name | string | Always | The CFTC's market and exchange name. |
markets[].commodity | string | Always | Our commodity id, on the main contract of a commodity we serve. |
markets[].currency | string | Always | ISO 4217 code, on the main contract of a currency we serve. |
markets[].group | string | Always | The CFTC's commodity group. |
markets[].contract_ | string | Always | Size of one contract. |
markets[].report_ | string | Always | The newest week held. |
markets[].reports | list of one of legacy, disaggregated, financial | Always | Reports that cover it. |
source | always "US Commodity Futures Trading Commission, Commitments of Traders (futures only)" | Optional | Publisher of the data. |
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
"https://api.narwhalapi.com/v1/markets/positions"{
"markets": [
{
"market": "088691",
"name": "GOLD - COMMODITY EXCHANGE INC.",
"commodity": "XAU",
"currency": null,
"group": "NATURAL RESOURCES",
"contract_units": "(CONTRACTS OF 100 TROY OUNCES)",
"report_date": "2026-11-17",
"reports": [
"legacy",
"disaggregated"
]
},
{
"market": "099741",
"name": "EURO FX - CHICAGO MERCANTILE EXCHANGE",
"commodity": null,
"currency": "EUR",
"group": "FINANCIAL INSTRUMENTS",
"contract_units": "(CONTRACTS OF EUR 125,000)",
"report_date": "2026-11-17",
"reports": [
"legacy",
"financial"
]
}
],
"source": "US Commodity Futures Trading Commission, Commitments of Traders (futures only)"
}Latest trader positions of a futures market
GET /v1/markets/positions/{market}
The newest week of each CFTC report that covers the market: open interest and the long, short and spreading contracts of each trader category, with the changes from the week before, and each category's net position (long minus short) with its change from the previous report. Weekly, futures only; positions, no prices. Source: US Commodity Futures Trading Commission.
MCP: tool positions_.
Parameters
| Parameter | Where | Required | Type | Meaning |
|---|---|---|---|---|
market | path | Yes | string | A CFTC contract market code from the list, such as 088691, or a commodity or currency id such as XAU, WTI or EUR. |
Response fields
| Field | Type | Sent | Meaning |
|---|---|---|---|
market | string | Always | CFTC contract market code. |
name | string | Always | The CFTC's market and exchange name. |
commodity | string | Always | Our commodity id, on the main contract of a commodity we serve. |
currency | string | Always | ISO 4217 code, on the main contract of a currency we serve. |
group | string | Always | The CFTC's commodity group. |
contract_ | string | Always | Size of one contract. |
report_ | string | Always | The newest week held. |
reports | list of object | Always | One per report. |
reports[].report_ | string | Always | The Tuesday the positions are counted on. |
reports[].open_ | integer | Always | Open contracts. |
reports[].open_ | integer | Always | Weekly change. |
reports[].traders | list of object | Always | One per category. |
reports[].traders[].category | one of non_commercial, commercial, total_reportable, non_reportable, producer_merchant, swap_dealer, managed_money, dealer, asset_manager, leveraged_funds, other_reportable | Always | Trader category. |
reports[].traders[].long | integer | Always | Long contracts. |
reports[].traders[].short | integer | Always | Short contracts. |
reports[].traders[].spreading | integer | Always | Null where the report gives no spreading figure. |
reports[].traders[].long_ | integer | Always | Change in long. |
reports[].traders[].short_ | integer | Always | Change in short. |
reports[].traders[].spreading_ | integer | Always | Change in spreading. |
reports[].traders[].net | integer | Always | Long minus short; spreading left out. |
reports[].traders[].net_ | integer | Always | Change in net since this market's previous report. |
reports[].report | one of legacy, disaggregated, financial | Always | Which report. |
source | always "US Commodity Futures Trading Commission, Commitments of Traders (futures only)" | Optional | Publisher of the data. |
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
"https://api.narwhalapi.com/v1/markets/positions/XAU"{
"market": "088691",
"name": "GOLD - COMMODITY EXCHANGE INC.",
"commodity": "XAU",
"currency": null,
"group": "NATURAL RESOURCES",
"contract_units": "(CONTRACTS OF 100 TROY OUNCES)",
"report_date": "2026-11-17",
"reports": [
{
"report": "legacy",
"report_date": "2026-11-17",
"open_interest": 407834,
"open_interest_change": 3109,
"traders": [
{
"category": "non_commercial",
"long": 210051,
"short": 43919,
"spreading": 73515,
"long_change": -16183,
"short_change": 7792,
"spreading_change": 11785,
"net": 166132,
"net_change": -23975
},
{
"category": "commercial",
"long": 77005,
"short": 270755,
"spreading": null,
"long_change": 6542,
"short_change": -17230,
"spreading_change": null,
"net": -193750,
"net_change": 23772
}
]
},
{
"report": "disaggregated",
"report_date": "2026-11-17",
"open_interest": 407834,
"open_interest_change": 3109,
"traders": [
{
"category": "managed_money",
"long": 121994,
"short": 19052,
"spreading": 45048,
"long_change": -5412,
"short_change": 3987,
"spreading_change": 4148,
"net": 102942,
"net_change": -9399
}
]
}
],
"source": "US Commodity Futures Trading Commission, Commitments of Traders (futures only)"
}Weekly trader positions of a futures market
GET /v1/markets/positions/{market}/history
One market's weeks in one CFTC report, newest first: legacy from 1986, disaggregated and financial from 2006. Each week has every trader category's net position and net change. Up to 1,000 weeks a page, with next_. One call a page; a page with no week is free. Source: US Commodity Futures Trading Commission.
MCP: tool positions_.
Parameters
| Parameter | Where | Required | Type | Meaning |
|---|---|---|---|---|
market | path | Yes | string | A CFTC contract market code from the list, such as 088691, or a commodity or currency id such as XAU, WTI or EUR. |
report | query | No | one of legacy, disaggregated, financial | legacy (every market, from 1986), disaggregated (physical commodities, from 2006) or financial (financial futures, from 2006). |
start | query | No | string | First report date, YYYY-MM-DD. |
end | query | No | string | Last report date, YYYY-MM-DD. |
limit | query | No | integer | Weeks in a page, 1 to 1000. |
cursor | query | No | string | next_ of the page before. Send the same filters with it. |
Response fields
| Field | Type | Sent | Meaning |
|---|---|---|---|
market | string | Always | CFTC contract market code. |
name | string | Always | The CFTC's market and exchange name. |
commodity | string | Always | Our commodity id, on the main contract of a commodity we serve. |
currency | string | Always | ISO 4217 code, on the main contract of a currency we serve. |
group | string | Always | The CFTC's commodity group. |
contract_ | string | Always | Size of one contract. |
report | one of legacy, disaggregated, financial | Always | The report asked for. |
weeks | list of object | Always | Newest first. |
weeks[].report_ | string | Always | The Tuesday the positions are counted on. |
weeks[].open_ | integer | Always | Open contracts. |
weeks[].open_ | integer | Always | Weekly change. |
weeks[].traders | list of object | Always | One per category. |
weeks[].traders[].category | one of non_commercial, commercial, total_reportable, non_reportable, producer_merchant, swap_dealer, managed_money, dealer, asset_manager, leveraged_funds, other_reportable | Always | Trader category. |
weeks[].traders[].long | integer | Always | Long contracts. |
weeks[].traders[].short | integer | Always | Short contracts. |
weeks[].traders[].spreading | integer | Always | Null where the report gives no spreading figure. |
weeks[].traders[].long_ | integer | Always | Change in long. |
weeks[].traders[].short_ | integer | Always | Change in short. |
weeks[].traders[].spreading_ | integer | Always | Change in spreading. |
weeks[].traders[].net | integer | Always | Long minus short; spreading left out. |
weeks[].traders[].net_ | integer | Always | Change in net since this market's previous report. |
next_ | string | Always | Pass as cursor to read the next page. Always sent; null on the last page. |
source | always "US Commodity Futures Trading Commission, Commitments of Traders (futures only)" | Optional | Publisher of the data. |
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
"https://api.narwhalapi.com/v1/markets/positions/EUR/history?report=financial&limit=1"{
"market": "099741",
"name": "EURO FX - CHICAGO MERCANTILE EXCHANGE",
"commodity": null,
"currency": "EUR",
"group": "FINANCIAL INSTRUMENTS",
"contract_units": "(CONTRACTS OF EUR 125,000)",
"report": "financial",
"weeks": [
{
"report_date": "2026-11-17",
"open_interest": 866032,
"open_interest_change": 11327,
"traders": [
{
"category": "asset_manager",
"long": 484828,
"short": 337594,
"spreading": 54608,
"long_change": -8888,
"short_change": 9355,
"spreading_change": 1669,
"net": 147234,
"net_change": -18243
},
{
"category": "leveraged_funds",
"long": 116493,
"short": 193080,
"spreading": 30456,
"long_change": 2442,
"short_change": 7353,
"spreading_change": 90,
"net": -76587,
"net_change": -4911
}
]
}
],
"next_cursor": "Y290OjA5OTc0MTpmaW5hbmNpYWw6OnwyMDI2LTExLTE3",
"source": "US Commodity Futures Trading Commission, Commitments of Traders (futures only)"
}Errors
Errors use the shared problem shape with a request_. See Errors and credits for the shape and the credit headers. Failed requests are not charged.
| Code | Status | Meaning |
|---|---|---|
invalid_ | 400 | A parameter is missing, unknown, repeated or outside its range. |
invalid_ | 400 | The cursor is not one this request returned, or it comes from a different request. |
not_ | 404 | No futures market matches the id. Not charged. |
not_ | 404 | The market is not in the report asked for. Not charged. |
insufficient_ | 402 | Your credit balance is less than the request costs. |
area_ | 503 | The stored data cannot answer right now. Not charged. |
invalid_ | 401 | The Bearer key is missing, malformed, unknown, or inactive. |
rate_ | 429 | The network or account per-minute limit was reached. Retry after the time in the Retry-After header. |
Was this page helpful?