Building on SX Bet
Developer reference for building on SX Bet — the open API, the WebSocket feed, the MCP server, and reference projects that turn live exchange data into bots, dashboards, and arbitrage tools.
More guides in this topic
An open-source aggregator that pulls live odds from SX Bet and Polymarket, adjusts for fees, and routes each bet to the bes odds. Built with Claude Code.
Sports betting MCP server tutorial: wire SX Bet's live odds API into Claude Code or Cursor using FastMCP. Full Python implementation, tool definitions, Claude Code config.
Related guides
We gave Claude Fable 5 $10,000 and one instruction: make money trading the World Cup. It built its own autonomous betting bot. Here's what an AI does with real money on a betting exchange, with the live on-chain record.
An autonomous AI trading agent that designed itself: we gave Claude Fable 5 a vague goal and $10k, and it architected its own prediction-market bot. Here's the four-layer pattern and the safety envelope you wrap around an AI-built system that touches real money.
Every AI World Cup prediction names a winner. The one we gave $10,000 doesn't. It hunts mispriced odds, backs underdogs, and abstains when there's no edge. Here's why.
About Building on SX Bet
What you can build on SX Bet
SX Bet exposes a free REST API and a real-time WebSocket feed. Markets, fixtures, leagues, live scores and the public trade feed need no API key and no signup. Prices (order-book snapshots and best odds), your own orders and trades, and placing orders use a free API key from your SX Bet account, and every order is an EIP-712 signed payload from the user's wallet.
That combination supports four common project shapes: odds aggregators that pull live exchange prices, dashboards that visualise order-book depth and volume, trading bots that post or take liquidity, and MCP servers that wrap the API for AI agents. Several of those projects are already live and open-source.
How the API surface is laid out
REST sits at api.sx.bet (mainnet) and api.toronto.sx.bet (testnet). Every market is binary — two outcomes per market, even when the real-world event has three (1X2 soccer is implemented as two binary markets). Prices are quoted as scaled integer probabilities (percentageOdds); divide by 1020 to get the implied probability as a decimal.
The WebSocket feed uses Centrifugo at wss://realtime.sx.bet/connection/websocket, with channels keyed by market hash for sub-second order-book updates. Rate limits are set per API key and per route (posting orders allows 5,500 requests a minute), with public market data limited per IP. Generous relative to sportsbook APIs that typically gate developer access entirely.
How to start
The fastest first call is GET https://api.sx.bet/markets/active. No API key, no signup. From there, docs.sx.bet/llms-full.txt is the LLM-ingestible reference, and there's an MCP server at https://docs.sx.bet/mcp for one-shot building with Claude Code. Install it with claude mcp add --transport http sx-bet https://docs.sx.bet/mcp.