Simple Question about CancelOrders Command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Simple Question about CancelOrders Command

    I am testing my APING CancelOrders Command.

    If I cancel one specific betId, or I cancel all bets on a specific MarketId then the response packet I get contains the expected list of BetIds that were cancelled. All good so far.

    However, if I cancel all orders, then the response packet always returns just an empty list, so I cant see what betIds were cancelled.
    I cant spot an obvious fault with my code, but it would seem odd and inconsistent behaviour from the Server side to not return that list.

    Can anyone confirm if cancel all orders does in fact return an empty InstructionReports list ?

    Thanks Geoff
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Looks like it. This is the string returned on my program's test page:

    {"jsonrpc":"2.0","result":{"status":"SUCCESS","ins tructionReports":[]},"id":1}

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Hi Jabe

      Thanks for checking this for me.

      Hey Neil, if you are reading this thread, is this the expected behaviour, as it seemed a bit inconsistent ? If it is, the API manual could do with a note adding that clear all orders will return an empty list.

      Regards Geoff

      Comment

      • LiamP
        Junior Member
        • Oct 2015
        • 284

        #4
        Yeh I have always received an empty response I assume it's a limitation in the API / http, if you had 1000+ orders active and you try and cancel them all the response would be huge or would involve pageation on the results (streaming does this probably for this reason)

        Comment

        Working...
        X