listmarketbook ("EX_TRADED","EX_BEST_OFFERS")

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicnolte
    Junior Member
    • Feb 2013
    • 3

    #1

    listmarketbook ("EX_TRADED","EX_BEST_OFFERS")

    I try "EX_TRADED","EX_BEST_OFFERS" in the same listmarketbook,
    like this : "priceProjection":"priceData":"EX_TRADED","EX_BEST _OFFERS"

    I have a result but seems incomplete;

    Does I have to use ex_traded and ex_best_offers in two separates listmarketbook ?
  • doctormike
    Junior Member
    • Nov 2012
    • 55

    #2
    listMarketBook

    You need to enclose "EX_TRADED","EX_BEST _OFFERS" in square brackets as it is a json array. Without seeing the whole json string you use, and not knowing how the response is incomplete, it's difficult to give more specific advice. Hope this helps.
    With regards
    Mike

    Comment

    • doctormike
      Junior Member
      • Nov 2012
      • 55

      #3
      listMarketBook again

      This is the json string I use:

      Dim strMarketBook As String
      strRequest = "{""jsonrpc"": ""2.0"", ""method"": ""SportsAPING/v1.0/listMarketBook"", ""params"": {""marketIds"":[""" & marketId & """],""priceProjection"":{""priceData"":[""EX_BEST_OFFERS"",""EX_TRADED""],""exBestOffersOverrides"":{""bestPricesDepth"":1} }}, ""id"": 1}"

      I include exBestOffersOverrides as I only need the best single offer. You can omit this.

      You don't need to submit separate requests - in fact if you do you won't get EX_TRADED back.

      With regards
      Mike

      Comment

      • doctormike
        Junior Member
        • Nov 2012
        • 55

        #4
        Sorry, in the above it should be Dim strRequest As String
        Mike

        Comment

        Working...
        X