Submits a cancel request for all open orders of an account.Optionally the user can specify one of an instrument_code
, a list of ids
representing order_id or a list of client_ids
as query parameters. The instrument_code
parameter will only cancel orders for the given instrument, while the ids
and client_ids
parameter can be used to specify various orders regardless to which markets they belong. Calling this endpoint without any of the optional parameters will cancel all orders across all markets for the account. Calling this endpoint with more than one of the specified query parameters is not supported.One Trading will always fill orders with best effort. Therefore, when attempting to close all orders, these orders may be in the process of being filled. In this case, One Trading will attempt to close the orders but the order may already be partially/fully filled.
Make sure to have a valid API key with the scope TRADE, otherwise this operation will be rejected.