Interface OddsChange<T extends SportEvent>

All Superinterfaces:
EventMessage<T>, MarketMessage<T>, Message

public interface OddsChange<T extends SportEvent> extends MarketMessage<T>
Describes a set of odds changes for a particular competition
  • Method Details

    • getChangeReason

      OddsChangeReason getChangeReason()
      Get the reason why the odds changed
      Returns:
      if RiskAdjustment this means the user changed some configuration forcing an odds change, otherwise it is a normal update based on changed conditions (i.e. something happened in the game or enough time has passed)
    • getBetstopReasonValue

      NamedValue getBetstopReasonValue()
      Returns the betstop reason value descriptor
      Returns:
      betstop reason value descriptor
    • getBetstopReason

      String getBetstopReason()
      Returns the reason for the most recently sent betstop if the betstop is still active
      Returns:
      the reason for the most recently sent betstop if the betstop is still active (otherwise null)
    • getBettingStatusValue

      NamedValue getBettingStatusValue()
      Returns the betting status value descriptor
      Returns:
      the betting status value descriptor
    • getBettingStatus

      String getBettingStatus()
      If this field is set, it reports that a previous betstop was sent but the markets have now been reopened. A conservative bookmaker could keep the markets suspended. Previously, we call it that the markets are current in early betstart.
      Returns:
      the betting status - if set the affected markets are in early betstart otherwise null.
    • getMarkets

      List<MarketWithOdds> getMarkets()
      Returns a list of MarketWithOdds associated with the message
      Specified by:
      getMarkets in interface MarketMessage<T extends SportEvent>
      Returns:
      a list of MarketWithOdds associated with the message
    • getOddsGenerationProperties

      default OddsGeneration getOddsGenerationProperties()
      Gets the odds generation properties (contains a few key-parameters that can be used in a client’s own special odds model, or even offer spread betting bets based on it)
      Returns:
      the odds generation properties