Rates and markets endpoint
COT positioning
Weekly CFTC positioning, to see when speculators are crowded on one side of a currency.
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.fxmacrodata.com/v1/cot/usd"
import os
import requests
response = requests.get(
"https://api.fxmacrodata.com/v1/cot/usd",
headers={"X-API-Key": os.environ["FXMACRODATA_API_KEY"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.fxmacrodata.com/v1/cot/usd", {
headers: { "X-API-Key": process.env.FXMACRODATA_API_KEY },
});
const payload = await response.json();
console.log(payload);
What it can do
4 routes in this endpoint
Get CFTC Commitment of Traders (COT) data
Use for weekly CFTC Commitment of Traders futures positioning, including commercial and non-commercial long/short/net exposure, or the Traders in Financial Futures breakdown (dealer, asset manager, leveraged funds) via report=tff_futures.
GET/v1/positioningCFTC instrument and report definitions
List supported futures instruments and CFTC report combinations, including separate main, micro and historical contracts.
GET/v1/positioning/{instrument}CFTC contract positioning history
Retrieve CFTC positioning for one instrument, report type and date range. Position dates are distinct from publication timestamps.
GET/v1/cot/{currency}/latestGet the latest COT positioning and change from the prior week
Return the most recent CFTC Commitments of Traders values for a currency's futures contract, with the percentage change from the previous report.
Example response
What comes back
A shortened example of the JSON this endpoint returns. Lists are cut to two rows here.
{
"currency": "JPY",
"instrument": "JAPANESE YEN - CHICAGO MERCANTILE EXCHANGE",
"source": "CFTC public reporting API",
"source_url": "https://publicreporting.cftc.gov/resource/6dca-aqww.json",
"fx_overlay": {
"pair": "USD/JPY"
},
"start_date": "2025-09-01",
"end_date": "2026-03-01",
"data": [
{
"date": "2026-02-24",
"announcement_datetime": 1771996800,
"open_interest": 245678,
"noncommercial_long": 62400,
"noncommercial_short": 70420,
"noncommercial_net": -8020
}
]
}
Reference
Parameters and response fields
GET /v1/cot/{currency} Get CFTC Commitment of Traders (COT) data
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
Returns weekly CFTC Commitment of Traders report data for the specified currency's futures contract. The default is the Legacy Futures-Only report; report= selects the Legacy combined, Traders in Financial Futures (TFF) futures-only / combined, or Disaggregated futures-only report from the same CFTC public datasets.
Supported currencies: AUD, CAD, CHF, EUR, GBP, JPY, MXN, NZD, USD, XAU
Authentication: USD data is publicly available on the same freemium terms as USD announcements: anonymous callers are limited to the most recent 90 days (an earlier start_date is clamped automatically) and a new report becomes readable 15 minutes after the CFTC publishes it. All other currencies require a professional API key supplied via ?api_key=<key> or the X-API-Key header. Authenticated callers (any valid key) receive the full requested history for every currency.
Data source: CFTC public reporting API — Legacy futures-only https://publicreporting.cftc.gov/resource/6dca-aqww.json; Legacy combined jun7-fc8e; TFF futures-only gpe5-46if; TFF combined yw9f-hn96; Disaggregated futures-only 72hh-3qpy. Non-default reports echo report, report_name, report_dataset_id and available_reports.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 10 currencies. |
| start_date | query | string | Start date YYYY-MM-DD |
| end_date | query | string | End date YYYY-MM-DD |
| limit | query | integer | Maximum rows to return. Defaults to 20. Maximum 100. Default: 20. |
| offset | query | integer | Number of rows to skip after most-recent-first ordering. Default: 0. |
| page | query | integer | One-based page number. When supplied, it takes precedence over offset. |
| report | query | string | CFTC report type. legacy_futures (default): Legacy Futures-Only report with commercial / non-commercial / non-reportable positions. legacy_combined: the same categories from the futures-and-options combined report. tff_futures / tff_combined: Traders in Financial Futures report with dealer, asset manager, leveraged funds, other reportable and non-reportable long / short / spreading positions (FX contracts and the dollar index; not gold). disaggregated_futures: producer/merchant, swap dealer, managed money and other reportable positions (COMEX gold only). Each report adds the matching *_net and *_zscore columns. Default: legacy_futures. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
Response fields
| Field | Type | Details |
|---|---|---|
| currency | string | |
| instrument | string | |
| report | string | |
| report_name | string | |
| report_dataset_id | string | |
| available_reports[] | string[] | |
| source | string | |
| source_url | string | |
| provenance | object | |
| provenance.publisher | string | |
| provenance.publisher_url | string | |
| provenance.storage | string | |
| provenance.served_by | string | |
| provenance.timestamp_field | string | |
| provenance.value_field | string | |
| fx_overlay | object | |
| fx_overlay.pair | string | |
| start_date | string | |
| end_date | string | |
| latest_available_date | string | |
| latest_available_announcement_datetime | integer | |
| expected_next_release | string | |
| expected_next_release_epoch | integer | |
| last_sync_status | string | |
| last_sync_datetime | string | |
| data_lag_days | integer | |
| next_expected_cftc_report_date | string | |
| next_expected_cftc_release_date | string | |
| expected_next_release_holiday_adjusted | boolean | |
| expected_next_release_source | string | |
| expected_next_release_source_url | string | |
| expected_next_release_schedule_storage | string | |
| expected_next_release_schedule_last_updated | string | |
| requested_window_has_data | boolean | |
| requested_window_latest_date | string | |
| requested_window_includes_latest_available | boolean |
GET /v1/positioning CFTC instrument and report definitions
An active Individual subscription and API key are required for every request.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
GET /v1/positioning/{instrument} CFTC contract positioning history
An active Individual subscription and API key are required for every request.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| instrumentRequired | path | string | |
| report | query | string | Default: legacy_futures. |
| start_date | query | date | |
| end_date | query | date | |
| limit | query | integer | Default: 100. |
| offset | query | integer | Default: 0. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
GET /v1/cot/{currency}/latest Get the latest COT positioning and change from the prior week
No API key required.
Return the most recent CFTC Commitments of Traders values for a currency's futures contract, with the percentage change from the previous report.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Three-letter currency code of the CFTC futures contract, for example EUR. Allowed: 10 currencies. |
| report | query | string | CFTC report type. legacy_futures (default): Legacy Futures-Only report with commercial / non-commercial / non-reportable positions. legacy_combined: the same categories from the futures-and-options combined report. tff_futures / tff_combined: Traders in Financial Futures report with dealer, asset manager, leveraged funds, other reportable and non-reportable long / short / spreading positions (FX contracts and the dollar index; not gold). disaggregated_futures: producer/merchant, swap dealer, managed money and other reportable positions (COMEX gold only). Each report adds the matching *_net and *_zscore columns. Default: legacy_futures. |
| api_key | query | string | Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header. |
| lang | query | string | Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English. |
Response fields
| Field | Type | Details |
|---|---|---|
| currency | string | |
| instrument | string | |
| report | string | |
| report_name | string | |
| report_dataset_id | string | |
| available_reports[] | string[] | |
| fx_overlay | object | |
| fx_overlay.pair | string | |
| source | string | |
| latest_available_date | string | |
| latest_available_announcement_datetime | integer | |
| expected_next_release | string | |
| expected_next_release_epoch | integer | |
| last_sync_status | string | |
| last_sync_datetime | string | |
| data_lag_days | integer | |
| next_expected_cftc_report_date | string | |
| next_expected_cftc_release_date | string | |
| expected_next_release_holiday_adjusted | boolean | |
| expected_next_release_source | string | |
| expected_next_release_source_url | string | |
| expected_next_release_schedule_storage | string | |
| expected_next_release_schedule_last_updated | string | |
| last_updated | string | |
| data_quality | object | |
| data_quality.source_freshness | string | |
| data_quality.source_monitoring_complete | boolean | |
| data_quality.known_source_gap | boolean | |
| data_quality.source_checked_at | integer | |
| data_quality.source_check_expires_at | integer | |
| data_quality.latest_published_period | string | |
| data_quality.source_permission_status | string | |
| data_quality.commodity_coverage | object | |
| data_quality.commodity_coverage.scope | string | |
| data_quality.commodity_coverage.requested_start | string | |
| data_quality.commodity_coverage.requested_end | string |
Works well with
Endpoints people use alongside COT positioning
The whole API
All 24 endpoint guides
Rates and markets