vike-pm-l2-archive
Latest: v1.0.1
Text updated for CLI 0.33.0.
vike-pm-l2-archive
The archive is one Parquet file per UTC day and stream, recorded since 2026-07-25, for personal use under the Vike Terms of Service (credit "Polymarket L2 archive (c) Vike (vike.io/data)"; commercial use needs a written agreement: info@vike.io). vike-data lists files and resolves links; it never downloads. 1 credit per call.
Chain
vike-data polymarket archive --view datasets --asset btc --tenor 5m --stream trades --date-from 2026-10-15 --date-to 2026-10-17 --json
vike-data polymarket archive --view url --stream trades --date 2026-10-16 --json # multi-asset file, one day
vike-data polymarket archive --view url --stream trades --asset btc --tenor 5m --date 2026-10-16 --json # family file
vike-data polymarket archive --view url --stream trades --category sports --date 2026-11-29 --json # category file
vike-data polymarket settlements --slug-prefix btc-updown-5m- --from-ms <start> --to-ms <end> --limit 1000 --json # how each market resolved
Streams: book_events (full L2: snapshots, price_change deltas, trades, tick-size and status markers), trades (taker tape), l1_quotes (derived top of book). A row carries date, stream, layout (flat = every market; family = one up/down series, one asset and interval, with its category: crypto series under crypto, stocks, indices, FX and commodities under finance; category = one Polymarket category's markets outside the up/down series: sports, crypto, weather, elections, politics, finance, ... and unknown), bytes, rows, url. datasets pages with --limit (max 1000) and --offset against total.
Pick the right file
--assetwith--tenorfor one series (as before),--categoryalone for a category's markets outside the series, or none of them for the whole-day file. Indatasets,--category cryptolists the crypto file and every crypto series;--asset/--tenorlist series only. Without any filterdatasetsmixes the layouts: filter onlayout, or the same market appears in more than one file.- Up/down slugs changed on 2026-11-18 for the hourly and daily series: before,
bitcoin-up-or-down-november-17-2026-5pm-etandbitcoin-up-or-down-on-november-18-2026; since,btc-updown-1h-<start>andbtc-updown-1d-<start>(<start>= the window start in epoch seconds), like the 5m, 15m and 4h series. Asettlements --slug-prefixover that date needs both spellings. - Check
bytesfirst. Measured 2026-10-19: one day oftradesabout 12 MB; a BTC 5m familytradesday 3-5 MB; one day ofbook_events8.5 GB (532 million rows). Tell the user before anybook_eventsdownload, and prefer the family or category file for one asset or one kind of market (sports, elections, ...). - A few hours or one token: use the API, not a bulk file:
vike-data polymarket tape --token-id <id> --from-ms ... --to-ms ... --event-type trade(at most 24 h a call, no wallets),vike-data polymarket market-trades <condition_id>(with wallets) orvike-data candles polymarket <token_id>.
Fetch (outside this skill's tool grant; hand the user the command)
curl -C - -o trades-2026-10-16.parquet "<url from the row>"
The link needs no API key and is valid for 1 day (expires_at): treat it as a secret, don't paste it anywhere shared. Download the file whole and read the local copy with DuckDB, polars or pyarrow: pointing a reader at the URL turns one file into thousands of range requests. The manifest and a small sample need no key at all: https://data.vike.io/archive/manifest.json, https://data.vike.io/archive/samples/.
Reading the files
- The L2 tape carries no wallet addresses, only size and time. Prices are probabilities, sizes are shares.
- On the API tape a
0inbest_bid,best_ask,priceorsizeon a row type that does not populate it means absent, not zero; check the schema in the manifest before assuming the same of a Parquet column. - Join across files on the outcome token id;
settlementsrows carrytoken_idsandwinning_token_idfor the join to outcomes.
Anti-patterns
- Don't promise a download from the CLI, and don't fetch
book_eventsdays to answer a question the API tape can. - Don't pass the files on, and don't use them commercially without a written agreement.
Pairs well with
vike-pm-market-diligence(ids and one market live),vike-candles(probability bars),vike-polymarket-markets- The Hyperliquid twin:
vike-data hl archive --view url --dataset fills --date 2026-10-16(dailyfills,positions,positions_hourly,cohorts_hourlyandwallets_hourlyfiles)
