Get direct access to the complete prediction market database for advanced analytics and complex queries.Documentation Index
Fetch the complete documentation index at: https://docs.probalytics.io/llms.txt
Use this file to discover all available pages before exploring further.
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:
- New versions of the same row replace old versions
- Deduplication is based on the
indexed_atcolumn (highest value wins) - Background merges consolidate duplicates asynchronously
- Queries may return duplicates until merges complete
FINAL to force immediate deduplication:
Access Tiers & Limits
Your tier determines available data, query limits, and resource quotas:| Feature | Starter | Pro | Custom |
|---|---|---|---|
| Tables | markets, fills | markets, fills | All tables |
| Orderbook Snapshots | - | - | Early Access |
| Historical Data | Last 30 days | Full history | Full history |
| Queries/hour | 100 | 1,000 | Unlimited |
| Max Execution Time | 5 minutes | 1 hour | Unlimited |
| Max Memory | 4 GB | 32 GB | Unlimited |
| Max Result Rows | 100,000 | 1 billion | Unlimited |
Your tier is set when creating ClickHouse credentials in the dashboard. Upgrade your plan to access higher tiers.
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: Early Access only
- Records: One per outcome per timestamp, containing full bid/ask depth
- Key fields: market_id, outcome, bids, asks, timestamp
- Note: Partitioned monthly by
timestampfor performance - Data range: Available from November 20, 2025. High-quality snapshots from February 17, 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