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 |
source | Internal attribute, please dont use this attribute |
ut | Information about the date and time of when the message was created. Format UNIX_TIMESTAMP |
..data |
|
---|
...outcome_result |
|
---|
id | Identifier of the outcome
|
betting_offer_id | Identifier 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: |
new event generatedupdate - event was updateddelete - event was deletedstatus | Possible values:active - outcome and odds are displayed, user can make bets. Default value for new outcomesuspended - outcome is suspended, user can't make betsclosed - outcome is closed and will be not offer it the future, user can't make bets
resulted - outcome has result (result attribute is not empty)
cancelled - outcome is cancelled
result | - when result of outcome is known
- update - when a previously sent result of outcome contains error and need to be updated
|
result | Describe 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. |