Get race description like R5 6f Mdn Claim

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Onix
    Junior Member
    • Aug 2019
    • 13

    #1

    Get race description like R5 6f Mdn Claim

    Hi,
    how is possible to get the race description like R5 6f Mdn Claim using API ?

    Thank you
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    For an event (which might be a horse race, a football match, an election, etc). Event has data such as the event title (which might be what you're after. If not, look at the MarketCatalogue), country, venue, timezone, expected start date+time.

    MarketCatalogue tells you all the supposedly fixed stuff about a particular market of an event. Market description, runners (possibly not literally; often just all the possibly outcomes), etc, Etc.

    MarketBook tells you all the stuff about the market that is not fixed. Odds, amounts available, current statuses, etc,

    Comment

    • Onix
      Junior Member
      • Aug 2019
      • 13

      #3
      Originally posted by jabe View Post
      For an event (which might be a horse race, a football match, an election, etc). Event has data such as the event title (which might be what you're after. If not, look at the MarketCatalogue), country, venue, timezone, expected start date+time.

      MarketCatalogue tells you all the supposedly fixed stuff about a particular market of an event. Market description, runners (possibly not literally; often just all the possibly outcomes), etc, Etc.

      MarketBook tells you all the stuff about the market that is not fixed. Odds, amounts available, current statuses, etc,
      Hi,
      Unfortunately, MarketCatalogue has not the data i like, though it indeed has : country, venue, timezone, expected start date+time.

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Originally posted by Onix View Post

        Hi,
        Unfortunately, MarketCatalogue has not the data i like, though it indeed has : country, venue, timezone, expected start date+time.
        Is it on Event?

        Comment

        • pwebtech
          Member
          • Apr 2021
          • 49

          #5
          yes it is, but you do need to set an 'event' market projection though.

          e.g. in node.js:

          const request_filters = '{"filter":{"eventIds":[' + event.id + '],"marketTypeCodes":["WIN"]},"maxResults":"200","marketProjection":["EVENT"]}, "id": 1}';
          const json_request = construct_json_rpc_request('SportsAPING','listMark etCatalogue', request_filters);


          and then in the returned 'market' reference the race details in:

          market.event.name

          Comment

          Working...
          X