APIs and data
Build reliable market data, replay events and reconcile orders and positions.
Can historical prediction market price charts support an execution backtest?
Candles can screen prediction-market signals, but execution backtests need order-book replay, depth-aware fills, fees, and resolution rules.
How do I handle prediction market API limits without losing cancellation capacity?
Plan separate read, order and cancel budgets on Kalshi and Polymarket so resting-order cancels still fit when order flow spikes.
How do I avoid duplicate prediction market orders after an API timeout?
Use this workflow to reconcile unknown order states after API timeouts and apply safe retry rules for Kalshi and Polymarket event contracts.
How do I rebuild a prediction market order book from snapshots and updates?
Rebuild Kalshi event-contract books from replacement snapshots and sequenced deltas, with reconnect, gap, and replay checks for desk systems.
How do I map Polymarket events and outcomes to tradable token IDs?
Resolve a Polymarket market to its outcome token via Gamma or SDK fields, validate it with CLOB /book, and log venue scope.
How do I interpret YES and NO bids in the Kalshi order book API?
Parse Kalshi orderbook_fp YES and NO bid ladders, derive implied asks and spreads, and size displayed depth with decimal strings.