Betfair SP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rah111
    Junior Member
    • May 2009
    • 11

    #1

    Betfair SP

    Hi all,
    Is it possible to retrieve the Betfair SP prices for each horse in a race via some call to the API post-race?
    Thanks,
    Russell.
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 679

    #2
    Hi Russell,

    Yes, this data is available via listMarketBook following market settlement:. See an example below:

    Request

    [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.123631656"],"priceProjection":{"priceData":["SP_TRADED","SP_AVAILABLE"]}}, "id": 1}]

    Response (Truncated)

    {"marketId":"1.123631656","isMarketDataDelayed":fa lse,"status":"CLOSED","betDelay":1,"bspReconciled" :true,"complete":true,"inplay":false,"numberOfWinn ers":1,"numberOfRunners":11,"numberOfActiveRunners ":0,"totalMatched":0.0,"totalAvailable":0.0,"cross Matching":false,"runnersVoidable":false,"version": 1260379805,"runners":[{"selectionId":8472467,"handicap":0.0,"status":"LO SER","adjustmentFactor":40.667,"sp":{"backStakeTak en":[],"layLiabilityTaken":[],"actualSP":2.302550744}},{"selectionId":9299754," handicap":0.0,"status":"WINNER","adjustmentFactor" :27.778,"sp":{"backStakeTaken":[],"layLiabilityTaken":[],"actualSP":4.809354815513468}}

    Thanks

    Neil

    Comment

    • rah111
      Junior Member
      • May 2009
      • 11

      #3
      Hi Neil.
      Nice. Thanks again.
      You have been a great help with all my questions.
      Regards,
      Russell.

      Comment

      • doctormike
        Junior Member
        • Nov 2012
        • 55

        #4
        Historic Betfair SP data

        Russell, Also if you want historic Betfair & industry SP data along with in running highs and lows, you can scrape this from its inception from the Timeform Cards and Results, without resort to the API-NG, although I'd be interested to hear from the Team (or Timeform) whether this would be frowned on.
        Mike

        Comment

        • Mr Magoo
          Junior Member
          • Jan 2011
          • 86

          #5
          No need to screenscrape them, Betfair provide the historical SPs together with in-play highs and lows in CSV format, downloadable from

          http://www.betfairpromo.com/betfairsp/prices/

          Comment

          Working...
          X