6.5 Other Messages
Available message types:
6.5.1 balance: customer balance and open stake
The current MollyBet balance and total stake from unsettled bets.
Fields:
balance [ list[string, float] ]
The MollyBet balance of the current user, as a 2-element list, where the first element is a currency code and the second element an amount in that currency.
open_stake [ list[string, float] ]
The open stake of the current user, as a 2-element list, where the first element is a currency code and the second element an amount in that currency.
smart_credit [ list[string, float] ] (optional)
The smart credit of the current user, as a 2-element list, where the first element is a currency code and the second element an amount in that currency. The field is absent when the account has no smart credit.
Example:
{
"balance": ["EUR", 10000.1],
"open_stake": ["EUR", 152.55],
"smart_credit": ["EUR", 300.0]
}
6.5.2 xrate: exchange rate to GBP updated
Fields:
ccy [ string ]
The ISO 4217 code for the currency.
rate [ number ]
The exchange rate between GBP and the currency.
Example:
{
"ccy": "EUR",
"rate": 1.27
}