> ## 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.

# SX Bet API Reference

> Be your own bookmaker or fill orders programmatically with the SX Bet API. REST endpoints for markets, orders, trades, and real-time WebSocket data.

<div id="hero-section" className="flex flex-col items-center justify-center text-center px-8 pt-8 pb-0">
  <img src="https://mintcdn.com/sxbet-9c561d83/ylnfp2AKk1IUxDYj/public/sx_assets/sx_bet_logo.svg?fit=max&auto=format&n=ylnfp2AKk1IUxDYj&q=85&s=79cfd7fbcc454e46770d552f7f77e6eb" alt="SX Bet" className="h-12 mb-4" width="616" height="191" data-path="public/sx_assets/sx_bet_logo.svg" />

  <h1 className="text-5xl font-bold tracking-tight text-gray-900 dark:text-zinc-50 max-w-3xl">
    API Reference
  </h1>

  <p className="mt-3 text-xl text-gray-500 dark:text-gray-400 max-w-xl leading-snug">
    Fetch markets, post orders, fill bets, and subscribe to real-time updates.
  </p>
</div>

<div className="px-8 pb-16 max-w-5xl mx-auto">
  ## Explore the API

  <CardGroup cols={2}>
    <Card title="REST Endpoints" icon="rectangle-terminal" href="/api-reference/get-metadata">
      Full endpoint reference: markets, orders, trades, fixtures, and more.
    </Card>

    <Card title="WebSocket Channels" icon="plug" href="/api-reference/centrifugo-overview">
      Real-time updates via the Centrifugo WebSocket API.
    </Card>

    <Card title="Post a New Order" icon="pen-to-square" href="/api-reference/post-new-order">
      Submit a maker or taker order to the exchange.
    </Card>

    <Card title="Rate Limits" icon="gauge-high" href="/developers/rate-limits">
      Per-endpoint rate limits and how to stay within them.
    </Card>
  </CardGroup>

  ## Base URLs

  | Environment       | Base URL                     |
  | ----------------- | ---------------------------- |
  | Mainnet           | `https://api.sx.bet`         |
  | Testnet (Toronto) | `https://api.toronto.sx.bet` |

  ## Authentication

  | Operation                    | Required                       |
  | ---------------------------- | ------------------------------ |
  | Read markets, odds, trades   | None                           |
  | WebSocket subscriptions      | API key (`X-Api-Key` header)   |
  | Post, fill, or cancel orders | Wallet signature (private key) |

  See [Authentication →](/developers/authentication) for setup details.

  ## Rate Limits

  | Endpoint group       | Limit         |
  | -------------------- | ------------- |
  | All `POST /orders/*` | 5,500 req/min |
  | All `GET /orders/*`  | 20 req/10s    |
  | All `GET /trades/*`  | 200 req/min   |
  | All other endpoints  | 500 req/min   |

  See [Rate Limits →](/developers/rate-limits) for the full table.

  <Info>All ETH addresses in the API must use **checksum format** (EIP-55 mixed case). Lowercase-only addresses will return no results.</Info>

  Technical questions or need support? [Open a support chat on sx.bet.](https://sx.bet)
</div>
