Betfair Market Information - Exchange Traded And Available

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    #1

    Betfair Market Information - Exchange Traded And Available

    Hi guys - can someone tell me how to get the amount of money traded on a particular event.

    I see if you click in Betfair on a runner you can get

    1.56 $1000
    1.59 $495

    So you can see how much money has been traded at each price.

    I see in MarketBook is returns Matches and Orders in the Runner class, however I am thinking this may be related to my own orders and not the full order book. Is there a filter that I need to select to get this data ???

    Troy
  • Betfair Developer Program
    Forum Administrator
    • Sep 2008
    • 29

    #2
    Hi Troy,

    You need to specify the priceProjection EX_TRADED in the listMarketBook request:

    Code:
    [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.122575583"],"priceProjection":{"priceData":["EX_BEST_OFFERS","EX_TRADED"]}}, "id": 1}]

    Response truncated

    Code:
    [{"jsonrpc":"2.0","result":[{"marketId":"1.122575583","isMarketDataDelayed":false,"status":"SUSPENDED","betDelay":1,"bspReconciled":true,"complete":true,"inplay":true,"numberOfWinners":1,"numberOfRunners":8,"numberOfActiveRunners":7,"lastMatchTime":"2016-01-14T13:02:19.000Z","totalMatched":791636.27,"totalAvailable":48720.8,"crossMatching":true,"runnersVoidable":false,"version":1211524609,"runners":[{"selectionId":10408353,"handicap":0.0,"status":"ACTIVE","adjustmentFactor":42.317,"lastPriceTraded":1000.0,"totalMatched":356208.0,"ex":{"availableToBack":[{"price":29.0,"size":13.43},{"price":21.0,"size":2.0},{"price":14.0,"size":3.02}],"availableToLay":[],"tradedVolume":[{"price":1.8,"size":108.69},{"price":1.81,"size":131.57},{"price":1.82,"size":8.58},{"price":1.83,"size":37.1},{"price":1.84,"size":1.38},{"price":1.85,"size":52.98},
    Thanks

    Neil

    Comment

    • Lopiner
      Junior Member
      • Feb 2009
      • 117

      #3
      troyedwards8, dont forget the limits (https://api.developer.betfair.com/se...Request+Limits). EX_TRADED will cost you 17 points per market
      fooledbyabet.com

      Comment

      • Guest

        #4
        Originally posted by Lopiner View Post
        troyedwards8, dont forget the limits (https://api.developer.betfair.com/se...Request+Limits). EX_TRADED will cost you 17 points per market
        Thanks guys for the response.

        I was also looking under Runner.Orders() and Runner.Matches() but this is my orders and matches.

        I needed Runner.ExchangePrices.TradedVolume()

        Comment

        Working...
        X