FinzData commited on
Commit
c0490fa
·
verified ·
1 Parent(s): c61be45

CFTC COT full history, all 7 reports (through 2026-10-06)

Browse files
README.md ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: us-government-public-domain
4
+ license_link: https://www.cftc.gov/MarketReports/CommitmentsofTraders/index.htm
5
+ pretty_name: CFTC Commitments of Traders (COT) — Full History, All Reports
6
+ language:
7
+ - en
8
+ tags:
9
+ - finance
10
+ - futures
11
+ - commodities
12
+ - positioning
13
+ - time-series
14
+ - quant
15
+ - backtesting
16
+ - cftc
17
+ - cot
18
+ task_categories:
19
+ - time-series-forecasting
20
+ - tabular-regression
21
+ size_categories:
22
+ - 1M<n<10M
23
+ configs:
24
+ - config_name: legacy_fo
25
+ data_files: data/legacy_fo.parquet
26
+ default: true
27
+ - config_name: legacy_combined
28
+ data_files: data/legacy_combined.parquet
29
+ - config_name: disagg_fo
30
+ data_files: data/disagg_fo.parquet
31
+ - config_name: disagg_combined
32
+ data_files: data/disagg_combined.parquet
33
+ - config_name: tff_fo
34
+ data_files: data/tff_fo.parquet
35
+ - config_name: tff_combined
36
+ data_files: data/tff_combined.parquet
37
+ - config_name: cit_supplemental
38
+ data_files: data/cit_supplemental.parquet
39
+ ---
40
+
41
+ # CFTC Commitments of Traders (COT) — Full History, All Reports
42
+
43
+ Every weekly **Commitments of Traders** report published by the U.S. Commodity Futures Trading
44
+ Commission, cleaned into one consistent schema and ready for pandas, Polars or DuckDB.
45
+ Seven report families, back to **1986**, about **1.06 million rows** across roughly 1,000 futures markets.
46
+
47
+ Maintained by **[FinzData](https://finzdata.com)**, which offers market data for data scientists, financial analysts and quants.
48
+ FinzData's free tier serves this same data through a REST API and Python client, updated every week.
49
+
50
+ | Config | Report | From | Rows | Markets |
51
+ |---|---|---|---:|---:|
52
+ | `legacy_fo` (default) | Legacy, futures only | 1986-01-15 | 290,400 | 957 |
53
+ | `legacy_combined` | Legacy, futures + options | 1995-03-21 | 279,576 | 946 |
54
+ | `disagg_fo` | Disaggregated, futures only | 2006-06-13 | 185,907 | 657 |
55
+ | `disagg_combined` | Disaggregated, futures + options | 2006-06-13 | 192,030 | 687 |
56
+ | `tff_fo` | Traders in Financial Futures, futures only | 2006-06-13 | 46,932 | 147 |
57
+ | `tff_combined` | Traders in Financial Futures, futures + options | 2006-06-13 | 46,984 | 147 |
58
+ | `cit_supplemental` | Supplemental (Commodity Index Traders) | 2006-01-03 | 13,714 | 13 |
59
+
60
+ The files run through the report dated **2026-10-06**.
61
+
62
+ ## Load it
63
+
64
+ ```python
65
+ from datasets import load_dataset
66
+
67
+ cot = load_dataset("FinzData/cftc-commitments-of-traders", "disagg_fo", split="train").to_pandas()
68
+ ```
69
+
70
+ You can also skip the download and read the Parquet file directly:
71
+
72
+ ```python
73
+ import pandas as pd
74
+
75
+ url = "https://huggingface.co/datasets/FinzData/cftc-commitments-of-traders/resolve/main/data/legacy_fo.parquet"
76
+ df = pd.read_parquet(url)
77
+ gold = df[df["code"] == "088691"].set_index("date")
78
+ net_spec = gold["noncomm_positions_long_all"] - gold["noncomm_positions_short_all"]
79
+ ```
80
+
81
+ ## Always current: the FinzData API (free)
82
+
83
+ This snapshot is refreshed from time to time. For data that updates every week, plus daily U.S. equities,
84
+ corporate actions, SEC fundamentals and U.S. macro series, use the free FinzData API:
85
+
86
+ ```bash
87
+ pip install finzdata
88
+ ```
89
+
90
+ ```python
91
+ import finzdata as fz
92
+
93
+ client = fz.Client("YOUR_FREE_KEY") # free key: https://finzdata.com
94
+ gold = client.cot(report="disagg_fo", code="088691", start="2015-01-01")
95
+ ```
96
+
97
+ - Free API key and downloads: https://finzdata.com
98
+ - Free 10-row samples of every dataset: https://finzdata.com/samples
99
+ - Documentation: https://finzdata.com/docs
100
+ - Pricing: https://finzdata.com/pricing
101
+
102
+ ## Schema
103
+
104
+ Every config shares four leading columns:
105
+
106
+ | Column | Meaning |
107
+ |---|---|
108
+ | `report` | Report family (same as the config name) |
109
+ | `code` | CFTC contract market code, for example `088691` for gold and `067651` for WTI crude |
110
+ | `market` | Market and exchange name |
111
+ | `date` | Report "as of" date (Tuesday positions) |
112
+
113
+ The remaining columns are the CFTC's own fields, using the CFTC's lowercase names: open interest; positions, changes and
114
+ percent of open interest by trader category; numbers of traders; and concentration ratios. Columns that are always empty
115
+ for a report family are dropped. The CFTC's field definitions are in its
116
+ [explanatory notes](https://www.cftc.gov/MarketReports/CommitmentsofTraders/ExplanatoryNotes/index.htm).
117
+
118
+ **Point-in-time note:** COT positions are as of Tuesday and are released the following Friday at 3:30 p.m. ET.
119
+ In a backtest, use the data no earlier than the release date (roughly `date + 3 days`) to avoid look-ahead bias.
120
+
121
+ ## Source and license
122
+
123
+ The source is the [U.S. Commodity Futures Trading Commission](https://www.cftc.gov/MarketReports/CommitmentsofTraders/index.htm).
124
+ U.S. federal government works are in the public domain. FinzData's cleaning and packaging is released under the same
125
+ terms. This is not investment advice.
126
+
127
+ ## Citation
128
+
129
+ ```bibtex
130
+ @misc{finzdata_cot,
131
+ title = {CFTC Commitments of Traders: Full History, All Reports},
132
+ author = {{FinzData}},
133
+ year = {2026},
134
+ url = {https://huggingface.co/datasets/FinzData/cftc-commitments-of-traders},
135
+ note = {Source: U.S. Commodity Futures Trading Commission}
136
+ }
137
+ ```
data/cit_supplemental.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:873df89b1aeea3cc8df31cc5b77c9377ac3a8dffc14889970ae890d177b62c0d
3
+ size 1739465
data/disagg_combined.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eec565f14e9ba118d4056568ad51a19e51ce885efcb437a1e6457e5934f28c7b
3
+ size 39245278
data/disagg_fo.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c21cb5b7d7397c90d8afbb93f3f9b92fdd422df62aefdadac3a98c255ed91e5c
3
+ size 37566872
data/legacy_combined.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27ae23ca76a529065227e2d8ff9a8c7652428f7534839ee56c1af987fd0dd7e9
3
+ size 43277439
data/legacy_fo.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e94679698ce8cfa204b56a8c72a71f96bb800c58f3134f46d49007d1587ef41b
3
+ size 44776227
data/tff_combined.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7198242be22e39fedf77921df055f2357fa21c5a9159100c879615b6ceb5db0e
3
+ size 7456797
data/tff_fo.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:410d8a3596ebc794f9d7a246c8171a88dda0f8cd714d173737df5509807006e3
3
+ size 7302922