Client systems can request an overview of the status of matches they are subscribed to. This happens by sending a current request. In this request the client system specifies what matches they want to get the status for.
<BookmakerStatus timestamp="0" bookmakerid="24" type="current">
<Match matchid="661373" />
</BookmakerStatus>
XML attributes definition
Element | Attributes |
---|
| Attribute | Description | Possible values |
BookmakerStatus
| type | Keyword which describes what kind of request is sent. | String "current" (for current requests) |
bookmakerid | The id of the bookmaker | Integer |
timestamp | The moment for which you want to retrieve the current status of the requested match(es). Using 0 as timestamp would normally represent the 1st of January 1970, but for the current status request it will automatically translate into current time. | UTC timestamp or 0 |
Match | matchid | The id of the match for which the current status is requested | Integer |
After a current request is received the Betradar system will return the following messages:
- A message containing the odds, activation of odds and match status for the match requested
- A message indicating the current bet status. This is a regular bet status message
- All bet clearing messages sent before the timestamp given are sent as they were sent originally
All messages are separated by a newline. The replytype attribute is set to "current" for the reply messages from current requests. The match element will not include the msgnr attribute.