Amounts
Every amount the API returns is an object with a decimal string, the same amount in integer cents, and an ISO 4217 currency code:- Decimal string.
amountalways has two decimals and no thousands separator. It is a string so that no precision is lost: parse it with a decimal type, not a floating-point number. - Integer cents.
amountCentsis the same amount as a whole number of cents: alwaysamount× 100. Use it if your platform counts in cents; the two fields never disagree. - Sign. Amounts that can be negative, such as a profit or loss, carry a leading
-:"-50.00".amountCentsis negative too:-5000. - Currency. Amounts are in your account currency, USD.
The stake you send
stake on POST /v1/orders takes amount and currency only: the API does not read amountCents on input. These rules apply:
The stake is the total of the order. Apexium splits it across bookmakers; each bet shows its own
requestedStake and filledStake.
Prices
Prices are decimal odds, written as strings:"1.95".
minPrice. The price floor you send: at least1.001, at most four decimals.filledPrice. The price a bet was accepted at.averageFilledPrice. The stake-weighted price of an order’s filled bets.
Balance
GET /v1/balance returns four amounts:
An order whose stake exceeds
available is refused with 400 INSUFFICIENT_FUNDS.