Interface OddsChange<T extends SportEvent>
- All Superinterfaces:
EventMessage<T>,MarketMessage<T>,Message
Describes a set of odds changes for a particular competition
-
Method Summary
Modifier and TypeMethodDescriptionReturns the reason for the most recently sent betstop if the betstop is still activeReturns the betstop reason value descriptorIf this field is set, it reports that a previous betstop was sent but the markets have now been reopened.Returns the betting status value descriptorGet the reason why the odds changedReturns a list ofMarketWithOddsassociated with the messagedefault OddsGenerationGets 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)Methods inherited from interface com.sportradar.unifiedodds.sdk.oddsentities.EventMessage
getEvent, getRawMessage, getRequestIdMethods inherited from interface com.sportradar.unifiedodds.sdk.oddsentities.Message
getProducer, getTimestamps
-
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 ofMarketWithOddsassociated with the message- Specified by:
getMarketsin interfaceMarketMessage<T extends SportEvent>- Returns:
- a list of
MarketWithOddsassociated with the message
-
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
-