Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This type of message is sent through AMQP service when result of outcome is known or when a previously sent result of outcome contains error and need to be updated.

Message structure

.message
id


type

outcome_result

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

Identifier of the outcome

betting_offer_idIdentifier of the betting_offer related with this outcome. The complete list of possible betting_offer can be retrieved using the API resource: betting-offers.index
action

Describes type of operation for the event. Possible values:

  • insert - when result of outcome is known
  • update - when a previously sent result of outcome contains error and need to be updated
resultDescribe result of the outcome. Possible values:
  • won - user won his bet, user should receive winnings (odds*stake)
  • lost - user lost his bet, user lost his stake
  • void - user should receive his stake back
  • partial win - user won part of his bet, user should receive winnings (odds*stake/2 + stake/2)
  • partial loss -  user lost part of his bet, user should receive half of his stake back

Possible empty value for outcomes yet to be settled.

  • No labels