Recording 1,678 tokens across 29 connections

Prediction Market
Infrastructure

Self-sovereign orderbook recording from Polymarket's CLOB. Esports-first tick-level data. 120+ API endpoints. Built for quants who backtest.

1,678
Tokens Recorded
29
Parallel WS
~40k
Rows / Flush
10.6k
Traders Tracked
01

Historical Orderbook

Query any Polymarket orderbook from time A to B. 50ms to daily granularity. OHLCV, depth, spread, volatility, VWAP.

02

Esports Intelligence

Tick-level orderbook data for CS2, LoL, Dota 2, Valorant matches. Backtesting play-by-play prediction models.

New in v0.6
03

Event Correlation

Match market movements with real-world events. News enrichment, price timelines, market metadata for sentiment.

04

Trader Activity

10,600+ tracked traders. Per-market PnL, trade history, leaderboard rankings, copy trading signals.

CS2: Heroic vs Astralis — BO3 Orderbook
0.50
Astralis Win — Mid Price
0.49
Best Bid
0.51
Best Ask
Bids 0.500 Asks
00:00 0:0
Map 1 — Dust2 PandaScore Live
Game Log LIVE
5+ GB
Orderbook Data
3.7M+
Crypto Candles
1,678
Tokens Recorded
10.6k+
Tracked Traders
120+
API Endpoints
Three lines to historical orderbook data
python
curl
esports
from smauglabs import SmaugLabs client = SmaugLabs(api_key="sl_live_...") # Replay a token's orderbook for backtesting replay = client.orderbook_replay( token_id="TOKEN_ID", start_time="2026-03-01T00:00:00Z", granularity="1s" ) # Market analytics vol = client.volatility("TOKEN_ID", window="1h") vwap = client.vwap("TOKEN_ID", interval="5m")
# Replay historical orderbook curl -H "X-API-Key: sl_live_..." \ "https://api.smauglabs.com/v1/orderbook/replay?token_id=TOKEN&granularity=1s" # Search esports markets curl "https://api.smauglabs.com/v1/events/markets/search?q=cs2" # Cross-market correlation curl -H "X-API-Key: sl_live_..." \ "https://api.smauglabs.com/v1/orderbook/correlations?token_id=TOKEN&window_minutes=60"
# Get CS2 match orderbook data for backtesting from smauglabs import SmaugLabs client = SmaugLabs(api_key="sl_live_...") # Find CS2 markets markets = client.search_markets("cs2 navi faze") # Get tick-level orderbook for the match ticks = client.orderbook_replay( token_id=markets[0]["tokens"][0]["token_id"], start_time="2026-03-02T14:00:00Z", end_time="2026-03-02T16:00:00Z", granularity="1s" ) # Analyze spread during live rounds micro = client.microstructure(ticks[0]["token_id"], window="5m")

Install: pip install smauglabs or npm install smauglabs

Recording

29 Parallel WebSockets

Sovereign recorder runs 29 simultaneous connections to Polymarket's CLOB. 70 tokens per connection. Esports-first prioritization.

Query

DuckDB + Parquet

Columnar parquet backend with DuckDB analytical engine. Sub-2ms query performance. Raw SQL access.

Export

Raw Parquet Files

Download .parquet files for offline analysis. Bring your own tooling — pandas, Polars, DuckDB, Spark.

Analysis

Market Microstructure

Volatility, VWAP, spread analysis, bid-ask imbalance, price autocorrelation, order flow metrics.

Replay

Historical Backtesting

Single or multi-token replay at 50ms–1min granularity. 24h windows with data coverage metrics.

SDKs

Python & TypeScript

Type-safe clients for both ecosystems. ~50 methods each. Sync and async support. Zero runtime deps (TS).

Recording infrastructure
29
WebSocket Connections
70
Tokens per Connection
~40k
Rows per Flush
120s
Flush Interval
PyArrow
Bulk I/O Engine
zstd
Parquet Compression
120+ endpoints across 7 domains
Market Discovery Events, search, trending, categories, classification, tags 7 endpoints
Historical Orderbook Snapshots, history, depth, spread, OHLCV, replay, correlations, risk, SQL 20+ endpoints
Market Analytics Volatility, VWAP, microstructure, sentiment, top movers, comparison 10+ endpoints
Crypto Reference Klines, trade ticks, depth, multi-source charts, 26 symbols 12 endpoints
Trader Activity 10.6k traders, per-market PnL, leaderboards, copy signals, discovery 14 endpoints
Event Correlation Timelines, news enrichment, metadata, BTC reference 5 endpoints
Data Export Parquet files, CSV/JSON bulk export, schema introspection 5 endpoints

Full endpoint reference with examples →