Browse all documentation

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, commercial, total_reportable and non_reportable in the legacy report; producer_merchant, swap_dealer, managed_money, other_reportable and non_reportable in the disaggregated report; and dealer, asset_manager, leveraged_funds, other_reportable and non_reportable in the financial report.

Every category has long, short and spreading, and the change of each (long_change, short_change, spreading_change). It also has net and net_change, which Narwhal works out from the CFTC's counts.

Base URL: https://api.narwhalapi.com. Each route below is an MCP tool of its own, with the same parameters.

What every account gets

WhatEvery account
The market listOne Markets call
One market's latest weekOne Markets call
One page of weekly historyOne 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 _change field from the CFTC is null where the CFTC gives no change.
  • net_change is null on the first report held for a market in a report type.
  • 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_list_markets.

Parameters

This route takes no parameters.

Response fields

FieldTypeSentMeaning
marketslist of objectAlwaysOne per market.
markets[].marketstringAlwaysCFTC contract market code.
markets[].namestringAlwaysThe CFTC's market and exchange name.
markets[].commoditystringAlwaysOur commodity id, on the main contract of a commodity we serve.
markets[].currencystringAlwaysISO 4217 code, on the main contract of a currency we serve.
markets[].groupstringAlwaysThe CFTC's commodity group.
markets[].contract_unitsstringAlwaysSize of one contract.
markets[].report_datestringAlwaysThe newest week held.
markets[].reportslist of one of legacy, disaggregated, financialAlwaysReports that cover it.
sourcealways "US Commodity Futures Trading Commission, Commitments of Traders (futures only)"OptionalPublisher of the data.
Request
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
  "https://api.narwhalapi.com/v1/markets/positions"
Example response
{
  "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_get_market.

Parameters

ParameterWhereRequiredTypeMeaning
marketpathYesstringA CFTC contract market code from the list, such as 088691, or a commodity or currency id such as XAU, WTI or EUR.

Response fields

FieldTypeSentMeaning
marketstringAlwaysCFTC contract market code.
namestringAlwaysThe CFTC's market and exchange name.
commoditystringAlwaysOur commodity id, on the main contract of a commodity we serve.
currencystringAlwaysISO 4217 code, on the main contract of a currency we serve.
groupstringAlwaysThe CFTC's commodity group.
contract_unitsstringAlwaysSize of one contract.
report_datestringAlwaysThe newest week held.
reportslist of objectAlwaysOne per report.
reports[].report_datestringAlwaysThe Tuesday the positions are counted on.
reports[].open_interestintegerAlwaysOpen contracts.
reports[].open_interest_changeintegerAlwaysWeekly change.
reports[].traderslist of objectAlwaysOne per category.
reports[].traders[].categoryone of non_commercial, commercial, total_reportable, non_reportable, producer_merchant, swap_dealer, managed_money, dealer, asset_manager, leveraged_funds, other_reportableAlwaysTrader category.
reports[].traders[].longintegerAlwaysLong contracts.
reports[].traders[].shortintegerAlwaysShort contracts.
reports[].traders[].spreadingintegerAlwaysNull where the report gives no spreading figure.
reports[].traders[].long_changeintegerAlwaysChange in long.
reports[].traders[].short_changeintegerAlwaysChange in short.
reports[].traders[].spreading_changeintegerAlwaysChange in spreading.
reports[].traders[].netintegerAlwaysLong minus short; spreading left out.
reports[].traders[].net_changeintegerAlwaysChange in net since this market's previous report.
reports[].reportone of legacy, disaggregated, financialAlwaysWhich report.
sourcealways "US Commodity Futures Trading Commission, Commitments of Traders (futures only)"OptionalPublisher of the data.
Request
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
  "https://api.narwhalapi.com/v1/markets/positions/XAU"
Example response
{
  "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_cursor. One call a page; a page with no week is free. Source: US Commodity Futures Trading Commission.

MCP: tool positions_get_history.

Parameters

ParameterWhereRequiredTypeMeaning
marketpathYesstringA CFTC contract market code from the list, such as 088691, or a commodity or currency id such as XAU, WTI or EUR.
reportqueryNoone of legacy, disaggregated, financiallegacy (every market, from 1986), disaggregated (physical commodities, from 2006) or financial (financial futures, from 2006).
startqueryNostringFirst report date, YYYY-MM-DD.
endqueryNostringLast report date, YYYY-MM-DD.
limitqueryNointegerWeeks in a page, 1 to 1000.
cursorqueryNostringnext_cursor of the page before. Send the same filters with it.

Response fields

FieldTypeSentMeaning
marketstringAlwaysCFTC contract market code.
namestringAlwaysThe CFTC's market and exchange name.
commoditystringAlwaysOur commodity id, on the main contract of a commodity we serve.
currencystringAlwaysISO 4217 code, on the main contract of a currency we serve.
groupstringAlwaysThe CFTC's commodity group.
contract_unitsstringAlwaysSize of one contract.
reportone of legacy, disaggregated, financialAlwaysThe report asked for.
weekslist of objectAlwaysNewest first.
weeks[].report_datestringAlwaysThe Tuesday the positions are counted on.
weeks[].open_interestintegerAlwaysOpen contracts.
weeks[].open_interest_changeintegerAlwaysWeekly change.
weeks[].traderslist of objectAlwaysOne per category.
weeks[].traders[].categoryone of non_commercial, commercial, total_reportable, non_reportable, producer_merchant, swap_dealer, managed_money, dealer, asset_manager, leveraged_funds, other_reportableAlwaysTrader category.
weeks[].traders[].longintegerAlwaysLong contracts.
weeks[].traders[].shortintegerAlwaysShort contracts.
weeks[].traders[].spreadingintegerAlwaysNull where the report gives no spreading figure.
weeks[].traders[].long_changeintegerAlwaysChange in long.
weeks[].traders[].short_changeintegerAlwaysChange in short.
weeks[].traders[].spreading_changeintegerAlwaysChange in spreading.
weeks[].traders[].netintegerAlwaysLong minus short; spreading left out.
weeks[].traders[].net_changeintegerAlwaysChange in net since this market's previous report.
next_cursorstringAlwaysPass as cursor to read the next page. Always sent; null on the last page.
sourcealways "US Commodity Futures Trading Commission, Commitments of Traders (futures only)"OptionalPublisher of the data.
Request
curl -H "Authorization: Bearer $NARWHAL_API_KEY" \
  "https://api.narwhalapi.com/v1/markets/positions/EUR/history?report=financial&limit=1"
Example response
{
  "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_id. See Errors and credits for the shape and the credit headers. Failed requests are not charged.

CodeStatusMeaning
invalid_query400A parameter is missing, unknown, repeated or outside its range.
invalid_cursor400The cursor is not one this request returned, or it comes from a different request.
not_found404No futures market matches the id. Not charged.
not_covered404The market is not in the report asked for. Not charged.
insufficient_credits402Your credit balance is less than the request costs.
area_unavailable503The stored data cannot answer right now. Not charged.
invalid_api_key401The Bearer key is missing, malformed, unknown, or inactive.
rate_limit_exceeded429The network or account per-minute limit was reached. Retry after the time in the Retry-After header.

Was this page helpful?