Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This type of message is sent through AMQP service when indicated group of betting offerschanges are made in the event e.g. stats were edited/corrected or event start date was changed etc.

Bet_stopis an optimized signal to indicate that all or a set of markets should be instantly suspended (continue to display odds, but don't accept tickets). The same effect can be achieved by sending an odds-changes message that lists all the affected markets and moves them to status="suspended".

...

offers should change their status to suspended or closed.

Message structure

.message
id

For this message type id attribute has no value.

type

bet_stop

sourceInternal attribute, please dont use this attribute
utInformation about the date and time of when the message was created. Format UNIX_TIMESTAMP
..data
...bet_stop
object_id

Identifier of the object depends on object type, e.g. if you choose an event as an object_type you should use event identificator

The complete list of possible seasons can be retrieved using the API resource: seasons.index
The complete list of possible events can be retrieved using the API resource: events.index

object_type

Possible object type:

  • season - for betting offers related to the season e.g: Premiership 2015/2016
  • event - for betting offer related to the event e.g: Real Madryt - Barcelona
action

Describes type of operation. For this message type, action attribute always has create value

betting_offer_ids

List of betting offers identifiers separated by a comma (e.g. 123,234,321). Possibility to input multiple identifiers, separated by comma.

If empty value ALL betting offers for specified object_id should be suspended or closed.

betting_offer_status

The betting offers specified in betting_offer_ids attribute can receive following values:


  • suspended - the users can't bet on the betting offer (e.g when team received the red card)
  • closed - the betting offer is closed and no further bets will be taken