Pular para o conteúdo principal
GET
Get leagues
Retorna cada liga com mercados ativos na exchange. Use os códigos de liga deste endpoint para obter eventos (/exchange/v2/getGames) e livros de ordens (/exchange/v2/getOrderbook). Se a resposta contiver um nome de liga com LIVE (além das ligas ao vivo por esporte NFL-LIVE, NBA-LIVE, NCAAF-LIVE, NCAAB-LIVE), o valor "LIVE" é adicionado como alias de “todos os eventos em andamento”.

Requisição

GET /exchange/getLeagues
string
Filtro opcional de esporte (basketball, baseball, hockey, football, soccer, golf, tennis, mma, etc.). Quando sport=soccer ou sport=golf, o valor "all" é adicionado à lista.

Resposta

array
Array de códigos de liga.

Exemplo

Autorizações

Authorization
string
header
obrigatório

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.

Parâmetros de consulta

sport
string

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

Resposta

Available leagues

data
object