The SDK automatically sends real-time JSON responses to your application whenever important changes happen across events or markets. These responses are not requests, but push-style event notifications. These will be sent as POST method to your receiver system.
Use them to:
- Update live odds
- Handle market status
- Score card update (html)
- Track active/inactive event states
This section documents each callback format with:
- Sample Payload
- Glossary of keys
- Recommended Usage
Callback: Event or Market Active / Inactive
This callback is triggered when an event or market becomes active or inactive. Common use cases include enabling/disabling UI components or odds tracking.
Sample Payload
Event Callback
{
“event”: {
“eid”: 34267069,
“si”: 4,
}
}
Market Callback
{
"market": {
"mid": "mid",
"eid": 34267069,
"si": 1
}
}
Note : Only the above response will be send respectively to identify the event or market which is updated. No Additional keys will be provided.
Scorecard Callback
{
"score": [
{
"data": "HTML DOCUMENT",
"eid": 34267069
}
]
}
Connection Callback
Received when the SDK successfully connects or disconnects from the platform.
connect: trueindicates a successful connection.connect: falseindicates a disconnection.
{
"connect": true
}
OR
{
"connect": true
}
Glossary of Keys
| Key | Type | Description |
|---|---|---|
event | Object | Contains details about a specific event |
market | Object | Contains details about a specific market |
score | Array | Array of scorecard objects (used for live score HTML injection) |
eid | Integer | Event ID – uniquely identifies a sports event |
si | Integer | Sport ID – indicates which sport the event/market belongs to |
mid | String | Market ID – uniquely identifies a betting market |
data | String | Contains HTML markup for the scorecard (used for frontend rendering) |