listMarketBook more than 3 prices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markie1234
    Junior Member
    • Dec 2012
    • 4

    #1

    listMarketBook more than 3 prices

    Hi all
    I am struggling to get more than 3 back/lay prices from the listMarketBook call.

    I have set "Price Depth" to 20 and still only get the best 3 prices.

    my json taken from Firebug is

    [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.117395526"],"priceProjection":{"priceData":["EX_ALL_OFFERS","EX_TRADED"],"exBestOffersOverrides":{"bestPricesDepth":"20"}} }, "id": 1}]

    can someone please point out where i am going wrong

    thanks in advance

    Mark
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    I think the bestPricesDepth applies only to requests made with EX_BEST_OFFERS in priceData (i.e. not EX_ALL_OFFERS)

    Comment

    • markie1234
      Junior Member
      • Dec 2012
      • 4

      #3
      thanks for the reply betdynamics.

      I have just tried your reply but still it only gives the best 3 prices.

      my modified json is

      [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.117396238"],"priceProjection":{"priceData":["EX_BEST_OFFERS"],"exBestOffersOverrides":{"bestPricesDepth":"20"}} }, "id": 1}]

      and the edited reply is

      [{"jsonrpc":"2.0","result":[{"marketId":"1.117396238","isMarketDataDelayed":tr ue,"status":"OPEN","betDelay":0,"bspReconciled":fa lse,"complete":true,"inplay":false,"numberOfWinner s":1,"numberOfRunners":12,"numberOfActiveRunners": 12,"lastMatchTime":"2015-02-20T19:23:40.108Z","totalMatched":39002.15,"totalAv ailable":171988.98,"crossMatching":true,"runnersVo idable":false,"version":917366512,"runners":[{"selectionId":1509081,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":17.989,"lastPriceTraded": 6.4,"totalMatched":0.0,"ex":{"availableToBack":[{"price":6.2,"size":187.53},{"price":6.0,"size":19 1.11},{"price":5.9,"size":217.48}],"availableToLay":[{"price":6.4,"size":40.23},{"price":6.6,"size":120 .35},{"price":6.8,"size":50.51}],"tradedVolume":[]}},{"selectionId":7835149,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":17.241,"lastPriceTrade d":5.5,"totalMatched":0.0,"ex":{"availableToBac k":[{"price":5.4,"size":179.92},{"price":5.3,"size":22 .0},{"price":5.2,"size":129.57}],"availableToLay":[{"price":5.5,"size":91.3},{"price":5.6,"size":130. 66},{"price":5.7,"size":265.85}],"tradedVolume":[]}},{

      Again only showing 3 prices. I was using the EX_ALL_OFFERS and EX_TRADED as per the Operations Comparison table for getDetailAvailableMktDepth.

      sorry to have to ask again but do you have any other pointers

      thanks

      Mark

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        Try turning on virtualise prices.

        The following JSON returns more than 3 prices:

        {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.117379880"],"priceProjection":{"priceData":["EX_BEST_OFFERS","EX_TRADED"],"virtualise":"true","exBestOffersOverrides":{"bes tPricesDepth":"20"}}}, "id": 1}

        Comment

        • markie1234
          Junior Member
          • Dec 2012
          • 4

          #5
          Sorry but that still only returns the 3 best back and lay prices.

          I entered your params into the visualiser and it only returned the best 3 prices.

          I put your params into my little program and only got the best 3 prices.

          I have the requests and responses shown in Firebug and only 3 back and lay prices are returned.

          I have checked the race I am looking at on Betting Assistant and there is money available at every price from 1.38 to 1.56 which spans 19 prices.

          Do you have any further suggestions

          thanks again for you help

          Comment

          • markie1234
            Junior Member
            • Dec 2012
            • 4

            #6
            Found the answer.

            Delay App Key only returns 3 best prices

            Normal App Key returns all prices.

            Comment

            Working...
            X