Getting Started
Already have credentials? Jump to Connection Methods. New to Probalytics? Create ClickHouse credentials in app.probalytics.io → ClickHouse Credentials section. See Quickstart for setup. Connection Details- Host:
clickhouse.probalytics.io - Port:
9440(Secure TCP) or8443(Secure HTTPS) - Database:
probalytics - Authentication: Username and password from dashboard
All connections are secured with TLS encryption. Use the
--secure flag for CLI or enable TLS/SSL in your client.Quick Exploration
SQL Workspace (Browser)
The fastest way to explore and test queries. Visit app.probalytics.io/sql and start querying immediately—no setup required.Connection Methods
For production applications and large-scale analysis, use one of these programmatic connections:- Python - clickhouse-driver
- Python - clickhouse-connect
- JavaScript / Node.js
- Go
- DBeaver
- CLI - clickhouse-client
Native ClickHouse driver for best performance.Install:
pip install clickhouse-driverExploring the Database
List All Tables
Describe Table Structure
Test Your Connection
Understanding ReplacingMergeTree
Tables use theReplacingMergeTree engine for efficient updates and deduplication.
How it works:
- Each table’s
ORDER BYtuple defines row identity for replacement - For duplicate identity keys, the greatest
indexed_atversion wins - Background merges consolidate duplicates asynchronously
- Queries may return duplicates until merges complete
FINAL to force immediate deduplication:
Access tiers
Your tier determines which datasets a ClickHouse credential can query. Query quotas and resource limits are applied separately from REST and can vary by credential. Contact support@probalytics.io if you need the effective limits for a credential.Paid credentials
Trial credentials
Trials receive full market metadata but normally only the last seven days of fills and, when the tier permits it, orderbook snapshots. A per-account offer can differ from the normal trial window. “All retained history” means the complete period Probalytics currently stores for that dataset. See the Datasets overview for coverage details.Your tier is set when creating ClickHouse credentials in the dashboard.
Available Tables
markets
Primary table for prediction market metadata.- Available to: All tiers
- Records: One per market across platforms
- Key fields: platform, title, description, outcomes, status, market_type
- See Tables reference for complete schema
fills
Individual trade fill records on each market.- Available to: All tiers
- Records: One per trade executed
- Key fields: market_id, size, price, normalized_price, taker_side, taker_id, maker_id, fee, timestamp
- Note: Partitioned monthly by
timestampfor performance - See Tables reference for complete schema
orderbook_snapshots
Orderbook depth snapshots per market outcome, written when the book state changes.- Available to: Orderbook and Custom ClickHouse tiers
- Records: Full bid/ask states per outcome; multiple ordered states can share one timestamp
- Key fields: market_id, outcome, bids, asks, timestamp, hash, state, continuity, path_index
- Note: Partitioned daily by
timestamp; use continuity boundaries when reconstructing time series - Data range: Polymarket available from November 20, 2025 (high-quality snapshots from February 17, 2026). Kalshi available from May 8, 2026.
- See Tables reference for complete schema
Next Steps
Tables Reference
Complete field definitions and data types
Common Queries
Ready-to-run query examples
SQL Tips
Performance optimization strategies