cftc-cot-weekly
收藏资源简介:
CFTC交易者持仓周度面板数据集是一个整合了美国商品期货交易委员会(CFTC)自1986年至今所有交易者持仓报告系列的标准化数据集。它以整洁、模型就绪的周度面板格式提供,包含统一化的持仓数据、净持仓和COT指数特征、市场参考映射以及有文档记录的发布来源信息。数据集采用Parquet和CSV格式,数据量在100万到1000万之间,包含四个独立配置表:cot_panel_long(整洁长面板,每行对应报告日期、合约代码、报告系列、基础和交易者类别)、cot_features_weekly(模型就绪宽表,包含未平仓合约及其变化、集中度比率、各类别净持仓、净持仓占比、与前次报告变化、52和156报告期COT指数以及156报告期Z分数)、markets_reference(每个合约代码和系列的参考信息)和release_anomaly_calendar(有文档记录的发布和方法论事件)。该数据集旨在解决CFTC原始数据的复杂性,统一四十年的模式漂移,并使发布历史明确化,仅包含持仓数据,不包含价格信息,适用于金融、经济学研究,如期货市场持仓分析、时间序列建模和市场情绪指标构建。数据来源于CFTC交易者持仓报告(公共领域),由Arimancy LLC在CC BY 4.0许可下发布。
The Weekly Panel Dataset of CFTC Trader Positions is a standardized dataset integrating all trader position report series from the Commodity Futures Trading Commission (CFTC) since 1986 to the present. Provided in a tidy, model-ready weekly panel format, this dataset includes uniform position data, net position and COT index features, market reference mappings, and documented release source information. It is available in Parquet and CSV formats, containing between 1 million and 10 million records. The dataset comprises four standalone configuration tables: cot_panel_long (a tidy long panel where each row corresponds to a report date, contract code, report series, underlying asset and trader category), cot_features_weekly (a model-ready wide table containing open interest and its changes, concentration ratios, net positions by category, net position proportions, changes from the prior report, 52-period and 156-period COT indices, and 156-period Z-scores), markets_reference (reference information for each contract code and series), and release_anomaly_calendar (documented release and methodological events). This dataset aims to address the complexity of raw CFTC data, including disparate start dates, structural differences, and filename conventions across different report series, unifying four decades of schema drift into a single consistent schema and clarifying release history. The dataset only contains position data with no price information included. Trader classifications are based on self-reported business purposes and are subject to CFTC reclassification. Report dates typically correspond to Tuesday market close, though 163 non-Tuesday dates exist. Releases are typically issued at 3:30 PM ET on Fridays, adjusted for holidays. The dataset specifically flags release anomalies during the funding lapse period from October to December 2025. This dataset is applicable to financial and economic research, particularly tasks such as futures market position analysis, time series modeling, and market sentiment indicator construction. The data is sourced from CFTC Trader Position Reports (U.S. Government Work, Public Domain), and is released by Arimancy LLC under the CC BY 4.0 license.
数据集概述
数据集名称:CFTC Commitments of Traders Weekly Panel
许可证:CC BY 4.0
数据规模:1M 到 10M 行
数据来源:原始数据来自美国商品期货交易委员会(CFTC)的持仓报告(公共领域),由 Arimancy LLC 整理发布,与 CFTC 无隶属关系。
时间跨度:1986 年至最近一个星期五。
数据格式:Parquet 和 CSV。
表格结构
数据集包含四个独立的配置(表),每个配置有各自的模式,不可拼接:
- cot_panel_long:整洁的长面板数据,每行对应一个(报告日期、合约代码、报告系列、基础、交易者类别)组合。
- cot_features_weekly:模型就绪的宽表,每行对应一份报告,包含未平仓合约及其变化、集中度比率(附带来源异常标记)、各交易者类别的净持仓、净持仓占比、相对上一报告的变化、52 期和 156 期的 COT 指数、156 期 Z 分数。窗口计算基于
market_key(合约一致性替代键)。 - markets_reference:每行对应一个合约代码和报告系列的市场参考表。
- release_anomaly_calendar:记录发布时间和方法变更事件。
加载方式
使用 datasets 库按配置名加载:
python from datasets import load_dataset
panel = load_dataset("Arimancy/cftc-cot-weekly", "cot_panel_long") feats = load_dataset("Arimancy/cftc-cot-weekly", "cot_features_weekly")
完整列文档、类别定义、年度发布节奏表、已删除列附录和数据泄漏说明均在随附的 data_dictionary.md 文件中。
创建目的
CFTC 发布的多个报告系列具有不同起始日期、模式和文件名约定,且官方常见问题指出数据缺少主键。本数据集将过去四十年的模式变化整合为统一模式,并明确记录发布历史。
注意事项
- 仅包含持仓数据,无价格数据。市场参考表提供连接键,用户需自行引入价格数据。
- 交易者分类基于 CFTC Form 40 的自我报告业务目的,受 CFTC 重新分类影响。类别为监管分类,非策略标签。
report_date为 CFTC 发布的截至日期(通常为周二收盘),其中 163 个日期并非周二(包括早期非周报历史和假日调整)。report_weekday和is_standard_tuesday列可筛选异常。发布时间通常为周五美国东部时间下午 3:30,节假日前后会调整,特殊事件期间不规律,应使用发布异常日历。- 2025 年 10 月至 12 月拨款暂停期间,发布中断六周并于 12 月回溯填充,
report_date完整,但原始发布时间中断。 - 早期历史发布节奏非周报制,详见年度节奏表。
- 组合基础使用交易所提供的 delta 将期权转换为期货等值头寸(CFTC 方法)。
- 非报告头寸为衍生残差(未平仓合约减去报告头寸),不包含交易者数量。
- 合约合并方法随 CFTC 公告变化,面板按各日期 CFTC 发布内容报告。
- CFTC 重复使用合约市场代码。当同一代码对应两种不同底层合约时,特征表使用
market_key区分,确保窗口特征不会混合。
归属与许可
来源:CFTC 持仓报告(美国政府作品,公共领域)。
发布者:Arimancy LLC,采用 CC BY 4.0 许可证。许可证文本和归属目标包含在 LICENSE.txt 中。
数据集页面:https://arimancy.com/datasets/cftc-commitments-of-traders-weekly




