Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Current »

When requesting a list of markets per sport, POST request is:

Base URL /get_all_markets_per_sport

Required field for this call is the sport_id

With the above details the API provides the following message:

<markets timestamp="1613571248404">
  <market id="323" name="1st Half Double Chance">
    <outcomes>
      <outcome id="70" name="12"/>
      <outcome id="69" name="1X"/>
      <outcome id="71" name="X2"/>
    </outcomes>
  </market>
  <market id="392" name="1st Half totals home team ">
    <outcomes>
      <outcome id="6" name="Over"/>
      <outcome id="7" name="Under"/>
    </outcomes>
  </market>
  <market id="393" name="1st Half totals away team ">
    <outcomes>
      <outcome id="6" name="Over"/>
      <outcome id="7" name="Under"/>
    </outcomes>
  </market>
  <market id="10" name="3-way">
    <outcomes>
      <outcome id="1" name="1"/>
      <outcome id="3" name="2"/>
      <outcome id="2" name="X"/>
    </outcomes>
  </market>
  <market id="396" name="1st Half european handicap ">
    <outcomes>
      <outcome id="1" name="1"/>
      <outcome id="3" name="2"/>
      <outcome id="2" name="X"/>
    </outcomes>
  </market>
  <market id="207" name="Highest Scoring Half">
    <outcomes>
      <outcome id="93" name="1st"/>
      <outcome id="94" name="2nd"/>
      <outcome id="95" name="Equal"/>
    </outcomes>
  </market>
  <market id="208" name="Matchbet + Totals">
  <outcomes>
      <outcome id="107" name="Over and away"/>
      <outcome id="106" name="Over and draw"/>
      <outcome id="105" name="Over and home"/>
      <outcome id="104" name="Under and away"/>
      <outcome id="103" name="Under and draw"/>
      <outcome id="102" name="Under and home"/>
  </outcomes>
  </market>
</markets>

Tag markets has only one attribute which is timestamp with date and time when message was created.

Under that tag there is a tag named market that has ID of market and its name.

Under the tag market there is outcomes tag which contains data for all outcomes placed into child outcome tags. Tags outcome have attribute representing id of outcome and name attribute that represents name of the outcome.

  • No labels