GetMarkets push - Saba-sports/OddsDirectAPI_CN GitHub Wiki
此API用于获取盘口相关信息
Request
GET /sports/stream/{version}/GetMarkets?query=$filter=eventId eq 38255274 and bettype eq 127&language=cs
Accept: text/event-stream
Accept-Encoding: br, gzip, deflate(如果可以使用Header)
Parameter |
Description |
query |
使用Odata指定特定格式的查询 |
language |
指定欲回应的数据语系,请参阅Language Table |
token |
透过 /login或/refreshToken 获得JWT token |
Response
id: string\r\n
data: {
"status": int,
"message":string,
"payload": {
"markets": {
"add": Market[],
"change":MarketChange[],
"remove":[marketId1,marketId2...]
}
}
}\r\n
Name |
Format |
Description |
id |
string |
Server Sent Event的序列号码 |
data |
json |
|
Data object
Name |
Format |
Description |
status |
int |
回应的状态代码 |
message |
string |
回应的状态信息 |
payload |
object |
|
Payload object
Name |
Format |
Description |
markets |
object |
盘口信息列表 |
Markets object
Name |
Format |
Description |
add |
Market array |
新添加的盘口信息- Market 请参阅GetMarkets |
change |
MarketChange array |
更新的盘口信息- MarketChange 请参阅MarketChange. |
remove |
int array |
删除的盘口ID列表 |