Get the maximum stake
POST/api/v1/bettor/max-stake
Returns the largest stake on the outcome that the exposure limits accept now.
The stake is in the bettor's currency and rounded down to the minor unit of the currency.
The wallet balance has no effect. The endpoint runs the checks of bet placement and returns the same errors.
A bet with this stake is accepted when the odds and the exposure do not change before placement.
The endpoint changes no data and does not use an Idempotency-Key. Do not cache the result.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 429
- 500
- 503
Maximum stake
Invalid request. Error types urn:error:invalid-json, urn:error:invalid-uuid, urn:error:invalid-parameter.
urn:error:invalid-parameter also means that the outcome is not in the market.
Unauthorized - Invalid or missing JWT token (empty body)
The operator disabled betting for the bettor. Error type urn:error:bettor-betting-disabled.
The market does not exist. Error type urn:error:market-not-found.
No stake is available. Error types:
urn:error:outcome-locked: the outcome is locked.urn:error:market-closed: the market is not active, the market or event is hidden, or all outcomes are locked.urn:error:event-suspended,urn:error:event-closed: the event is not active.urn:error:exposure-limit-exceeded: a limit is exhausted, the stake rounds down to 0, or the platform does not accept bets on the event now.
Too Many Requests - Rate limit exceeded (empty body)
Internal Server Error
A dependency does not answer. Error types urn:error:offering-unavailable,
urn:error:rates-unavailable, urn:error:risk-unavailable.