The best way to see the capabilities in action is to use the HTML / Javascript test page linked from the Settings window. You can manually edit the Raw Request for a chosen API Test if you want to experiment.ilovepizza82 wrote: ↑Thu Jul 27, 2023 6:29 pmNice but how can i send a request to get info about specific runner's odds ?
Say the dog's name is "Scooby" and I would like to know:
- 3 best back odds and
- 3 best lay odds.
- and how much money each odds currently have eg. @3.25 £33, @3.3 £64, @3.35 £45 (is it even possible with this release?)
Wish there were more examples in the api guide.
If you call
Code: Select all
http://localhost:9000/api/markets/v1.0/getMarketPrices
Code: Select all
{"dataRequired":["BEST_THREE_PRICES"]}
If you want to make that specific to a single market you'd add the market Id as a filter so the request would be something like
Code: Select all
{"marketsFilter":{"filter":"SPECIFIED_IDS","ids":["1.216466957"]},"dataRequired":["BEST_THREE_PRICES"]}