curl --request POST \
--url https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"report": "legacy_futures_only"
}
'import requests
url = "https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets"
payload = { "report": "legacy_futures_only" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({report: 'legacy_futures_only'})
};
fetch('https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'report' => 'legacy_futures_only'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets"
payload := strings.NewReader("{\n \"report\": \"legacy_futures_only\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"report\": \"legacy_futures_only\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"report\": \"legacy_futures_only\"\n}"
response = http.request(request)
puts response.read_body{
"count": 1,
"data_last_modified": "Fri, 18 Sep 2026 19:30:08 GMT",
"dataset_id": "6dca-aqww",
"markets": [
{
"commodity_group_name": "NATURAL RESOURCES",
"commodity_name": "GOLD",
"commodity_subgroup_name": "PRECIOUS METALS",
"contract_market_code": "088691",
"contract_market_name": "GOLD",
"earliest_report_date": "2022-09-13T00:00:00.000",
"exchange_code": "CMX",
"latest_report_date": "2026-09-15T00:00:00.000",
"row_count": 207
}
],
"next_cursor": "1",
"observed_at_ms": 1790037950482,
"report": "legacy_futures_only",
"source_url": "https://publicreporting.cftc.gov/resource/6dca-aqww.json?$select=cftc_contract_market_code,contract_market_name,cftc_market_code,commodity_name,commodity_subgroup_name,commodity_group_name,max(report_date_as_yyyy_mm_dd)%20as%20latest_report_date,min(report_date_as_yyyy_mm_dd)%20as%20earliest_report_date,count(*)%20as%20row_count&$where=(upper(contract_market_name)%20like%20%27%25GOLD%25%27%20OR%20upper(commodity_name)%20like%20%27%25GOLD%25%27)&$group=cftc_contract_market_code,contract_market_name,cftc_market_code,commodity_name,commodity_subgroup_name,commodity_group_name&$order=latest_report_date%20DESC,cftc_contract_market_code%20ASC&$limit=2&$offset=0"
}Markets
Start here to find the contract_market_code (and exchange_code / commodity names) to pass to a report function, or to see which markets a dataset covers and how far back.
curl --request POST \
--url https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"report": "legacy_futures_only"
}
'import requests
url = "https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets"
payload = { "report": "legacy_futures_only" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({report: 'legacy_futures_only'})
};
fetch('https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'report' => 'legacy_futures_only'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets"
payload := strings.NewReader("{\n \"report\": \"legacy_futures_only\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"report\": \"legacy_futures_only\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"report\": \"legacy_futures_only\"\n}"
response = http.request(request)
puts response.read_body{
"count": 1,
"data_last_modified": "Fri, 18 Sep 2026 19:30:08 GMT",
"dataset_id": "6dca-aqww",
"markets": [
{
"commodity_group_name": "NATURAL RESOURCES",
"commodity_name": "GOLD",
"commodity_subgroup_name": "PRECIOUS METALS",
"contract_market_code": "088691",
"contract_market_name": "GOLD",
"earliest_report_date": "2022-09-13T00:00:00.000",
"exchange_code": "CMX",
"latest_report_date": "2026-09-15T00:00:00.000",
"row_count": 207
}
],
"next_cursor": "1",
"observed_at_ms": 1790037950482,
"report": "legacy_futures_only",
"source_url": "https://publicreporting.cftc.gov/resource/6dca-aqww.json?$select=cftc_contract_market_code,contract_market_name,cftc_market_code,commodity_name,commodity_subgroup_name,commodity_group_name,max(report_date_as_yyyy_mm_dd)%20as%20latest_report_date,min(report_date_as_yyyy_mm_dd)%20as%20earliest_report_date,count(*)%20as%20row_count&$where=(upper(contract_market_name)%20like%20%27%25GOLD%25%27%20OR%20upper(commodity_name)%20like%20%27%25GOLD%25%27)&$group=cftc_contract_market_code,contract_market_name,cftc_market_code,commodity_name,commodity_subgroup_name,commodity_group_name&$order=latest_report_date%20DESC,cftc_contract_market_code%20ASC&$limit=2&$offset=0"
}Request contract
- Method and path: POST /apis/v1/cftc-gov/commitments-of-traders/markets
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/cftc-gov/commitments-of-traders/markets
{
"operationId": "cftc-gov.commitments-of-traders.markets",
"method": "POST",
"path": "/apis/v1/cftc-gov/commitments-of-traders/markets",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"page_size": 1,
"query": "gold",
"report": "legacy_futures_only"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"commodity_group_name": {
"description": "AGRICULTURE, NATURAL RESOURCES or FINANCIAL INSTRUMENTS (case-insensitive).",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"cursor": {
"description": "next_cursor from the previous page of the same query.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"exchange_code": {
"description": "Exchange code without padding: CBT, CME, CMX, NYME, ICUS, ICEU, CMXE, FREX... Pattern: ^[A-Za-z0-9]{1,4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page_size": {
"default": 100,
"description": "page_size\n\nProvider reference: minimum 1; maximum 500; default 100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 500,
"min": 1
}
},
"query": {
"description": "Case-insensitive substring of contract_market_name or commodity_name (GOLD, WHEAT, S&P, EURO FX). Pattern: ^[^%_]+$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"report": {
"description": "Which dataset to list contract markets for.\n\nProvider reference: allowed values [\"legacy_futures_only\", \"legacy_combined\", \"disaggregated_futures_only\", \"disaggregated_combined\", \"tff_futures_only\", \"tff_combined\", \"supplemental\"].",
"type": "string"
}
},
"required": [
"report"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
Discover the contract markets of one Commitments of Traders dataset: distinct cftc_contract_market_code with contract market name, exchange code, commodity name / group / subgroup, earliest and latest report date and row count, most recently reported first. Filter by name substring, exchange or commodity group; page with page_size / cursor.
The response contains the tool result directly.
The provider identifies markets as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
commodity_group_name | string | |
commodity_name | string | |
commodity_subgroup_name | string | |
contract_market_code | string | cftc_contract_market_code: the contract_market_code filter of the report functions. |
contract_market_name | string | |
earliest_report_date | string | |
exchange_code | string | cftc_market_code with the padding trimmed (CMX, CBT, CMXE). |
latest_report_date | string | Most recent report date for this market in the dataset (floating timestamp). |
row_count | number | Weekly rows for this market in the dataset. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.