GetMarkets push - Saba-sports/OddsDirectAPI GitHub Wiki
This API is to get market information including odds data.
- Subscribing to updates and retrieving data in one request via this 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(If Header is available)
Parameter |
Description |
query |
Specific the query parameters for using odata query format |
language |
Specific the language of the response content |
token |
Get the JWT token through /login or /refreshToken |
Response
id: string\r\n
data: {
"status": int,
"message":string,
"payload": {
"markets": {
"add": Market[],
"change":MarketChange[],
"remove":[marketId1,marketId2...]
}
}
}\r\n\r\n
Name |
Format |
Description |
id |
string |
Specifies the serial number of Server Sent Event |
data |
json |
|
Data object
Name |
Format |
Description |
status |
int |
Specifies the status code of the response. |
message |
string |
Specifies the message of the status. |
payload |
object |
|
Payload object
Name |
Format |
Description |
markets |
object |
Specifies the information of markets. |
Markets object
Name |
Format |
Description |
add |
Market array |
Specifies the market information which be added.- Market class please reference GetMarkets response. |
change |
MarketChange array |
Specifies the market information which be updated.- MarketChange class please reference MarketChange. |
remove |
int array |
Specifies the identified of the market which be removed. |