Stuck on a ListMarketCatalogue text Query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Stuck on a ListMarketCatalogue text Query

    I was experimenting with the API Visualiser to retrieve a list of all the UK General Elections constituency markets.
    I know they are in this structure Politics -> UK -> 2015 UK General Election ->

    Then there are 7 nodes below that named

    "Constituency Betting A-B" , "Constituency Betting C-D" ... etc. (Then a bunch of data below each one)

    I was trying to get back data such as
    Aberavon - Winner MarketId = 1.114293290
    Aberconway - Winner MarketId = 1.115851511
    etc. etc.

    I haven't been able to figure out what to input into the text query search to get back only these constituency market lists.

    Anyone know how to do that, if its possible even ?

    Thanks

    Geoff
  • Franklin1
    Junior Member
    • Mar 2012
    • 91

    #2
    I see your issue - these markets do not seem kindly named.

    Taking your question literally you are asking to select some markets depending on the parent(s) in the navigation tree. For this you should be using the navigation data:
    https://api.developer.betfair.com/se...r+Applications

    In practice in would be nice if the markets you want have some unique, unifying characteristic we could search on. Unfortunately they do not seem to:
    marketName=<place> Winner
    eventName=<place>

    The 'constituency betting' phrase only pertains to the parent node, not the market itself.

    Processing the navigation data might be overkill - the best alternatives I can suggest are:

    1 - Call listMarketCatalogue(EventTypeId=2378961)
    This gets all UK politics markets - you can then filter on <wildcard> '- Winner' in your code

    2 - manually get a list of all the marketIDs you want (using 1) and use them in your query

    Comment

    Working...
    X