CFTC COT — Fund Positioning¶
Commodity Futures Trading Commission — weekly Commitments of Traders report (Disaggregated format), with positioning by trader category in the agricultural contracts of CBOT, CME and ICE. Managed money is the category that the agricultural market refers to as the "fund position".
API¶
from agrobr import cftc
# Fund positions in soybeans since May
df = await cftc.cot("soja", inicio="2026-05-01")
# All 12 mapped agricultural contracts
df = await cftc.cot()
# Futures + options combined
df = await cftc.cot("milho", combined=True)
Semantic dataset with versioned contract:
In the dataset, the columns come out in Portuguese (fundos_compra, fundos_saldo, posicoes_abertas…), and options
come in with combinado=True; the table is in posicionamento_fundos.
Columns — cot¶
| Column | Type | Description |
|---|---|---|
data |
datetime | Reference Tuesday of the report |
commodity |
str | agrobr canonical name (soja, milho, ...) |
contrato |
str | Contract and exchange name (e.g.: SOYBEANS - CHICAGO BOARD OF TRADE) |
codigo_cftc |
str | CFTC contract code |
open_interest |
Int64 | Open contracts |
managed_money_long/short/spread |
Int64 | Fund positions |
managed_money_net |
Int64 | Long − short (calculated) |
producer_long/short |
Int64 | Commercial hedgers |
swap_long/short/spread |
Int64 | Swap dealers |
other_long/short/spread |
Int64 | Other reportables |
nonreportable_long/short |
Int64 | Non-reportable positions |
change_managed_money_long/short |
Int64 | Weekly change (nullable) |
change_open_interest |
Int64 | Weekly change in OI (nullable) |
Contracts¶
soja, farelo_soja, oleo_soja, milho, trigo (SRW), acucar (no. 11),
cafe (C), algodao (no. 2), boi (live cattle), suino (lean hogs),
laranja (FCOJ-A), arroz (rough rice). Accepts canonical name, EN alias or CFTC code; any other value raises
InvalidParameterError with the list. inicio and fim accept date, datetime, and YYYY-MM-DD or
DD/MM/YYYY text.
A period with no reports returns an empty frame with the same 22 columns and dtypes as a populated
result: counts and changes use Int64, dates use datetime64[ns], and text uses the native pandas
dtype. An invalid response envelope still raises ParseError.
The query has a 50,000-record limit. When that limit is reached, the API emits UserWarning and
records it in meta.validation_warnings; meta.source_details contains row_limit and
completeness="unknown". This means completeness has not been established. Request a shorter
period. The dataset preserves the warning and these metadata fields.
MetaInfo¶
Source¶
- API:
https://publicreporting.cftc.gov/resource/72hh-3qpy.json(Socrata, no authentication) - Combined (futures+options):
kh3c-gbw2 - Update: weekly — Friday 15:30 ET, data from Tuesday
- History: June/2006 onward
- License:
livre(public domain, U.S. government)