INVALID_ODDS - Best Price Execution

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wmash
    Junior Member
    • Feb 2019
    • 12

    #1

    INVALID_ODDS - Best Price Execution

    Hi,

    When placing an order, I attempt to either place the bet a couple ticks below the current price is it's a back bet or a couple ticks higher if it's a lay bet & I'm hoping that Best Price Execution (which is enabled on my account) will bump my requested price. I do this to try & reduce the number of unmatched responses I get. However, when I try this, I get the "INVALID_ODDS" error. Offer:

    HTML Code:
    {
        "marketId": "1.171457794",
        "instructions": [
            {
                "selectionId": "11019213",
                "orderType": "LIMIT",
                "side": "BACK",
                "limitOrder": {
                    "size": 3.54,
                    "price": 1.76000003,
                    "persistenceType": "PERSIST",
                    "timeInForce": "FILL_OR_KILL"
                }
            }
        ]
    }
    Taken from the API docs, this error means:

    > Odds not on price ladder - either edit or placement

    Is there a way to find out the allowed prices on the exchange? I'm aware the price given is more than 2 d.p. so that could be an issue. There is also another request that I can get this error on & that is when there is no timeInForce but there is a minFillSize & that is set to the price. My main question is, is there a set list of prices that you can use on the exchange (like other exchange APIs). If so, where can I find this list. Or, if not, is there a way of formatting the request so that I do not get this error?
  • LiamP
    Junior Member
    • Oct 2015
    • 284

    #2
    https://docs.developer.betfair.com/d...riceIncrements

    Comment

    • wmash
      Junior Member
      • Feb 2019
      • 12

      #3
      LiamP thank you! I'm amazed I've never come across this before

      Comment

      Working...
      X