Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
CFTC Commitments of Traders reports for forex instruments
GET https://api.marketdataset.ai/forex/cot-reports
pair
EURUSD
start_date
end_date
limit
100
500
cursor
curl "https://api.marketdataset.ai/forex/cot-reports?pair=EURUSD&limit=5" \ -H "X-API-KEY: sk_your_key"
import requests response = requests.get( "https://api.marketdataset.ai/forex/cot-reports", params={"pair": "EURUSD", "limit": 5}, headers={"X-API-KEY": "sk_your_key"}, ) print(response.json())
{ "cot_reports": [ { "instrument": "EURUSD", "date": "2024-10-29", "long_positions": 198432, "short_positions": 112847, "net_positions": 85585, "open_interest": 687234, "change_long": 12341, "change_short": -4523 } ], "next_page_url": null, "meta": { "request_id": "req_abc123", "credits_used": 0.02, "credits_remaining": 49.98 } }
instrument
date
long_positions
short_positions
net_positions
open_interest
change_long
change_short