probalytics Python client is a convenience layer over the ClickHouse database. It handles the connection, builds queries for you, and returns results as Polars or pandas dataframes — or as typed Python models.
The client connects to ClickHouse using the same credentials as the SQL Guide. Create ClickHouse credentials in app.probalytics.io → ClickHouse Credentials.
Installation
Connecting
- From credentials
- From environment
- Context manager
Markets
Query market metadata as typed models or as a dataframe.Fills
Fetch trade fills. Scope them to a market object, a market ID, or a platform-native ID:fills_models:
Orderbook snapshots
Full bid/ask depth per outcome, captured when the book changes. Requires an Early Access tier.outcome, bids, asks, and timestamp.
Choosing Polars or pandas
Methods return Polars by default. Set the backend globally when connecting, or override per call:"polars" and "pandas".
Custom SQL
Run arbitrary parameterized queries and get a dataframe back:Supported filters
| Method | Filters |
|---|---|
markets / markets_frame | start_time, end_time, status, platform, market_id, market_platform_id, limit, max_rows |
fills / fills_models | start_time, end_time, platform, market, market_id, market_platform_id, taker_side, trader_id, limit, max_rows |
orderbook_snapshots | start_time, end_time, platform, market, market_id, market_platform_id, limit |
Resources
Source & README
GitHub repository (Apache-2.0)
SQL Guide
Table schemas and query examples