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?
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?


Comment