Bets

Modified on Thu, 06 Jun 2024 at 02:00 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" Probability="0.02281" SuspensionReason="1" PriceUS="+3976.9" PriceHK="39.769"/> 
  <Bet Id="231321231232316" Name="X" Line="1:0" BaseLine="0:1" Status="2" Price="8.949" 		ProviderBetId="0" LastUpdate="2017-03-04T16:09:35Z" Probability = "0.10392" SuspensionReason="1" PriceUS="+794.9" PriceHK="7.949"/> 
  <Bet Id="231321231232317" Name="2" Line="1:0" BaseLine="0:1" Status="2" Price="1.065" 		ProviderBetId="0" LastUpdate="2017-03-04T16:09:35Z" Probability = "0.87327" SuspensionReason="1" PriceUS=" -1538.46" PriceHK="0.065"/> 
</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", 
            "Probability": "0.02281", 
            "SuspensionReason": "1",
             "PriceUS": "+3976.9",
             "PriceHK": "39.769"
         }, 
         { 
            "Id": "231321231232316", 
            "Name": "X", 
            "Line": "1:0", 
            "BaseLine": "0:1", 
            "Status": "2", 
            "Price": "8.949", 
            "ProviderBetId": "0", 
            "LastUpdate": "2017-03-04T16:09:35Z", 
            "Probability": "0.10392", 
             "SuspensionReason": "1",
             "PriceUS": "+794.9",
             "PriceHK": "7.949"
         }, 
         { 
            "Id": "231321231232317", 
            "Name": "2", 
            "Line": "1:0", 
            "BaseLine": "0:1", 
            "Status": "2", 
            "Price": "1.065", 
            "ProviderBetId": "0", 
            "LastUpdate": "2017-03-04T16:09:35Z", 
            "Probability": "0.87327",                                                                      
             "SuspensionReason": "1",
             "PriceUS": " -1538.46",
             "PriceHK": "0.065"
         } 
      ] 
   } 
} 

Model - Bet

ElementData TypeDescription
IdstringThe 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
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: The 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, which are markets where the player's names are the bets.
SuspensionReasonintThe reason the bet was suspended
PriceUSstringOPTIONAL: The PriceUS field is configurable per customer request.
The price (odd) of the bet in American odds format
PriceHK
stringOPTIONAL: The PriceHK field is configurable per customer request.
The price (odd) of the bet in Hong Kong odds format


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
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article