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 offers should change their status to suspended or closed.

Message structure

.message
id

Unique identifier for the message

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