API TraderAPI QuantAPI DeveloperIncluded with ORTEX Advanced
The CFTC's Commitments of Traders: how many futures contracts each class of trader holds long and short in every US futures market, as of each Tuesday. Speculators and hedgers in the legacy report; producers, swap dealers and managed money in physical commodities; dealers, asset managers and leveraged funds in equity-index, rate and currency futures.
It is the standard weekly read on positioning. A record net long among leveraged funds or managed money is a crowded trade, and the week it starts to shrink is usually the week the price turns. Equity-index and Treasury futures positioning says how funds are leaning before any 13F does.
Each row is one futures market, identified by its CFTC contract market code (13874A is the E-mini S&P 500, 067651 WTI crude, 088691 gold), with the market's name as the CFTC printed it that week.
Available Data Points:
- Period Date: The period the value describes — what the number is about (the valid clock).
- Published At: When the value first became knowable — when the publisher released it (the knowledge clock). Filter on this for anything where look-ahead bias would matter.
- Value: The numeric value, where the series has one.
- Value Text: The textual value, for categorical series such as a trial's status or phase.
- Unit: Unit of the value, e.g.
vehicles,percent,USD. - Value Type:
number,percent,currency,countortext. - Frequency: How often the publisher releases the series.
- Market: The market the reading describes — an ISO-3166 alpha-2 code (
DE), a sub-national one (US-CA), a supranational aggregate (EA,EU) orGLOBAL. - Series Slug: Which series the reading belongs to. Unique within a publisher, not globally.
- Series Name: Human-readable name of the series.
- Source Slug: Publisher/feed identifier, e.g.
kba_registrations. - Source Name: Human-readable name of the publisher or feed.
- Publisher: Who publishes the underlying data.
- Entity Ref: The publisher's own identifier for what the reading is about — a manufacturer name, a securitisation trust, a reactor unit, a country code. Kept so any value can be traced back to the row it was parsed from.
This dataset describes a market, not a company
Every reading here is about a country or a whole market, so there is no ticker in the path and no instrument in the response envelope. That is deliberate: attaching a national print to a listing would be a claim the data does not support. Read it as the context the company-level endpoints are measured against.
Coverage
Every market with at least twenty reportable traders, futures only: about 380 markets in the legacy report, 280 in the disaggregated report and 100 in the Traders in Financial Futures report, from 1986 (legacy) and June 2006 (the other two). Commodity index traders in thirteen agricultural markets come from the supplemental report, from January 2006, which combines futures and options. Weekly, as of Tuesday, released on the third business day after: normally Friday at 15:30 New York time, the next Monday in a holiday week. publishedAt is that release, including the reports the CFTC released weeks late after the federal shutdowns of 2013, 2018-19 and 2025 and during a reporting outage in early 2023. Before 1993 the report was less frequent and published more slowly, and is dated on the CFTC's schedule of the time. Values are contracts. Public domain, credited to the CFTC.
What to look for
Work with net positions, long minus short, and their change from week to week; a level means little without the market's open interest beside it, which is the open_interest series.
A firm is classified as a whole, so a bank hedging a client swap counts as a dealer or a swap dealer, not as a view on the market. Commercial positions mirror the speculators' and say little alone.
The data is at least three days old when released. It shows who was positioned how on Tuesday, not on Friday.
Two dates on every reading, and the difference is the edge
periodDate is what the number is about. publishedAt is when it first became knowable. The gap between them is the whole point of alternative data — and it is also the trap. A Form 10-D describing July is filed in mid-August, so a backtest that treats the period as the knowledge date reads a document six weeks before it existed.
from_date and to_date filter on periodDate, because that is the axis you plot against. Join on publishedAt when you are joining against returns.
Filtering: one market or all of them
Called with no filters, the endpoint returns every series in the dataset, for every market ORTEX covers it in. Each row names its own market, seriesSlug and sourceSlug, so a single request is enough to chart the whole dataset.
Narrow it with any combination of market (one market), series (one measure) and source (one publisher). Filter values that are each valid but select nothing together return 400 invalidSelection rather than a misleading empty result.
How much history there is
Several of these publishers overwrite their own pages and keep no archive. Where that is so, the series begins on the day ORTEX started capturing it and lengthens from there — nobody, including the publisher, can supply the days before that. Everything ORTEX has ever fetched is archived on capture, so the series only ever grows.
Try it out! You can test the API with the trial key TEST. Simply include it in your request headers; either here, or add the header "Ortex-Api-Key": "TEST" to your http request.
Trial key restrictions: Trial keys may be limited to a specific date range and set of regions. Requests outside the allowed regions or entirely outside the allowed date range are rejected; a date window that partially overlaps the allowed range is trimmed to it, reported in meta.restriction.
Get full access! Get a key at app.ortex.com/apis
