Sp_projected

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ipposnif
    Member
    • Mar 2014
    • 36

    #1

    Sp_projected

    Hi,
    actually, the SP_PROJECTED filter tag is available only on the Stream API, any chance that it will be added also to the REST API?
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi Ipposnif.

    The Betfair SP Near and Far Price ae already included in the listMarketBook response when you request SP_TRADED/SP_AVAILABLE.

    See an example below:

    [
    Code:
    {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.208383776"],"priceProjection":{"priceData":["SP_AVAILABLE","EX_BEST_OFFERS"]}}, "id": 1}]
    Code:
    [{"jsonrpc":"2.0","result":[{"marketId":"1.208383776","isMarketDataDelayed":false,"status":"OPEN","betDelay":0,"bspReconciled":false,"complete":true,"inplay":false,"numberOfWinners":1,"numberOfRunners":9,"numberOfActiveRunners":9,"lastMatchTime":"2023-01-09T10:57:39.303Z","totalMatched":12289.49,"totalAvailable":515682.96,"crossMatching":true,"runnersVoidable":false,"version":4985665079,"runners":[{"selectionId":41456642,"handicap":0.0,"status":"ACTIVE","adjustmentFactor":16.049,"lastPriceTraded":3.9,"totalMatched":2786.88,"sp":{"nearPrice":3.836246341,"farPrice":1.345489443378119,"backStakeTaken":[],"layLiabilityTaken":[]},"ex":{"availableToBack":[{"price":3.9,"size":33.73},{"price":3.85,"size":15.24},{"price":3.8,"size":187.1}],"availableToLay":[{"price":3.95,"size":17.68},{"price":4.0,"size":7.17},{"price":4.1,"size":15.77}],"tradedVolume":[]}},{"selectionId":28770710,"handicap":0.0,"status":"ACTIVE","adjustmentFactor":23.123,"lastPriceTraded":6.4,"totalMatched":2460.91,"sp":{"nearPrice":5.8772777846549795,"farPrice":1.3983325764770485,"backStakeTaken":[],"layLiabilityTaken":[]},"ex":{"availableToBack":[{"price":6.4,"size":10.7},{"price":6.2,"size":18.39},{"price":6.0,"size":34.01}],"availableToLay":[{"price":6.8,"size":15.4},{"price":7.0,"size":5.64},{"price":7.2,"size":3.12}],"tradedVolume":[]}},{"selectionId":38511782,"handicap":0.0,"status":"ACTIVE","adjustmentFactor":6.826,"lastPriceTraded":6.4,"totalMatched":1870.89,"sp":{"nearPrice":5.741801588861273,"farPrice":1.1343681834826058,"backStakeTaken":[],"layLiabilityTaken":[]},"ex":{"availableToBack":[{"price":6.4,"size":16.84},{"price":6.2,"size":84.25},{"price":6.0,"size":29.91}],"availableToLay":[{"price":6.6,"size":9.58},{"price":6.8,"size":5.73},{"price":7.0,"size":8.02}],"tradedVolume":[]}},...........
    Kind Regards

    Neil​

    Comment

    • Ipposnif
      Member
      • Mar 2014
      • 36

      #3
      Got it! Thank you very much

      Comment

      Working...
      X