01 / 数据集01 / DATASET

一份记录 BTC 涨跌市场微观结构的归档。A documented archive of BTC Up/Down market microstructure.

数据集记录 Polymarket Bitcoin 涨跌市场的 CLOB 报价和盘口深度,覆盖 5分钟与15分钟窗口。下载前先用这一页了解文件和关联方式。The dataset records CLOB quotes and depth for Polymarket Bitcoin Up/Down markets with 5-minute and 15-minute windows. Use this page to understand the files before downloading them.

采集流程Collection pipeline

采集器接收 CLOB WebSocket 更新,维护本地 order book,并写入多个层次的数据,方便审计和分析:The collector receives CLOB WebSocket updates, maintains a local order book, and writes several layers for inspection and analysis:

CLOB WebSocket → local book → JSONL → Parquet → daily ZIP

5分钟和15分钟市场使用同一套数据模型,通过市场时长和 event slug 判断一行数据属于哪个窗口。The 5-minute and 15-minute markets share the same data model. Their market duration and event slug identify which window a row belongs to.

5分钟和15分钟有什么区别What differs between 5m and 15m

相同的数据模型Same data model

两种市场都使用 ticks、depth、market_outcomes 和 seen_markets 这组表,通过 event_slug 关联。Both windows use ticks, depth, market_outcomes, and seen_markets joined by event_slug.

不同的窗口长度Different window length

5分钟市场的窗口长度通常是 300 秒,15分钟市场通常是 900 秒;回测时应读取 interval_min 和窗口时间,不要只看文件名。A 5-minute window is normally 300 seconds and a 15-minute window 900 seconds. Use interval_min and window timestamps rather than relying on filenames.

文件层次File layers

LayerTypical pathPurpose
实时 JSONLLive JSONLdata/live/*.jsonl追加式采集输出,适合审计和增量处理。Append-oriented collection output; useful for audit and incremental processing.
小时 ParquetHourly Parquetdata/hourly/*.parquet列式文件,适合更快地查询和研究。Columnar files for faster research queries.
每日 ZIPDaily ZIPdata/daily/btc_*_YYYYMMDD.zip按日分发的数据包。Distribution package containing the day’s files.
市场映射Market mapseen_markets.jsonl将 event_slug 映射到 market_id、condition_id 和 UP/DOWN asset ID。Maps event_slug to market_id, condition_id, and UP/DOWN asset IDs.
结算结果Outcomesmarket_outcomes.parquet用于评估和回测评分的事后胜负标签。Post-event winner labels for evaluation and backtest scoring.

文件如何关联How files link together

研究时的主键是 event_slug + ts。用 event_slug 把报价和深度行关联到市场元数据与结算结果。The primary research key is event_slug + ts. Use event_slug to join quote and depth rows to market metadata and the resolved outcome.

Asset ID 保存在市场映射文件中,而不是重复写入每一行 ticks 和 depth。将文件转换为自己的表时,请保留这层关联。Asset IDs are stored in the market map rather than repeated in every ticks and depth row. Preserve this join when converting the files into your own tables.

查看字段说明Open the field reference

这份归档不代表什么What the archive does not claim

报价不是成交Quotes are not trades

这是盘口记录,不是完整的逐笔成交明细,也不能保证展示出来的流动性真的被成交。The data is an order-book record. It does not contain a complete trade-by-trade tape or guarantee that displayed liquidity was executed.

深度不是成交承诺Depth is not a fill promise

展示数量可能变化、消失,或者排在你的模拟订单前面。成交假设应该写进回测模型。A displayed size can change, disappear, or be ahead of your simulated order in the queue. Fill assumptions belong in the backtest model.