Data Model

Schema references for API objects and ClickHouse storage.

Market Object
FieldTypeDescription
conditionIdstringUnique market identifier (hex string)
categorystringMarket category — crypto, sports, economics, weather
subcategorystringSpecific sub-type — BTC, NBA, FOMC, NYC, etc.
labelstringHuman-readable market name
tokenIdsstring[]Array of token IDs (replaces tokenIdUp/tokenIdDown)
outcomesstring[]Outcome labels — ["UP","DOWN"], ["Yes","No"], etc.
configIdstringCategory configuration reference
slugstringHuman-readable identifier (e.g., btc-updown-5m-1772799300)
endDatestringWhen the market resolves (ISO 8601)
expiredbooleanWhether the market has expired
expiresInnumberMilliseconds until expiry
polymarket.snapshots_hf
ColumnTypeDescription
cryptoLowCardinality(String)BTC, ETH, SOL, XRP
timeframeLowCardinality(String)5m, 15m, 1h, 1d
market_idStringPolymarket conditionId
token_idStringCLOB token ID
token_sideEnum8UP or DOWN
timestampDateTime64(3, 'UTC')Millisecond precision
crypto_priceFloat64Spot price at capture time
best_bidFloat64Top of book bid
best_askFloat64Top of book ask
mid_priceFloat64(bid + ask) / 2
spreadFloat64ask - bid
bid_depth_totalFloat64Total bid depth
ask_depth_totalFloat64Total ask depth
bidsArray(Tuple(Float64, Float64))Full bid book [price, size]
asksArray(Tuple(Float64, Float64))Full ask book [price, size]
Data Model — API Docs | Resolved Markets