Markets

Modified on Wed, 17 Apr at 6:34 PM

The markets element is an array of Market elements. Every Market holds data regarding lines and bets.

XML

    <Markets>
          <Market Id="2" Name="Under/Over" MainLine="3.5">
            <Bets>
              <Bet Id="14576566594209218" Name="Over" Line="3.5" BaseLine="3.5" Status="1" StartPrice="1.0" Price="1.844" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="-118" PriceHK="0.844" />
              <Bet Id="17752677724209218" Name="Over" Line="4.5" BaseLine="4.5" Status="1" StartPrice="1.0" Price="3.563" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="256" PriceHK="2.563" />
              <Bet Id="16341052714209218" Name="Over" Line="5.5" BaseLine="5.5" Status="1" StartPrice="1.0" Price="7.482" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="648" PriceHK="6.482" />
              <Bet Id="20966252704209218" Name="Under" Line="2.5" BaseLine="2.5" Status="1" StartPrice="1.0" Price="4.585" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="359" PriceHK="3.585" />
              <Bet Id="2494839224209218" Name="Over" Line="3.75" BaseLine="3.75" Status="1" StartPrice="1.0" Price="2.138" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="114" PriceHK="1.138" />
              <Bet Id="20966252374209218" Name="Under" Line="3.5" BaseLine="3.5" Status="1" StartPrice="1.0" Price="1.918" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="-109" PriceHK="0.918" />
              <Bet Id="20575927744209218" Name="Over" Line="6.5" BaseLine="6.5" Status="1" StartPrice="1.0" Price="13.0" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="1200" PriceHK="12" />
              <Bet Id="3306500694209218" Name="Under" Line="3.25" BaseLine="3.25" Status="1" StartPrice="1.0" Price="2.269" ProviderBetId="0" LastUpdate="2018-12-23T12:26:49.537Z" PriceUS="127" PriceHK="1.269" />
            </Bets>
          </Market>
        </Markets>

Json

{
   "Markets": {
      "Market": {
         "Bets": {
            "Bet": [
               {
                  "Id": "14576566594209218",
                  "Name": "Over",
                  "Line": "3.5",
                  "BaseLine": "3.5",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "1.844",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "-118",
                  "PriceHK": "0.844"
               },
               {
                  "Id": "17752677724209218",
                  "Name": "Over",
                  "Line": "4.5",
                  "BaseLine": "4.5",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "3.563",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "256",
                  "PriceHK": "2.563"
               },
               {
                  "Id": "16341052714209218",
                  "Name": "Over",
                  "Line": "5.5",
                  "BaseLine": "5.5",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "7.482",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "648",
                  "PriceHK": "6.482"
               },
               {
                  "Id": "20966252704209218",
                  "Name": "Under",
                  "Line": "2.5",
                  "BaseLine": "2.5",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "4.585",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "359",
                  "PriceHK": "3.585"
               },
               {
                  "Id": "2494839224209218",
                  "Name": "Over",
                  "Line": "3.75",
                  "BaseLine": "3.75",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "2.138",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "114",
                  "PriceHK": "1.138"
               },
               {
                  "Id": "20966252374209218",
                  "Name": "Under",
                  "Line": "3.5",
                  "BaseLine": "3.5",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "1.918",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "-109",
                  "PriceHK": "0.918"
               },
               {
                  "Id": "20575927744209218",
                  "Name": "Over",
                  "Line": "6.5",
                  "BaseLine": "6.5",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "13.0",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "1200",
                  "PriceHK": "12"
               },
               {
                  "Id": "3306500694209218",
                  "Name": "Under",
                  "Line": "3.25",
                  "BaseLine": "3.25",
                  "Status": "1",
                  "StartPrice": "1.0",
                  "Price": "2.269",
                  "ProviderBetId": "0",
                  "LastUpdate": "2018-12-23T12:26:49.537Z",
                  "PriceUS": "127",
                  "PriceHK": "1.269"
               }
            ]
         },
         "Id": "2",
         "Name": "Under/Over",
         "MainLine": "3.5"
      }
   }
}

Model

ElementData TypeDescription
Market.IdintThe unique ID of the market
Market.Name
stringThe name of the market
Market.MainLinestring
The main line of the market (if there is one)
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
SettlementenumRepresents how the bet was settled (resulted)
Relevant for Bet Status (3)
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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article