Exchange Traded and Available via API-NG

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doctormike
    Junior Member
    • Nov 2012
    • 55

    #1

    Exchange Traded and Available via API-NG

    I'm struggling to identify the API-NG call which will give me the horse data provided in Exchange Traded and Available on the website. If anyone can tell me which call it is (I suspect it will be derived from listMarketBook) I'd be grateful. An indication of the appropriate json request string would also be a big bonus!
    With regards
    Mike
  • doctormike
    Junior Member
    • Nov 2012
    • 55

    #2
    Traded Volume

    OK, have sorted this out from the documentation. The string is:
    strRequest = "{""jsonrpc"": ""2.0"", ""method"": ""SportsAPING/v1.0/listMarketBook"", ""params"": {""marketIds"":[""" & marketId & """],""priceProjection"":{""priceData"":[""EX_BEST_OFFERS"",""EX_TRADED""]}}, ""id"": 1}"

    You have to include EX_BEST_OFFERS as well as EX_TRADED in priceProjection.

    With regards
    Mike

    Comment

    • doctormike
      Junior Member
      • Nov 2012
      • 55

      #3
      Traded Volume again

      To clarify last post, the string indicated only returns aggregate volumes traded at various prices (which is what I actually wanted), not the volumes available.
      Mike

      Comment

      Working...
      X