Bets

Modified on Mon, 12 Jun 2023 at 03:43 PM

The Bets element holds an array of Bet. Every Bet holds data as it was received from the provider/s. All the Bets are a part of their Market ancestor (parent of Bets).

XML

<Bets> 
  <Bet Id="231321231232315" Name="1" Line="1:0" BaseLine="0:1" Status="2" Price="40.769" 	ProviderBetId="0" LastUpdate="2017-03-04T16:09:35Z" IsChanged="0" Probability="0.02281" 	SuspensionReason=”1”/> 
  <Bet Id="231321231232316" Name="X" Line="1:0" BaseLine="0:1" Status="2" Price="8.949" 		ProviderBetId="0" LastUpdate="2017-03-04T16:09:35Z" IsChanged="0" Probability = 	"	 0.10392" SuspensionReason=”1”/> 
  <Bet Id="231321231232317" Name="2" Line="1:0" BaseLine="0:1" Status="2" Price="1.065" 		ProviderBetId="0" LastUpdate="2017-03-04T16:09:35Z" IsChanged="0" Probability = 		"0.87327" SuspensionReason=”1”/> 
</Bets>

JSON

{ 
   "Bets": { 
      "Bet": [ 
         { 
            "Id": "231321231232315", 
            "Name": "1", 
            "Line": "1:0", 
            "BaseLine": "0:1", 
            "Status": "2", 
            "Price": "40.769", 
            "ProviderBetId": "0", 
            "LastUpdate": "2017-03-04T16:09:35Z", 
            "IsChanged": "0", 
            "Probability": "0.02281", 
            "SuspensionReason": "1" 
         }, 
         { 
            "Id": "231321231232316", 
            "Name": "X", 
            "Line": "1:0", 
            "BaseLine": "0:1", 
            "Status": "2", 
            "Price": "8.949", 
            "ProviderBetId": "0", 
            "LastUpdate": "2017-03-04T16:09:35Z", 
            "IsChanged": "0", 
            "Probability": "0.10392", 
             "SuspensionReason": "1" 
         }, 
         { 
            "Id": "231321231232317", 
            "Name": "2", 
            "Line": "1:0", 
            "BaseLine": "0:1", 
            "Status": "2", 
            "Price": "1.065", 
            "ProviderBetId": "0", 
            "LastUpdate": "2017-03-04T16:09:35Z", 
            "IsChanged": "0", 
            "Probability": "0.87327",                                                                      
             "SuspensionReason": "1" 
         } 
      ] 
   } 
} 

Model - Bet

ElementData TypeDescription
IdintThe uniqueness of the bet id is for a specific market under a specific fixture
NamestringThe name of the bet
LinestringThe line of the bet
BaseLinestringThe baseline helps you group all bets that belong together. In the example above – all bets with the same baseline (0:2) belong together
StatusenumThe status of the bet
StartPricedoubleThe initial price of the bet, when it was first introduced
PricedoubleThe price (odd) of the bet
LayPricedoubleOPTIONAL
PriceVolumedoubleOPTIONAL
LayPriceVolumedoubleOPTIONAL
SettlementenumRepresents how the bet was settled (resulted)
ProviderBetIdstringOPTIONAL: The bet ID, as shown by the provider
LastUpdateDateTimeTimestamp representing the time the bet was last updated
ParticipantIdintOPTIONAL: Reference ID to the participant in the fixture
Note: Provided in outright fixtures or in player's markets 
ProbabilitydoubleOPTIONAL: Probability field is configurable per customer request. Probability won't be calculated and will be sent with value= "-1" in the following cases:
  1. one of the market bets is suspended. 
  2. one of the market bets is equal to or lower than 1.00 (similar to suspended).
  3. The market is a special market and TRADE360 cannot calculate fair odds or probability.
If the probability ="-1", customers should not calculate the cash-out amount for the bets under this market (or line in case of a market with lines)
PlayerNamestringOPTIONAL : Appears only in player props markets, are markets where the players names are the bets.
SuspensionReasonintThe reason the bet was suspended


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article