API prices not matching web

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dark_Target
    Junior Member
    • May 2010
    • 3

    #1

    API prices not matching web

    Using the visualizer, the prices dont seem to match the web?

    Greyhound racing - 19:31 Kinsley for instance, the best available lay is 32 ($7), and the only other available lay price is 60 ($9). The visualizer returns 24 ($7), 28 ($7), why is this? Its not delay because if i put in a $5 bet at the front of the queue it shows up instantly, correctly?
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    The web shows virtual prices, so make sure you tick the Virtual option in the visualiser.

    Comment

    • Dark_Target
      Junior Member
      • May 2010
      • 3

      #3
      Thanks.

      Why would a price of $24 with $7 available not show up on the web though?

      Comment

      • BetfairDeveloperProgram
        Administrator
        • Oct 2008
        • 679

        #4
        Hi Dark_Target

        Are you viewing the website logged in or logged out?

        When the website logged out, all available odds are rolled up to a minimum stake of £10. Therefore, any odds available for stake lower than £10 won't be displayed. Instead, the stake will be added to the next available price for display purposes.

        In API-NG you can mimic this behaviour using the exBestOffersOverrides, "rollupModel":"STAKE","rollupLimit":"10"

        Code:
        [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": {"marketIds":["1.115653689"],"priceProjection":{"priceData":["EX_BEST_OFFERS"],"exBestOffersOverrides":{"rollupModel":"STAKE","rollupLimit":"10"}}}, "id": 1}]
        Thanks

        Neil

        Comment

        • Dark_Target
          Junior Member
          • May 2010
          • 3

          #5
          Thanks Niel - I was logged in, i could see my brand new $5 bet through the API immediately and on the website as expected, however when i removed it, the odds at the front of the queue on the web didn't match up with the API...

          Comment

          • BetfairDeveloperProgram
            Administrator
            • Oct 2008
            • 679

            #6
            Hi Dark_Target,

            You should be aware that the 'Bet view' slider (see attached) on the Betfair website is the equivalent of the STAKE Rollup feature on API-NG.

            When logged in this is set to £2 by default (not £10) therefore, to replicate the website you must take this into account. Virtual bets should also be considered when comparing the Betfair website view to the API-NG output

            Kind Regards

            Neil

            Comment

            Working...
            X