Race details

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ToffeeDan
    Junior Member
    • Jan 2017
    • 2

    #1

    Race details

    Hi, I've just begun using the API and have managed to cycle through horse racing events and the market catalogue. However I want to have more information about a race, e.g. the following:
    2:30 Kempton

    At the moment, all I have retrieved is: 2m Hcap Hrd

    This is the code I have used:
    client.listMarketCatalogue(marketFilter, marketProjections, marketSort, maxResults);

    var marketBook = client.listMarketBook(marketIds, priceProjection);

    Can somebody please tell me which method I need to call to retrieve more information about a given race? I have the race/market ID of a given race.

    Thanks!
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Hi

    You need to fill in the marketProjection variable that you send to BF for the martketCatalogue request. For example something like this.

    ISet<MarketProjection> marketProjections = new HashSet<MarketProjection>();

    marketProjections.Add(MarketProjection.COMPETITION );
    marketProjections.Add(MarketProjection.MARKET_STAR T_TIME);
    marketProjections.Add(MarketProjection.EVENT);
    marketProjections.Add(MarketProjection.EVENT_TYPE) ;
    marketProjections.Add(MarketProjection.MARKET_DESC RIPTION);
    marketProjections.Add(MarketProjection.RUNNER_META DATA);
    This will give you a ton of info back for the race. The RUNNER_METADATA in particular gives you stuff like horse form, saddle cloth etc etc.

    Regards Geoff

    Comment

    Working...
    X