# Gloom COT (Commitments of Traders) Data API

> Gloom COT (Commitments of Traders) Data API is a paid API for AI agents from api.gloom.sh, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-01).

Retrieves CFTC Commitments of Traders (COT) report data including long, short, spreading, and net positions by trader category for futures contracts.

## Facts

- Endpoint: GET https://api.gloom.sh/v1/cot?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gloom-cot-commitments-of-traders-data-api-c6ad2f07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_43iq4W-RiXBEFYj9nmLAD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gloom-cot-commitments-of-traders-data-api-c6ad2f07
```

Example prompt: Pull the latest Commitments of Traders report data from Gloom for the crude oil futures contract — I want to see the noncommercial net, long, and short positions along with open interest.

## When to prefer this

Choose this endpoint when you need structured, machine-readable CFTC Commitments of Traders positioning data for futures markets — particularly when building sentiment indicators, market analysis tools, or monitoring speculator positioning shifts. Prefer over scraping CFTC's website directly for clean JSON output with categorized positions.

## Known failure modes

- Invalid or unrecognized contract/commodity code returns empty data array
- Malformed properties filter parameter may return 400 error
- COT data may lag real-time markets since CFTC publishes weekly; most recent report date may be several days old
- Rate limiting or payment failure (x402) if USDC payment is not supplied
- Requesting a date before available history may return no data

## How this service works

Gloom is a free, open-source finance terminal for desktop and TUI with charts, news, filings, portfolios, alerts, and plugins.

## Output

Returns an array of COT report entries, each containing: report date, contract code, exchange code, commodity code, open interest, and a position object broken down by trader category (e.g. noncommercial) with id, label, net, long, short, and spreading values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "position": {
     "id": "noncommercial",
     "net": 100,
     "long": 300,
     "label": "Noncommercial",
     "short": 200,
     "spreading": 0
    },
    "reportDate": "2026-09-29",
    "contractCode": "000001",
    "exchangeCode": "ILLUSTRATIVE",
    "openInterest": 1000,
    "commodityCode": "ILLUSTRATIVE"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gloom-cot-commitments-of-traders-data-api-c6ad2f07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gloom.sh](https://www.zero.xyz/host/api.gloom.sh/llms.txt)
