cancel order request cancelling all bets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • epicjono
    Junior Member
    • Feb 2020
    • 15

    #1

    cancel order request cancelling all bets

    Hi everyone,

    Whenever I send the following request it cancels all my unmatched orders not just the one specified in the betId parameter field.

    '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/cancelOrders", "params":{" instructions":[{"betId":"'210170673270'"}]}, "id": 1}'

    Am i missing some additional parameter to ensure it only cancels the unmatched amount for a given betId?

    Any help is greatly appreciated
  • LiamP
    Junior Member
    • Oct 2015
    • 284

    #2
    White space in front of instructions? Default is to cancel all when no instructions as per docs.

    Comment

    • jabe
      Senior Member
      • Dec 2014
      • 705

      #3
      This is part of the description concerning the optional marketId parameter:

      "If marketId and betId aren't supplied all bets are cancelled."

      Comment

      • epicjono
        Junior Member
        • Feb 2020
        • 15

        #4
        Cheers for your help guys

        Comment

        Working...
        X