SDK v5.4 & Toolkit v4.5
We have added implementation of Cashouts and Live Statistics for live events.
Toolkit v4.5
-
getPrecalculatedCashouts
- Provides approximate precalculated cashout values, intended for use in the client's bets view -
getCalculatedCashout
- Returns the calculated cashout, intended to provide the exact cashout value for a specific bet -
getCashoutTypedData
- Returns a typed data for cashout typed signature -
createCashout
- Submits a cashout order -
getCashout
- Returns the details of the created cashout order -
New constants:
CASHOUT_DATA_TYPES
,CASHOUT_TYPED_DATA_DOMAIN_NAME
andCASHOUT_TYPED_DATA_DOMAIN_VERSION
SDK v5.4
-
usePrecalculatedCashouts
- Wrapper aroundgetPrecalculatedCashouts
for creating batch requests -
useCashout
- Handles cashout creation and status monitoring -
useLiveStatistics
- Used to retrieve updated live statistics for an live event. -
Introduces a new bet type filter:
BetType.CashedOut
, along withisCashedOut
andcashout
fields for the useLiveBets and usePrematchBets hooks. -
New constants:
LIVE_STATISTICS_SUPPORTED_SPORTS
andLIVE_STATISTICS_SUPPORTED_PROVIDERS