marketName Flat v Jumps Horse Racing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gus
    Senior Member
    • Jan 2009
    • 134

    #1

    marketName Flat v Jumps Horse Racing

    Some of my Bots need to distinguish between Flat and Jumps Races in UK and Irish Horse Racing.

    Since I can't find any other way to achieve this from the API, my Bots parse the marketName returned by listMarketCatalogue, and if it contains "Hrd" OR "Chs" OR "NHF" or "INHF", then it decides they're a Jumps Race, if not, they're a Flat Race.

    That works almost all the time, but, today, Sun 6 November, we have 2 Races, the 14.15 Sandown (a Chase) and the 13.30 Cork (a Hurdle) whose marketNames are just "3m Listed", so my unfortunate Bot thinks they're Flat Races.

    I know there can't ever be any guarantee that string parsing responses from the API could or should be 100% consistent, but could whoever assigns marketNames to UK/Irish Horse Races be persuaded to always try to add "Hrd", "Chs", "NHF" or "INHF" to UK/Irish Jumps races?
    Last edited by gus; 06-11-2016, 02:12 PM. Reason: typo
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    You might like to look at the distances and the ages of horses. I can't remember the exact details, but flat races are generally shorter and the horses younger. Many venues are either only flat or only jumps, which might help. At a jumps meeting, there is usually a long flat race, sometimes called a "bumper", often for younger jumps horses. There are also seasons for flat and jumps and many venues have a regular annual programme of meetings. Also, if any race at a meeting is flat or jumps, they all are, leaving aside the bumpers.

    I hope that's some help, but it might be messy to turn into rules. You could perhaps get the information from another website.

    Comment

    • LiamP
      Junior Member
      • Oct 2015
      • 284

      #3
      Use the raceCard API, its not public but you just need to provide an API key that you get from the /plus page and then provide a marketId.

      appKey: 'https://www.betfair.com/exchange/plus/'
      raceCard API: 'https://www.betfair.com/rest/v2/raceCard'

      betfairlightweight/endpoints/racecard.py

      Comment

      Working...
      X