# CFTC API

> Returns weekly Commitments of Traders reports from the CFTC in legacy, disaggregated, financial futures and supplemental formats.

Category: Finance & Crypto. Region: US. 7 endpoints at `https://api.hoshime.com/v1/cftc/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/cftc
## GET /v1/cftc/reports

Recent weekly Commitments of Traders reports of futures markets whose name contains the text, newest first.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `market` | string | yes | Text in the market name, such as GOLD or WHEAT. (e.g. GOLD) |
| `limit` | integer | no | Items per page, 1 to 100. (default 10; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `commercialLong` (integer (int64)), `commercialShort` (integer (int64)), `commodity` (string), `contractCode` (string), `marketName` (string), `nonCommercialLong` (integer (int64)), `nonCommercialShort` (integer (int64)), `openInterest` (integer (int64)), `reportDate` (string), `traders` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/cftc/reports?market=GOLD&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cftc/latest

The most recent Commitments of Traders reports of all futures markets, newest first.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 100. (default 10; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `commercialLong` (integer (int64)), `commercialShort` (integer (int64)), `commodity` (string), `contractCode` (string), `marketName` (string), `nonCommercialLong` (integer (int64)), `nonCommercialShort` (integer (int64)), `openInterest` (integer (int64)), `reportDate` (string), `traders` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/cftc/latest?limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cftc/disaggregated

Weekly Disaggregated Commitments of Traders: positions of producers, swap dealers, managed money and other reportables, newest first.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `market` | string | no | Text in the market name, case-insensitive, such as GOLD or WHEAT. (e.g. GOLD) |
| `code` | string | no | Exact CFTC contract market code. The markets endpoint lists them. |
| `from` | string | no | Earliest report date, YYYY-MM-DD. |
| `to` | string | no | Latest report date, YYYY-MM-DD. |
| `subgroup` | string | no | CFTC subgroup code, such as A10 (grains) or N16 (currencies). |
| `combined` | string | no | true for the futures-and-options combined report, false for futures only. (one of true, false; default false) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `commodity` (string), `contractCode` (string), `managedMoneyLong` (integer (int64)), `managedMoneyShort` (integer (int64)), `marketName` (string), `nonReportableLong` (integer (int64)), `nonReportableShort` (integer (int64)), `openInterest` (integer (int64)), `otherReportableLong` (integer (int64)), `otherReportableShort` (integer (int64)), `producerMerchantLong` (integer (int64)), `producerMerchantShort` (integer (int64)), `reportDate` (string), `swapDealerLong` (integer (int64)), `swapDealerShort` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/cftc/disaggregated?market=GOLD&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cftc/legacy

Weekly legacy Commitments of Traders: non-commercial, commercial and non-reportable positions, newest first. The reports endpoint reads the same futures-only data by market name.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `market` | string | no | Text in the market name, case-insensitive, such as GOLD or WHEAT. (e.g. GOLD) |
| `code` | string | no | Exact CFTC contract market code. The markets endpoint lists them. |
| `from` | string | no | Earliest report date, YYYY-MM-DD. |
| `to` | string | no | Latest report date, YYYY-MM-DD. |
| `combined` | string | no | true for the futures-and-options combined report, false for futures only. (one of true, false; default false) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `commercialLong` (integer (int64)), `commercialShort` (integer (int64)), `commodity` (string), `contractCode` (string), `marketName` (string), `nonCommercialLong` (integer (int64)), `nonCommercialShort` (integer (int64)), `nonReportableLong` (integer (int64)), `nonReportableShort` (integer (int64)), `openInterest` (integer (int64)), `reportDate` (string)

```bash
curl "https://api.hoshime.com/v1/cftc/legacy?market=GOLD&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cftc/tff

Weekly Traders in Financial Futures report: positions of dealers, asset managers, leveraged funds and other reportables, newest first. Covers the financial markets such as Treasuries, currencies and stock indexes.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `market` | string | no | Text in the market name, case-insensitive, such as GOLD or WHEAT. (e.g. GOLD) |
| `code` | string | no | Exact CFTC contract market code. The markets endpoint lists them. |
| `from` | string | no | Earliest report date, YYYY-MM-DD. |
| `to` | string | no | Latest report date, YYYY-MM-DD. |
| `subgroup` | string | no | CFTC subgroup code, such as A10 (grains) or N16 (currencies). |
| `combined` | string | no | true for the futures-and-options combined report, false for futures only. (one of true, false; default false) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `assetManagerLong` (integer (int64)), `assetManagerShort` (integer (int64)), `commodity` (string), `contractCode` (string), `dealerLong` (integer (int64)), `dealerShort` (integer (int64)), `leveragedFundsLong` (integer (int64)), `leveragedFundsShort` (integer (int64)), `marketName` (string), `nonReportableLong` (integer (int64)), `nonReportableShort` (integer (int64)), `openInterest` (integer (int64)), `otherReportableLong` (integer (int64)), `otherReportableShort` (integer (int64)), `reportDate` (string)

```bash
curl "https://api.hoshime.com/v1/cftc/tff?market=GOLD&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cftc/supplemental

Weekly supplemental report for futures markets with a commodity index trader (CIT) group: index trader positions next to commercial and non-reportable positions, newest first.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `market` | string | no | Text in the market name, case-insensitive, such as GOLD or WHEAT. (e.g. WHEAT) |
| `code` | string | no | Exact CFTC contract market code. The markets endpoint lists them. |
| `from` | string | no | Earliest report date, YYYY-MM-DD. |
| `to` | string | no | Latest report date, YYYY-MM-DD. |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `commercialLongExcludingIndexTraders` (integer (int64)), `commercialShortExcludingIndexTraders` (integer (int64)), `commodity` (string), `contractCode` (string), `indexTraderLong` (integer (int64)), `indexTraderShort` (integer (int64)), `marketName` (string), `nonReportableLong` (integer (int64)), `nonReportableShort` (integer (int64)), `openInterest` (integer (int64)), `reportDate` (string)

```bash
curl "https://api.hoshime.com/v1/cftc/supplemental?market=WHEAT&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/cftc/markets

The futures markets the Commitments of Traders covers, with their contract codes, commodity groups and subgroups.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Text in the commodity name, case-insensitive, such as GOLD or WHEAT. (e.g. GOLD) |
| `group` | string | no | Commodity group to keep. (one of AGRICULTURE, NATURAL RESOURCES, FINANCIAL INSTRUMENTS) |
| `subgroup` | string | no | Commodity subgroup to keep, such as PRECIOUS METALS, GRAINS or CURRENCIES. |
| `code` | string | no | Exact CFTC contract market code. |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Items per page, 1 to 1000. (default 50) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `commodity` (string), `contractCode` (string), `group` (string), `marketName` (string), `subgroup` (string)

```bash
curl "https://api.hoshime.com/v1/cftc/markets?query=GOLD" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
