Skip to main content
GET
Get leagues
返回交易所上所有有活跃市场的联赛。使用此端点的联赛代码获取赛事(/exchange/v2/getGames)和订单簿(/exchange/v2/getOrderbook)。 如果响应中的联赛名称包含 LIVE(除按运动项目划分的滚球联赛 NFL-LIVE、NBA-LIVE、NCAAF-LIVE、NCAAB-LIVE 外),会追加值 "LIVE" 作为「全部进行中赛事」的别名。

请求

GET /exchange/getLeagues
string
可选的运动项目过滤(basketball、baseball、hockey、football、soccer、golf、tennis、mma 等)。当 sport=soccer 或 sport=golf 时,列表会追加 "all"。

响应

array
联赛代码数组。

示例

授权

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.

查询参数

sport
string

Optional sport filter (e.g. basketball, soccer, golf). When sport=soccer or sport=golf, all is appended to the list.

响应

Available leagues

data
object