Skip to content

v6.4.0

Choose a tag to compare

@on47sky on47sky released this 09 Jul 09:02
· 7 commits to main since this release

What's new
Per-outcome state, condition categories & market sorting

  • New OutcomeState enum (Active / Canceled / Stopped / Won / Lost) and ConditionCategory type.
  • Per-outcome hidden & state — added to OutcomeData (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.
  • category added to ConditionDetailedData; sort + category added to ConditionStateData.
  • groupConditionsByMarket:
    • Market and MarketCondition now carry category; each MarketCondition exposes its own sort;
      MarketOutcome gains hidden + state.
    • Returned markets are ordered by their first condition's sort (ascending).
    • The per-condition shape is now exported as MarketCondition (previously an internal Condition).
    • 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