LIMIT_ON_CLOSE not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bf123
    Junior Member
    • Apr 2017
    • 2

    #1

    LIMIT_ON_CLOSE not working?

    I have tried placing LIMIT_ON_CLOSE bets on horses and greyhounds and they come back with the same response.

    I am playing around with LIMIT_ON_CLOSE because I thought that would let me place bets which would only be matched at that price instead of been matched at a price near to it.

    Request:
    Code:
    {
    	"marketId": "1.131162865",
    	"instructions": [{
    			"orderType": "LIMIT_ON_CLOSE",
    			"selectionId": 10570272,
    			"side": "BACK",
    			"limitOnCloseOrder": {
    				"size": 2.0,
    				"liability": 10.0
    			}
    		}
    	],
    	"customerRef": null,
    	"locale": null
    }
    Response:
    Code:
    {
    	"faultcode": "Client",
    	"faultstring": "DSC-0018",
    	"detail": {}
    }
    Thanks
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    A limit on close order has parameters called "price" and "liability", not "size" and "liability".

    Try changing your "size" to "price".

    For a back bet, the price is the minimum odds at which you should be matched.

    For a lay bet, the price is the maximum odds at which you should be matched.

    Comment

    • bf123
      Junior Member
      • Apr 2017
      • 2

      #3
      Thanks for that, I had looked at the api documentation but did not notice the parameters were different until looking at it again after your comment

      I was using the BetFair sample code for C#. I have looked it again and it seems to still have the wrong parameters.

      https://github.com/betfair/API-NG-sa...nCloseOrder.cs

      Comment

      Working...
      X