# US CFTC Commitments of Traders (COT) Futures Positioning MCP (`zertax/us-cftc-cot-futures-mcp`) Actor

Extract zero-key weekly US CFTC Commitments of Traders (COT) futures & options positioning from the official Socrata API: Disaggregated Commodities, Traders in Financial Futures (TFF), and Legacy reports with computed net positioning, % of open interest, and weekly changes.

- **URL**: https://apify.com/zertax/us-cftc-cot-futures-mcp.md
- **Developed by:** [Andy Tertzakian](https://apify.com/zertax) (community)
- **Categories:** AI, MCP servers, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US CFTC Commitments of Traders (COT) Futures Positioning Scraper (MCP-Ready)

Extract live weekly **US Commodity Futures Trading Commission (CFTC) Commitments of Traders (COT)** futures and options positioning data with **zero API key required** from the official CFTC Socrata Open Data API — covering **Disaggregated Commodities** (Managed Money, Producer/Merchant, Swap Dealers), **Traders in Financial Futures (TFF)** (Leveraged Funds, Asset Managers, Dealers across Equities, FX, Rates & Crypto), and **Legacy COT** (Non-Commercial vs Commercial) — complete with computed institutional quant metrics (`managed_money_net`, `managed_money_net_pct_oi`, `change_managed_money_net`, `leveraged_funds_net`, `asset_manager_net`, `noncommercial_net`, top-4/top-8 net trader concentration) as clean JSON, CSV, Excel, or live via **Model Context Protocol (MCP)**.

***

### Supported CFTC COT Reports

| `reportType` | Official CFTC Socrata Dataset | Institutional Positioning Breakdown |
| --- | --- | --- |
| `disaggregated_futures` *(Default)* | `72hh-3qpy` (Futures Only) | Managed Money, Producer/Merchant, Swap Dealers, Other Reportables, Non-Reportables (Energy, Metals, Ags) |
| `disaggregated_combined` | `kh3c-gbw2` (Futures & Options) | Disaggregated delta-adjusted Futures + Options combined positioning |
| `tff_futures` | `gpe5-46if` (Futures Only) | Leveraged Funds (Hedge Funds/CTAs), Asset Managers, Dealer/Intermediaries (S\&P 500, Nasdaq, Treasuries, FX, Bitcoin) |
| `tff_combined` | `yw9f-hn96` (Futures & Options) | TFF delta-adjusted Futures + Options combined positioning |
| `legacy_futures` | `6dca-aqww` (Futures Only) | Classic Non-Commercial (Large Speculators) vs Commercial (Hedgers) & Non-Reportables |

***

### Example Input & Normalized Quant Output

#### Query WTI Crude Oil Managed Money Positioning

```json
{
  "reportType": "disaggregated_futures",
  "commodityQuery": "CRUDE OIL",
  "dateFrom": "2026-10-01",
  "maxItems": 25
}
```

#### Sample Normalized Output Record

```json
{
  "record_id": "261117067411F",
  "report_type": "disaggregated_futures",
  "report_family": "disaggregated",
  "futures_or_combined": "FutOnly",
  "report_date": "2026-11-17",
  "report_week": "2026 Report Week 46",
  "market_and_exchange_names": "CRUDE OIL, LIGHT SWEET-WTI - ICE FUTURES EUROPE",
  "contract_market_name": "CRUDE OIL, LIGHT SWEET-WTI",
  "exchange_name": "ICE FUTURES EUROPE",
  "cftc_contract_code": "067411",
  "cftc_market_code": "ICEU",
  "commodity_name": "CRUDE OIL",
  "commodity_subgroup_name": "PETROLEUM AND PRODUCTS",
  "commodity_group_name": "NATURAL RESOURCES",
  "open_interest": 749158,
  "change_open_interest": -27051,
  "total_traders": 113,
  "managed_money_long": 20031,
  "managed_money_short": 19819,
  "managed_money_net": 212,
  "managed_money_net_pct_oi": 0.03,
  "change_managed_money_net": 14324,
  "prod_merc_net": 117264,
  "swap_dealer_net": -99774,
  "_source": "us_cftc_publicreporting",
  "_schema_version": "1.0.0"
}
```

***

### Use with AI Agents (Claude Desktop, Cursor, MCP)

```json
{
  "mcpServers": {
    "us-cftc-cot-futures": {
      "url": "https://mcp.apify.com/?tools=actors,zertax/us-cftc-cot-futures-mcp"
    }
  }
}
```

***

### Pay-Per-Event Pricing

Automatic tiered discounts (**10% off Bronze**, **25% off Silver**, **40% off Gold+**):

| Event | Free Tier | Gold+ Tier | When Billed |
| --- | :---: | :---: | --- |
| `apify-actor-start` | `$0.00005` | `$0.00005` | Once per Actor run (Apify's default minimal start fee) |
| `query-executed` | `$0.01` | `$0.006` | Once per CFTC Socrata API query executed |
| `cot-record` *(Primary)* | `$0.005` (`$5 / 1,000`) | `$0.003` (`$3 / 1,000`) | Per weekly CFTC COT positioning record extracted |

***

### More Public Regulatory, Trade & ESG Data Actors (MCP-Ready)

Built by [`zertax`](https://apify.com/zertax) — clean-room, serverless, Pay-Per-Event Python Actors with strict Pydantic schemas, UTC provenance, and 1-click Streamable HTTP MCP support:

**Corporate Filings, International Trade & Market Positioning**

- **[SEC EDGAR Exhibit 21 Subsidiaries MCP](https://apify.com/zertax/sec-edgar-exhibit-21-subsidiaries-mcp)** — Form 10-K corporate parent-to-subsidiary trees & jurisdictions (KYB/AML/M\&A)
- **[US Census HS10 Trade Flows & Tariff Duties MCP](https://apify.com/zertax/us-census-hs-trade-tariffs-mcp)** — Monthly US imports/exports, customs value, CIF & calculated tariff duties (`CAL_DUT_MO`)
- **[Canadian SEC 40-F & 6-K Filings (MJDS) MCP](https://apify.com/zertax/canadian-sec-40f-6k-filings-mcp)** — TSX/NYSE interlisted AIF, MD\&A, NI 43-101 & NI 51-101 filings
- **[US CFTC Commitments of Traders (COT) MCP](https://apify.com/zertax/us-cftc-cot-futures-mcp)** — Weekly Disaggregated, TFF Financial & Legacy positioning with computed net exposure

**Voluntary Carbon, ESG & Environmental Compliance**

- **[Verra VCS Carbon Credit Registry MCP](https://apify.com/zertax/verra-carbon-registry-mcp)** — 2026 Platts RaaS projects, VCU issuances, corporate retirements, holdings & cancellations
- **[Gold Standard Impact Registry Carbon Credits MCP](https://apify.com/zertax/gold-standard-carbon-registry-mcp)** — Certified projects, UN SDG impacts, CORSIA & credit batches (Verra-aligned schema)
- **[US EPA & Canada ECCC Facility GHG Emissions MCP](https://apify.com/zertax/epa-eccc-ghgrp-emissions-mcp)** — Unified North American facility CO2e, CO2, CH4 & N2O emissions
- **[US EPA ECHO Environmental Compliance MCP](https://apify.com/zertax/us-epa-echo-enforcement-mcp)** — Clean Air (CAA), Clean Water (CWA/NPDES) & RCRA compliance, violations & penalties

**REST API, Free 2026 Sample CSVs & Multi-Tool MCP**

- **REST JSON API (RapidAPI Hub — Free Basic + Pro/Ultra/Mega plans):** https://rapidapi.com/andy.tertzakian/api/sec-exhibit-21-subsidiaries-us-tariffs-verra-carbon-api
- **Public GitHub Showcase, Python Quickstarts, n8n Workflows & Sample CSVs:** https://github.com/AndyTertzakian/regulatory-tariffs-carbon-mcp
- **Official MCP Registry / Glama Connector:** `io.github.AndyTertzakian/zertax-regulatory-tariffs-carbon-mcp` ([Glama](https://glama.ai/mcp/connectors/io.github.AndyTertzakian/zertax-regulatory-tariffs-carbon-mcp))
- **Free 100-Row 2026 Preview Datasets on Kaggle:** [SEC Exhibit 21](https://www.kaggle.com/datasets/tertzak/sec-exhibit-21-corporate-subsidiaries-2026) · [US Census Tariffs](https://www.kaggle.com/datasets/tertzak/us-census-hs10-tariff-duties-2026) · [Verra VCS Retirements](https://www.kaggle.com/datasets/tertzak/verra-vcs-carbon-credit-retirements-2026) · [Canadian 40-F/6-K](https://www.kaggle.com/datasets/tertzak/canadian-sec-40f-6k-ni-43-101-filings-2026)

# Actor input Schema

## `reportType` (type: `string`):

Select which official CFTC Commitments of Traders Socrata dataset to query.

## `commodityQuery` (type: `string`):

Optional case-insensitive substring match against CFTC market_and_exchange_names (e.g., 'CRUDE OIL', 'GOLD', 'NAT GAS', 'CORN', 'E-MINI S\&P 500', 'BITCOIN').

## `exchange` (type: `string`):

Optional case-insensitive filter matching exchange name or CFTC market code (e.g., 'NEW YORK MERCANTILE EXCHANGE', 'NYME', 'COMMODITY EXCHANGE', 'CHICAGO MERCANTILE EXCHANGE', 'CME', 'ICE').

## `cftcContractCode` (type: `string`):

Optional exact 6-character CFTC contract market code filter (e.g., '067651' NYMEX WTI Crude, '088691' COMEX Gold, '023651' Henry Hub Nat Gas, '13874A' E-Mini S\&P 500).

## `dateFrom` (type: `string`):

Optional inclusive start report date in YYYY-MM-DD format (COT reports are published for Tuesday positions).

## `dateTo` (type: `string`):

Optional inclusive end report date in YYYY-MM-DD format.

## `maxItems` (type: `integer`):

Maximum number of newest-first weekly COT records to return (supports automatic Socrata pagination up to 5,000).

## Actor input object example

```json
{
  "reportType": "disaggregated_futures",
  "maxItems": 50
}
```

# Actor output Schema

## `items` (type: `string`):

Direct API link to validated weekly CFTC Commitments of Traders positioning records.

## `summary` (type: `string`):

Compact JSON summary listing report type, endpoint, SoQL filter, queries executed, records extracted, and billed events.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("zertax/us-cftc-cot-futures-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxItems": 50 }

# Run the Actor and wait for it to finish
run = client.actor("zertax/us-cftc-cot-futures-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxItems": 50
}' |
apify call zertax/us-cftc-cot-futures-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zertax/us-cftc-cot-futures-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IS2mHevsSRKROQPam/builds/gjIt3VMT3fQRduuPr/openapi.json
