v6.4.0
What's new
Per-outcome state, condition categories & market sorting
- New
OutcomeStateenum (Active/Canceled/Stopped/Won/Lost) andConditionCategorytype. - Per-outcome
hidden&state— added toOutcomeData(getConditionsByGameIds) and to
ConditionStateData.outcomes[](getConditionsState). An individual outcome can now be suspended or hidden
while the rest of its condition stays open for betting. categoryadded toConditionDetailedData;sort+categoryadded toConditionStateData.groupConditionsByMarket:MarketandMarketConditionnow carrycategory; eachMarketConditionexposes its ownsort;
MarketOutcomegainshidden+state.- Returned markets are ordered by their first condition's
sort(ascending). - The per-condition shape is now exported as
MarketCondition(previously an internalCondition). - Empty / nullish input now returns
[]instead of throwing.
Note
MarketOutcome and the raw OutcomeData gained required hidden / state fields. Reading API
responses is unaffected (you just get more data), but code that constructs these objects by hand must add
the new fields.
Docs:
groupConditionsByMarket
getConditionsByGameIds
getConditionsState
Full Changelog: v6.3.1...v6.4.0