Tables
Related Tables
agent.kalshi_daily_categorizedagent.kalshi_market_reportagent.prediction_category_daily
Sample Queries
1. Daily volume by platform
Table Schemas
agent.polymarket_trades
Individual Polymarket trade events (OrderFilled) with USD amounts, maker/taker addresses, condition IDs, and outcome context. One row per trade event. The primary source for Polymarket volume and trading activity analysis.
Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: block_time, tx_hash, evt_index
agent.polymarket_market_details
Polymarket market metadata dimension table. Contains market questions, descriptions, event groupings, resolution status, end dates, tags, and Polymarket links. One row per (condition_id, outcome_index) — use outcome_index=0 for one row per condition.
Engine: MergeTree | ORDER BY: condition_id, token_id
agent.polymarket_events
Polymarket event-level metadata. Events group related markets (conditions) under a single theme (e.g., “2026 US Presidential Election” groups multiple candidate-specific markets). Useful for navigating the market hierarchy.
agent.polymarket_prices_daily
Daily outcome token prices for Polymarket markets. Tracks the probability (price) of each outcome over time. Useful for building price charts and tracking market sentiment evolution.
agent.polymarket_prices_hourly
Hourly CLOB mid-prices per Polymarket outcome token. Provides intraday price (implied probability) resolution for building higher-frequency charts and detecting rapid sentiment shifts.
agent.polymarket_prices_latest
Latest snapshot price per Polymarket outcome token. A convenience view that returns the most recent price for each condition, eliminating the need for argMax() queries against the full prices table.
Engine: MergeTree | ORDER BY: token_id
agent.polymarket_volume_daily
Daily aggregated trading volume per Polymarket market condition. Pre-computed from individual trades for efficient time-series queries. One row per (condition_id, block_date).
Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: condition_id, block_date
agent.polymarket_volume_hourly
Hourly trading volume per Polymarket condition. Pre-aggregated from individual trades for efficient intraday volume analysis without scanning the full trades table.
Engine: MergeTree | Partition: toYYYYMM(toDate(block_hour)) | ORDER BY: condition_id, block_hour
agent.polymarket_rolling_metrics
Pre-computed rolling window metrics for Polymarket markets (e.g., 7-day volume, 30-day volume, trailing unique traders). Useful for ranking and screening markets by recent activity without expensive window function queries.
agent.polymarket_open_interest_daily
Cumulative open interest per Polymarket condition derived from on-chain events (splits, merges, redemptions, conversions). SPARSE: only has rows on days with events, not every calendar day. Requires gap-fill logic for time series.
Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: condition_id, block_date
agent.polymarket_user_activity
Per-user trade activity on Polymarket including buy/sell counts, volume, and realized PnL. Aggregated by (address, condition_id) to show each user’s activity within each market.
Engine: MergeTree | Partition: toYYYYMM(block_date) | ORDER BY: account, token_id, block_time
agent.kalshi_market_details
Kalshi market metadata and snapshot data. Contains market tickers, titles, categories, settlement details, and status. Kalshi uses a three-level hierarchy: series -> events -> markets. MVE (parlay) markets skip the event layer.
Engine: MergeTree | ORDER BY: market_ticker
agent.kalshi_trades
Individual Kalshi trade events. Each row represents a single fill on the Kalshi exchange with price, quantity, side, and market ticker. The raw trade-level data source for Kalshi volume analysis.
Engine: ReplacingMergeTree | Partition: toYYYYMM(trade_date) | ORDER BY: ticker, created_time, trade_id