How to request additional data in getMarketCatalogue API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luca Daniel
    Junior Member
    • Aug 2016
    • 14

    #1

    How to request additional data in getMarketCatalogue API

    Hi,

    In the API Demo tools, there is an option to request additional data along with the market catalogue. But, it is not listed in the docs as a parameter.

    How do I do that?

    Thanks

    EDIT: I figured few things

    For this request

    {
    "jsonrpc": "2.0",
    "method": "SportsAPING\/v1.0\/listMarketCatalogue",
    "params": {
    "filter": {
    "eventIds": ["27110750"],
    "marketTypeCodes": ["MATCH_ODDS"]
    },
    "marketProjection": ["EVENT", "COMPETITION", "EVENT_TYPE"],
    "maxResults": 100
    }
    }
    I am getting the following response

    {
    "jsonrpc": "2.0",
    "result": [{
    "marketId": "1.112108345",
    "marketName": "Match Odds",
    "totalMatched": 0.0,
    "eventType": {
    "id": "1",
    "name": "Soccer"
    },
    "event": {
    "id": "27110750",
    "name": "Lebanon v Iran",
    "timezone": "GMT",
    "openDate": "2013-12-03T09:00:00.000Z"
    }
    }]
    }
    I am not getting the event type and the competition data along with the response. But, I do get that in the API demo tool

    Please help
    Last edited by Luca Daniel; 08-08-2016, 12:24 PM.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    I couldn't tell whether there was still something you haven't worked out.

    This is the list of market projection options:

    http://docs.developer.betfair.com/do...rketProjection

    Comment

    Working...
    X