Missing totalMatched & lastPriceTraded for runners?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pillbox
    Junior Member
    • Oct 2014
    • 7

    #1

    Missing totalMatched & lastPriceTraded for runners?

    How do I get totalMatched and lastPriceTraded for individual runners? I get 0.0 and null for all calls. Using java json rpc.

    (Target market is horse racing 14:05 win at Newmarket 11th October 2014).

    endpoint:
    https://api.betfair.com/exchange/betting/json-rpc/v1

    Request:
    {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketBook","id":"1","params":{"marketIds":["1.115844132"],"locale":"en_GB","priceProjection":{"priceData ":["EX_BEST_OFFERS"],"virtualise":true,"rolloverStakes":false}}}

    Response:
    {"jsonrpc":"2.0","result":[{"marketId":"1.115844132","isMarketDataDelayed":tr ue,"status":"OPEN","betDelay":0,"bspReconciled":fa lse,"complete":true,"inplay":false,"numberOfWinner s":1,"numberOfRunners":10,"numberOfActiveRunners": 9,"totalMatched":101356.78,"totalAvailable":68584. 95,"crossMatching":false,"runnersVoidable":false," version":838116716,"runners":[{"selectionId":8726674,"handicap":0.0,"status":"AC TIVE","adjustmentFactor":27.7,"totalMatched":0.0," ex":{"availableToBack":[{"price":3.4,"size":9.55},{"price":3.35,"size":650 .51},{"price":3.3,"size":752.49}],"availableToLay":[{"price":3.45,"size":605.1},{"price":3.5,"size":10 90.7},{"price":3.55,"size":468.94}],"tradedVolume":[]}},{"selectionId":8723381,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":20.4,"totalMatched":0. 0,"ex":{"availableToBack":[{"price":5.4,"size":392.32},{"price":5.3,"size":13 8.52},{"price":5.2,"size":126.65}],"availableToLay":[{"price":5.5,"size":28.57},{"price":5.6,"size":171 .71},{"price":5.7,"size":10.03}],"tradedVolume":[]}},{"selectionId":8821232,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":13.3,"totalMatched":0. 0,"ex":{"availableToBack":[{"price":7.2,"size":377.99},{"price":7.0,"size":96 0.72},{"price":6.8,"size":143.82}],"availableToLay":[{"price":7.4,"size":21.72},{"price":7.6,"size":36. 97},{"price":7.8,"size":40.15}],"tradedVolume":[]}},{"selectionId":8726678,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":10.5,"totalMatched":0. 0,"ex":{"availableToBack":[{"price":10.0,"size":42.39},{"price":9.8,"size":15 .94},{"price":9.6,"size":17.13}],"availableToLay":[{"price":10.5,"size":24.94},{"price":11.0,"size":6 5.58},{"price":11.5,"size":17.49}],"tradedVolume":[]}},{"selectionId":8768750,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":10.2,"totalMatched":0. 0,"ex":{"availableToBack":[{"price":9.6,"size":21.03},{"price":9.4,"size":102 .99},{"price":9.2,"size":94.73}],"availableToLay":[{"price":9.8,"size":43.39},{"price":10.0,"size":34 .59},{"price":11.0,"size":6.69}],"tradedVolume":[]}},{"selectionId":8804567,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":7.1,"totalMatched":0.0 ,"ex":{"availableToBack":[{"price":12.5,"size":89.42},{"price":12.0,"size":4 6.0},{"price":11.5,"size":53.81}],"availableToLay":[{"price":13.0,"size":29.81},{"price":13.5,"size":2 .85},{"price":14.0,"size":4.02}],"tradedVolume":[]}},{"selectionId":8706053,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":4.8,"totalMatched":0.0 ,"ex":{"availableToBack":[{"price":23.0,"size":16.03},{"price":22.0,"size":1 61.94},{"price":21.0,"size":29.54}],"availableToLay":[{"price":24.0,"size":3.2},{"price":25.0,"size":14. 42},{"price":27.0,"size":5.59}],"tradedVolume":[]}},{"selectionId":8716975,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":4.5,"totalMatched":0.0 ,"ex":{"availableToBack":[{"price":22.0,"size":201.66},{"price":21.0,"size": 21.63},{"price":20.0,"size":37.8}],"availableToLay":[{"price":23.0,"size":4.03},{"price":24.0,"size":24 .0},{"price":25.0,"size":5.7}],"tradedVolume":[]}},{"selectionId":8802173,"handicap":0.0,"status": "ACTIVE","adjustmentFactor":1.5,"totalMatched":0.0 ,"ex":{"availableToBack":[{"price":60.0,"size":2.52},{"price":55.0,"size":4. 99},{"price":50.0,"size":39.96}],"availableToLay":[{"price":70.0,"size":2.08},{"price":75.0,"size":2. 16},{"price":80.0,"size":2.0}],"tradedVolume":[]}},{"selectionId":8719474,"handicap":0.0,"status": "REMOVED","adjustmentFactor":2.9,"removalDate":"20 14-10-11T07:27:45.000Z","ex":{"availableToBack":[],"availableToLay":[],"tradedVolume":[]}}]}],"id":"1"}
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Try including EX_TRADED in your priceData as well as EX_BEST_OFFERS.

    Comment

    • Merlin
      Junior Member
      • Jan 2009
      • 56

      #3
      pillbox,
      Are you using the 'delayed' app key? This doesn't return traded volume data via listMarketBook, so you will have to use the 'live' key if you want this information.
      If that's not the problem, I can't help you beyond the ubiquitous and unhelpful "Well it's working for me". :-)

      Merlin

      PS including EX_TRADED gives you the detailed breakdown of how much was matched at each price, EX_BEST_OFFERS will just give the lastPriceTraded and TotalMatched, which was what you were looking for in the OP.
      Last edited by Merlin; 11-10-2014, 01:44 PM.

      Comment

      • pillbox
        Junior Member
        • Oct 2014
        • 7

        #4
        Thank you both.

        I'd already tried all combinations of parameters and none solved my problem. But switching to the non-delayed key did the trick! Good advice Merlin.

        Comment

        • Frank Anton
          Junior Member
          • Oct 2012
          • 1

          #5
          I am having the same problem as pillbox above even though I am using the non-delayed application key.

          Any ideas?

          Comment

          • Merlin
            Junior Member
            • Jan 2009
            • 56

            #6
            Hi Frank,
            if you are using the live key you aren't having the same problem, it just looks the same :-)
            As I said above, pillbox's request worked for me - would it be possible for you to post the request you are sending and the response you are getting back? At the moment we don't have enough information to offer any constructive advice.
            Cheers,
            Merlin

            Comment

            • denimen.
              Junior Member
              • Feb 2013
              • 14

              #7
              Hi,

              I still have no tradedVolume even with the live key.

              Can you please post me your request json pillbox?

              Comment

              • doctormike
                Junior Member
                • Nov 2012
                • 55

                #8
                traded volume

                Denis, See my reply to you in traded volume in listMarketBook thread
                Regards,
                Mike

                Comment

                Working...
                X