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