Skip to main content
SX Bet’s real-time API uses Centrifugo for WebSocket connections. You can subscribe to channels for live updates on order books, markets, trades, scores, and more. You must have a valid API key to connect. See API Key for details.
Migrating from the legacy Ably API? See the Migration Guide →

Reference

Namespace history capabilities

Server-side history powers the recovery feature — see Real-time Data → Recovery & reliability for how to use it.
NamespaceHistory enabledMax messagesRetention window
order_bookYes5,0005 minutes
recent_tradesYes2,0005 minutes
recent_trades_consolidatedYes1,0005 minutes
marketsYes1,0005 minutes
main_lineYes5005 minutes
active_ordersYes1005 minutes
fixturesYes1005 minutes
ce_refundsYes1005 minutes
best_oddsNo
parlay_marketsNo
The 5-minute retention means messages are available for up to 5 minutes, but may become unavailable sooner if the namespace’s message limit is reached first — newer messages push out older ones once the cap is hit. Recovery only works for publications still present in the history window at the time of reconnect.

Limits

ParameterValue
Max channel subscriptions per connection512
Max history items returned per request1,000
Max messages recoverable per reconnect1,000
Ping interval30 seconds
Pong timeout8 seconds
Outbound queue limit1 MB