Can I lay at the current odds without retrieving the odds?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pete101
    Junior Member
    • Sep 2019
    • 22

    #1

    Can I lay at the current odds without retrieving the odds?

    Hi Guys,

    I am currently experimenting with lay bets, but have hit a snag.

    If I include "size" : "5", "price" : "3" then my script will accept a £5 bet at odds of 3.0

    But, I would like to accept a £5 at whatever the current odds are at the time.

    However, if I omit the "price" field the API returns an error message, as though II need to actually state the odds for it to accept the bet.

    If there a "price" = "current odds" option available for lay bets?

    Many thanks,

    Pete
  • LetsGo
    Senior Member
    • Oct 2018
    • 112

    #2
    If you want to back at the current price set your price to 1.01
    The opposite for the lay, set to a big price, 100.

    Comment

    • jabe
      Senior Member
      • Dec 2014
      • 705

      #3
      Worth pointing out that in the case of LetsGo's solution, you'll get matched at the best available prices, so if there isn't enough waiting at the best current price, some of your stake will be matched at higher prices until it's all used up (or lower prices if backing).

      Comment

      • Pete101
        Junior Member
        • Sep 2019
        • 22

        #4
        Perfect guys.

        Thank you both very much - your help is greatly appreciated.

        Best wishes.

        Pete

        Comment

        Working...
        X