# COT Report API - Hedge Fund Futures Positioning (CFTC) (`smartmoney-data/cftc-cot-positioning-tracker`) Actor

Weekly CFTC Commitments of Traders data: how hedge funds, asset managers and commercial hedgers are positioned in gold, oil, S\&P 500, Treasuries, FX and Bitcoin futures. Net positions, weekly changes, COT index and extreme-positioning flags.

- **URL**: https://apify.com/smartmoney-data/cftc-cot-positioning-tracker.md
- **Developed by:** [SmartMoney Data](https://apify.com/smartmoney-data) (community)
- **Categories:** Business, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 market positioning reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## COT Report API - Hedge Fund Futures Positioning (CFTC)

**See how hedge funds are positioned in gold, oil, the S\&P 500, Treasuries, currencies and Bitcoin futures every week, and spot when they're at an extreme or making a big move.**

| | |
|---|---|
| **Data** | Official CFTC Commitments of Traders (COT) reports |
| **Price** | $5 per 1,000 market reports, no subscription. Apify's free plan credit covers a first test. |
| **Freshness** | Every Friday 3:30pm ET (positions as of Tuesday) |
| **Try it** | The input is pre-filled with a working example: just click **Start**. |

**Example output**

| Market | Smart money | Net position | Weekly change | COT index | Signal |
|---|---|---|---|---|---|
| GOLD - COMMODITY EXCHANGE | Managed money | +182,400 | +14,900 | 94 | EXTREME_LONG |
| E-MINI S\&P 500 - CME | Leveraged funds | −310,200 | −42,800 | 7 | EXTREME_SHORT |

*Illustrative rows; real runs return the full fields listed under Output.*

Every week the US Commodity Futures Trading Commission publishes who holds every regulated futures market: hedge funds and CTAs, asset managers, banks and dealers, commercial hedgers and small traders. It's one of the few places where **professional speculators' positions are disclosed by law**. The raw data has ~190 columns per market and three report formats. This Actor turns it into one clean row per market with the numbers traders actually use: **net positions, weekly changes, % of open interest and the COT index**, plus flags for extreme positioning and sharp moves.

### What you can do with it

- 🧭 **Contrarian signals:** hedge funds at a 3-year extreme long or short often mark turning points. The `EXTREME_LONG` / `EXTREME_SHORT` flags find them.
- 🚀 **Follow the momentum:** see which markets funds bought or sold hardest this week (`SHARP_BUYING`, `SHARP_SELLING`, `FLIPPED_NET_LONG`).
- 🛢️ **Macro dashboards:** gold, oil, rates, the dollar, yen and Bitcoin positioning in one weekly table.
- 📰 **Newsletters & content:** "Where hedge funds are most crowded this week", ready-made.
- 🤖 **AI agents:** "Are hedge funds long or short gold right now, and how extreme is it?" as one tool call.

### Features

- ✅ **The right "smart money" group per market:** leveraged funds for stock indexes, rates, FX and crypto (Traders in Financial Futures report); managed money for commodities (Disaggregated report). Or force the Legacy report (large speculators vs commercials).
- ✅ **Every trader category** with long, short, net, weekly and 4-week change, % of open interest and COT index
- ✅ **COT index (0-100):** where today's net position sits between its low and high over the last 3 years (adjustable)
- ✅ **Signal flags:** extreme long/short, flipped net long/short, sharp weekly buying/selling
- ✅ **Market shortcuts:** GOLD, CRUDE OIL, S\&P 500, NASDAQ 100, 10Y, EURO, YEN, BITCOIN and more; or any CFTC contract code or market name word
- ✅ **Market-wide mode:** leave markets empty to get this week's biggest hedge fund moves across all futures
- ✅ Futures-only or **futures and options combined**
- ✅ Last 12 weeks of net positions on every row for charts
- ✅ **Summary** of extremes and sharp moves

### How to use it

#### Gold, oil, S\&P 500 and Bitcoin positioning

```json
{ "markets": ["GOLD", "CRUDE OIL", "S&P 500", "BITCOIN"] }
```

#### This week's biggest hedge fund moves across all futures

```json
{ "maxResults": 25 }
```

#### Only markets where hedge funds are at a 5-year extreme

```json
{
  "markets": ["GOLD", "SILVER", "COPPER", "CRUDE OIL", "NATURAL GAS", "CORN", "SOYBEANS", "WHEAT", "S&P 500", "NASDAQ 100", "10Y", "EURO", "YEN", "BITCOIN"],
  "historyWeeks": 260,
  "signalsOnly": true
}
```

#### Any market by name or CFTC code, legacy report

```json
{ "markets": ["COFFEE", "COCOA", "088691"], "reportType": "legacy" }
```

### Output

One row per futures market. Example (illustrative values):

```json
{
  "market": "GOLD - COMMODITY EXCHANGE INC.",
  "contractCode": "088691",
  "reportType": "disaggregated",
  "reportDate": "2026-10-27",
  "openInterest": 512340,
  "openInterestChangeWeek": 8120,
  "smartMoneyGroup": "Managed money (hedge funds, CTAs)",
  "smartMoneyLong": 221900,
  "smartMoneyShort": 39500,
  "smartMoneyNet": 182400,
  "smartMoneyNetChangeWeek": 14900,
  "smartMoneyNetChangePctOi": 2.9,
  "smartMoneyNetChange4Weeks": 31200,
  "smartMoneyNetPctOi": 35.6,
  "smartMoneyCotIndex": 94.2,
  "hedgerGroup": "Producers / merchants / processors / users",
  "hedgerNet": -203100,
  "hedgerCotIndex": 6.1,
  "signal": "EXTREME_LONG",
  "flags": ["EXTREME_LONG"],
  "categories": {
    "managedMoney": { "long": 221900, "short": 39500, "net": 182400, "netChangeWeek": 14900, "cotIndex": 94.2, "netHistory": [182400, 167500, "…"] },
    "swapDealers": { "…": "…" }
  }
}
```

`categories` holds every trader group of the report (dealers, asset managers, leveraged funds, other reportables and small traders for financial futures; producers, swap dealers, managed money, other reportables and small traders for commodities). Download as **JSON, CSV, Excel, XML or HTML**, or fetch via API. The **`SUMMARY`** record lists the extremes and sharp moves of the run.

### Use it from code or an AI agent

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("smartmoney-data/cftc-cot-positioning-tracker").call(
    run_input={"markets": ["GOLD", "S&P 500"]}
)
for m in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(m["market"], m["smartMoneyNet"], m["smartMoneyCotIndex"], m["signal"])
```

**JavaScript**

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('smartmoney-data/cftc-cot-positioning-tracker').call({ signalsOnly: true });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**AI agents (Claude, ChatGPT, Cursor and other MCP clients):** connect the Apify MCP server with this Actor preloaded:

```text
https://mcp.apify.com/?tools=smartmoney-data/cftc-cot-positioning-tracker
```

Then ask, for example:

> Where are hedge funds most extremely positioned in futures this week?

**No-code:** schedule it every Friday evening and send the table to Google Sheets, Slack, Discord, email, Zapier or Make.

### Pricing

**Pay per result:** you're charged for each market report returned. See the **Pricing** tab for current rates. Set a *maximum cost per run* and the Actor stops cleanly when it's reached.

### FAQ

**What is the COT index?**
The current net position scaled between its lowest (0) and highest (100) over the history window (3 years by default). Above 90 means hedge funds are about as long as they've been in 3 years; below 10, about as short.

**Why "leveraged funds" for some markets and "managed money" for others?**
The CFTC splits traders differently for financial futures (Traders in Financial Futures report) and commodities (Disaggregated report). Both groups are hedge funds, CTAs and other professional speculators. `reportType: "legacy"` uses the older "non-commercial" group for every market instead.

**How current is it?**
COT reports show positions as of Tuesday and are published Friday at 3:30pm ET (delayed after US federal holidays).

**A market didn't match. What do I type?**
Use a shortcut from the input description, the 6-character CFTC contract code, or a word from the official market name (e.g. `COFFEE`, `LEAN HOGS`, `ETHER`). Unmatched entries are listed in `SUMMARY.unmatchedMarkets`.

**Is this legal to use?**
Yes. COT reports are public data published by the US Commodity Futures Trading Commission.

### Related Actors

- 🏦 [Hedge Fund 13F Holdings Tracker](https://apify.com/smartmoney-data/sec-13f-hedge-fund-tracker): the stock side of hedge fund positioning.
- 🌑 [Dark Pool Volume Tracker](https://apify.com/smartmoney-data/dark-pool-volume-tracker): weekly off-exchange volume per stock.
- 🩳 [Short Squeeze Radar](https://apify.com/smartmoney-data/short-squeeze-radar): short interest, fails-to-deliver and the Reg SHO list.
- 🎲 [Polymarket Smart Money](https://apify.com/smartmoney-data/polymarket-smart-money): whale trades in prediction markets.

### Support

**Useful?** A short review on this page helps other people find it, and we read every one.

Found a bug or need a feature? Open an issue on the **Issues** tab or email **smartmoney-data@googlegroups.com**. We usually reply within a day.

*Data is provided for informational purposes only and is not investment advice.*

# Actor input Schema

## `markets` (type: `array`):

Markets to report on: a shortcut (GOLD, SILVER, COPPER, CRUDE OIL, NATURAL GAS, CORN, SOYBEANS, WHEAT, S\&P 500, NASDAQ 100, VIX, 10Y, EURO, YEN, BRITISH POUND, US DOLLAR INDEX, BITCOIN), a 6-character CFTC contract code (e.g. 088691), or any word from the CFTC market name (e.g. COFFEE, ETHER). Leave empty for this week's biggest hedge fund moves across all markets.

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

Which COT breakdown to use. Auto uses Traders in Financial Futures for stock indexes, rates, currencies and crypto (smart money = leveraged funds) and Disaggregated for commodities (smart money = managed money). Legacy covers every market with large speculators vs commercials.

## `futuresAndOptions` (type: `boolean`):

Use the futures-and-options-combined reports instead of futures only.

## `historyWeeks` (type: `integer`):

The COT index shows where the current net position sits between its lowest (0) and highest (100) over this many weeks. 156 = 3 years, the usual setting.

## `maxMarketsPerKeyword` (type: `integer`):

A name keyword can match several contracts (GOLD also matches MICRO GOLD). Keep this many, largest open interest first.

## `maxResults` (type: `integer`):

When no markets are given: how many markets with this week's biggest smart money moves to return.

## `minOpenInterest` (type: `integer`):

Skip thinly traded contracts in market-wide mode.

## `extremeThreshold` (type: `integer`):

Flag EXTREME_LONG when the smart money COT index is at or above this, EXTREME_SHORT at or below 100 minus this.

## `sharpChangePctOi` (type: `integer`):

Flag SHARP_BUYING / SHARP_SELLING when the smart money net position changed by at least this % of open interest in one week.

## `signalsOnly` (type: `boolean`):

Return only markets with a flag (extreme, flipped or sharp move). You pay only for rows returned.

## Actor input object example

```json
{
  "markets": [
    "GOLD",
    "CRUDE OIL",
    "S&P 500",
    "BITCOIN"
  ],
  "reportType": "auto",
  "futuresAndOptions": false,
  "historyWeeks": 156,
  "maxMarketsPerKeyword": 2,
  "maxResults": 20,
  "minOpenInterest": 5000,
  "extremeThreshold": 90,
  "sharpChangePctOi": 5,
  "signalsOnly": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

No description

# 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 = {
    "markets": [
        "GOLD",
        "CRUDE OIL",
        "S&P 500",
        "BITCOIN"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("smartmoney-data/cftc-cot-positioning-tracker").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 = { "markets": [
        "GOLD",
        "CRUDE OIL",
        "S&P 500",
        "BITCOIN",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("smartmoney-data/cftc-cot-positioning-tracker").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 '{
  "markets": [
    "GOLD",
    "CRUDE OIL",
    "S&P 500",
    "BITCOIN"
  ]
}' |
apify call smartmoney-data/cftc-cot-positioning-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,smartmoney-data/cftc-cot-positioning-tracker"
        }
    }
}
```

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/hRu0fzDhNWjyrWB7o/builds/SOuBMLMnwgWTJ3b2u/openapi.json
