aliplayer1 commited on
Commit
5cd2bf7
·
verified ·
1 Parent(s): bb46646

Add dataset card with schema docs, subset configs, and license

Browse files
Files changed (1) hide show
  1. README.md +121 -0
README.md ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ - tabular-classification
6
+ tags:
7
+ - polymarket
8
+ - prediction-markets
9
+ - culture
10
+ - elon-musk
11
+ - twitter
12
+ - social-media
13
+ - finance
14
+ language:
15
+ - en
16
+ pretty_name: Polymarket Culture Markets
17
+ size_categories:
18
+ - 1M<n<10M
19
+ configs:
20
+ - config_name: markets
21
+ data_files:
22
+ - split: train
23
+ path: data/markets.parquet
24
+ - config_name: prices
25
+ data_files:
26
+ - split: train
27
+ path: data/prices/**/*.parquet
28
+ - config_name: ticks
29
+ data_files:
30
+ - split: train
31
+ path: data/ticks/**/*.parquet
32
+ ---
33
+
34
+ # Polymarket Culture Markets
35
+
36
+ Multi-outcome prediction market data from Polymarket for cultural events. Currently covers **Elon Musk tweet count** markets across 4-day, 7-day, and 1-month timeframes.
37
+
38
+ Updated automatically every 3 hours.
39
+
40
+ ## Subsets
41
+
42
+ ```python
43
+ from datasets import load_dataset
44
+
45
+ markets = load_dataset("aliplayer1/polymarket-culture-data", "markets")
46
+ prices = load_dataset("aliplayer1/polymarket-culture-data", "prices")
47
+ ticks = load_dataset("aliplayer1/polymarket-culture-data", "ticks")
48
+ ```
49
+
50
+ Or query with DuckDB:
51
+
52
+ ```python
53
+ import duckdb
54
+
55
+ duckdb.sql("""
56
+ SELECT * FROM 'hf://datasets/aliplayer1/polymarket-culture-data/data/prices/**/*.parquet'
57
+ WHERE crypto = 'ELON-TWEETS'
58
+ LIMIT 100
59
+ """).show()
60
+ ```
61
+
62
+ ## Data Description
63
+
64
+ ### `markets` — Market metadata
65
+
66
+ One row per market with question text, resolution, timeframe, and a JSON `tokens` map of token IDs to outcome labels.
67
+
68
+ | Column | Type | Description |
69
+ |--------|------|-------------|
70
+ | `market_id` | string | Polymarket market identifier |
71
+ | `question` | string | Market question text |
72
+ | `crypto` | string | Event category (e.g. "ELON-TWEETS") |
73
+ | `timeframe` | string | Market timeframe (4-day, 7-day, 1-month) |
74
+ | `volume` | float32 | Market volume in USDC |
75
+ | `resolution` | int8 | Market resolution |
76
+ | `start_ts` | int64 | Market start timestamp (epoch seconds) |
77
+ | `end_ts` | int64 | Market end timestamp (epoch seconds) |
78
+ | `condition_id` | string | On-chain condition identifier |
79
+ | `tokens` | string | JSON map of token ID to outcome label |
80
+
81
+ ### `prices` — Long-format price history
82
+
83
+ Price time series in long format (one row per token per timestamp), unlike the binary crypto dataset which uses wide format (up_price/down_price columns). Hive-partitioned by `crypto` and `timeframe`.
84
+
85
+ | Column | Type | Description |
86
+ |--------|------|-------------|
87
+ | `market_id` | string | Polymarket market identifier |
88
+ | `timestamp` | int64 | Price timestamp (epoch seconds) |
89
+ | `token_id` | string | CLOB token identifier |
90
+ | `outcome` | string | Outcome label (e.g. "10-19", "20-29", "Yes") |
91
+ | `price` | float32 | Outcome price (0.0-1.0) |
92
+ | `crypto` | string | Event category |
93
+ | `timeframe` | string | Market timeframe |
94
+
95
+ ### `ticks` — Trade-level fills
96
+
97
+ Individual trades from on-chain events and WebSocket captures. Same schema as the crypto dataset's ticks table, Hive-partitioned by `crypto` and `timeframe`.
98
+
99
+ | Column | Type | Description |
100
+ |--------|------|-------------|
101
+ | `market_id` | string | Polymarket market identifier |
102
+ | `timestamp_ms` | int64 | Trade timestamp (epoch milliseconds) |
103
+ | `token_id` | string | CLOB token identifier |
104
+ | `outcome` | string | Outcome label |
105
+ | `side` | string | "BUY" or "SELL" (taker perspective) |
106
+ | `price` | float32 | Trade price (0.0-1.0) |
107
+ | `size_usdc` | float32 | Trade size in USDC |
108
+ | `tx_hash` | string | Transaction hash ("" for WS ticks) |
109
+ | `block_number` | int32 | Polygon block number (0 for WS ticks) |
110
+ | `log_index` | int32 | Log index within block |
111
+ | `source` | string | "onchain" or "websocket" |
112
+ | `spot_price_usdt` | float32 | Not applicable for culture markets |
113
+ | `spot_price_ts_ms` | int64 | Not applicable for culture markets |
114
+
115
+ ## Pipeline
116
+
117
+ This dataset is produced by [polymarket-data-pipeline](https://github.com/aliplayer1/polymarket-data-pipeline). See the crypto dataset ([polymarket-crypto-updown](https://huggingface.co/datasets/aliplayer1/polymarket-crypto-updown)) for full pipeline documentation.
118
+
119
+ ## License
120
+
121
+ MIT