Skip to main content
GET
Get orderbook (v2)
Returns the orderbook for a league or single game in flat form: each market is an array of orders rather than an object keyed by spread / total. This is the recommended orderbook endpoint. Pair it with the WebSocket Streaming price feed for real-time updates.

Request

GET /exchange/v2/getOrderbook
string
League code, e.g. NBA (case-insensitive). Required when gameID is not provided.
string
Sport name, e.g. basketball (case-insensitive). Optional filter when league is set.
string
Single game id. When provided, league and sport are ignored.

Response

array
Each game is the standard Game shape with the following additional per-market arrays:
Each order in those arrays has the following shape:

Example (trimmed)

Authorizations

Authorization
string
header
required

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

Query Parameters

league
string

League code, e.g. NBA (case-insensitive).

sport
string

Sport name, e.g. basketball (case-insensitive). Optional filter when league is set.

gameID
string

Single game id. When provided, league and sport are ignored.

Response

Orderbook for one or more games

data
object