Tip Disconnection and recovery handling is handled automatically by the SDK. Please refer to THIS section, if you're using the SDK. |
In case of an incident (a disconnection, maintenance on Betradar's side, etc.) we provide you with a few endpoints on the API that trigger sending of recovery messages in the feed. There are a few possible situations where recovery is needed: - First run (subscription to a producer)
- Connection issues
- Maintenance on Betradar's side (alive messages with subscribed = 0)
- Maintenance on your's side
API endpoints- Full odds recovery (only used for initial connection or in case of a disconnection longer than 72 hours)
- Recovery since after timestamp (max. for the past 72 hours)
- Recover odds for a specific sport event
- Recover stateful messages for a specific sport event
ProcedureA client should always store the last successfully received alive message (or its timestamp) from each producer. In case of a disconnection, recovery since after timestamp should be issued for each affected producer, using the timestamp of the last successfully processed alive message before issues occurred. |