placeOrders api sometimes does not return any response.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VanitSharma
    Junior Member
    • Mar 2021
    • 1

    #1

    placeOrders api sometimes does not return any response.

    betfair placeOrders api sometimes not returning any response. It simply returns null. Following is the request


    [{ "jsonrpc": "2.0", "method": "SportsAPING/v1.0/placeOrders", "params" :{"marketId":"1.181117030",
    "instructions":
    [{"selectionId":"414464",
    "handicap":"0","side":"BACK","orderType":"LIMI T"," limitOrder":{"size":"9.79","price":"1.92","persist enceType":"LAPSE"},"customerOrderRef":"1616924098_ 8"}], "customerRef":"1616924098_8"},"id":1}]

    Can can one please help me on this.
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Hiya

    I had a quick look at that JSON string against the latest Betfair API spec, it looks a correct JSON string to me, so cant offer any suggestions as to why it is sometimes not working. Its odd in that it sometimes works, sound like the problem maybe elsewhere in your comms handling code, or a glitch on the Betfair Server. I havent noticed the same problem though so unlikely to be Betfair.

    You do have an erroneous space character in the word "LIMIT", but I am guessing that is just a typo you put in when copying to this forum post.

    Regards Geoff

    Comment

    • jabe
      Senior Member
      • Dec 2014
      • 705

      #3
      Originally posted by geoffw123 View Post
      Hiya

      You do have an erroneous space character in the word "LIMIT", but I am guessing that is just a typo you put in when copying to this forum post.

      Regards Geoff
      This is a side-effect that happens on some message boards. I don't know why. I've seen it elsewhere, particulary when URLs are pasted, and it has happened with URLs that I've posted.

      The OP's JSON request looks okay to me too, and I also don't know why such requests might sometimes not be processed.

      Comment

      Working...
      X