Skip to main content
GET
Get orderbook (v2)
以扁平形式返回某联赛或单场赛事的订单簿:每个市场是订单数组,而不是按让分 / 大小分数键控的对象。 这是推荐的订单簿端点。与 WebSocket 推送 行情推送搭配,可获取实时更新。

请求

GET /exchange/v2/getOrderbook
string
联赛代码,例如 NBA(不区分大小写)。未提供 gameID 时必填。
string
运动项目名称,例如 basketball(不区分大小写)。设置 league 时的可选过滤。
string
单场赛事 ID。提供时会忽略 league 和 sport。

响应

array
每个 game 为标准 Game 形态,并带有以下按市场数组:
这些数组中的每笔订单具有以下形态:

示例(已精简)

授权

Authorization
string
header
必填

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.

查询参数

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.

响应

Orderbook for one or more games

data
object