Event name in listMarketCatalogue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hugh Gearse
    Junior Member
    • Mar 2014
    • 4

    #1

    Event name in listMarketCatalogue

    Hi

    I am a bit confused about the event name returned by listMarketCatalogue. For example consider the Match Odds market for tonight's football game between Rep of Ireland and Serbia. This is what is returned as the event name for the market. But where can I find a reference to the fact that this is under "Internationals/International Friendly"?

    Thanks
    Des
  • tkw141
    Junior Member
    • Nov 2013
    • 18

    #2
    Hi Des,

    You need to request additional data for the market by adding marketProjection = "COMPETITION".

    Using the eventId for the Ireland game and the MATCH_ODDS market, your request would look like this:

    {"jsonrpc": "2.0",
    "method": "SportsAPING/v1.0/listMarketCatalogue",
    "params": {"filter":{
    "eventIds":["27158070"],
    "marketTypeCodes":["MATCH_ODDS"]},
    "maxResults":"1",
    "marketProjection":["COMPETITION"]},
    "id": 1}


    This would return the following data:

    {"jsonrpc":"2.0",
    "result":[{"marketId":"1.113003031",
    "marketName":"Match Odds",
    "totalMatched":30262.79,
    "competition":{"id":"1985077","name":"Internationa l Friendly"}}],
    "id":1}


    You can add other fields to marketProjection to get additional data. These are:
    EVENT, EVENT_TYPE, MARKET_DESCRIPTION, RUNNER_DESCRIPTION, RUNNER_METADATA, MARKET_START_TIME
    You can include as many of these as you need in the one request.
    Hope that helps.
    Tony

    Comment

    • Hugh Gearse
      Junior Member
      • Mar 2014
      • 4

      #3
      That's the one I wanted alright.
      Thanks Tony

      Comment

      Working...
      X