> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 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.

## 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`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/cftc-gov.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "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.


## OpenAPI

````yaml openapi/cftc-gov.json POST /apis/v1/cftc-gov/commitments-of-traders/markets
openapi: 3.1.0
info:
  description: ''
  title: CFTC Commitments of Traders
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    cftc-gov:
      description: ''
      title: CFTC Commitments of Traders
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: e39ae3c4ff59929bae4fa39d7a1059cb32f7865b7a65e373e3a6b2c34410575f
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/cftc-gov/commitments-of-traders/disaggregated-combined
    - /apis/v1/cftc-gov/commitments-of-traders/disaggregated-futures-only
    - /apis/v1/cftc-gov/commitments-of-traders/legacy-combined
    - /apis/v1/cftc-gov/commitments-of-traders/legacy-futures-only
    - /apis/v1/cftc-gov/commitments-of-traders/markets
    - /apis/v1/cftc-gov/commitments-of-traders/supplemental
    - /apis/v1/cftc-gov/commitments-of-traders/tff-combined
    - /apis/v1/cftc-gov/commitments-of-traders/tff-futures-only
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:5a1c0922f7797545ccf1d8b06b9c6dcafe4d159d12df640154adf24432cf2fc0
    facts_hash: e39ae3c4ff59929bae4fa39d7a1059cb32f7865b7a65e373e3a6b2c34410575f
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: cftc-gov
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/cftc-gov/commitments-of-traders/markets:
    post:
      tags:
        - CFTC Commitments of Traders
      summary: Markets
      description: >-
        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.
      operationId: cftc-gov.commitments-of-traders.markets
      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

                    Provider 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.


                    Provider 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
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-22.
                  summary: Official provider example
                  value:
                    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
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.