cancelling pending quantities

OJ4012
hi guys, when quantities are partially filled, how do we cancel pending quantities which might also be getting filled quickly or just not getting filled at all? here i just wish dealing with the filled quantities. if modifying quantites to only filled quantites it might generate error in meantime of microseconds that larger quantity is already filled can't modify to smaller one.. is there a single instruction to achieve getting rid of pending quantites in one go? Thanks in advance.
  • sujith
    sujith edited July 2023
    You can just send cancel request with order id. By then if there is a partial fill then you can either keep the position open or exit it. But order will be cancelled.
  • OJ4012
    great! thanks.
This discussion has been closed.