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.Documentation Index
Fetch the complete documentation index at: https://docs.sx.bet/llms.txt
Use this file to discover all available pages before exploring further.
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.| Namespace | History enabled | Max messages | Retention window |
|---|---|---|---|
order_book | Yes | 5,000 | 5 minutes |
recent_trades | Yes | 2,000 | 5 minutes |
recent_trades_consolidated | Yes | 1,000 | 5 minutes |
markets | Yes | 1,000 | 5 minutes |
main_line | Yes | 500 | 5 minutes |
active_orders | Yes | 100 | 5 minutes |
fixtures | Yes | 100 | 5 minutes |
ce_refunds | Yes | 100 | 5 minutes |
best_odds | No | — | — |
parlay_markets | No | — | — |
Limits
| Parameter | Value |
|---|---|
| Max channel subscriptions per connection | 512 |
| Max history items returned per request | 1,000 |
| Max messages recoverable per reconnect | 1,000 |
| Ping interval | 30 seconds |
| Pong timeout | 8 seconds |
| Outbound queue limit | 1 MB |
