Orderbook

private/cancel_all

Changed on

Cancels every open order on the given subaccount. Optional cancel_trigger_orders and cancel_algo_orders flags additionally clear the subaccount's trigger and algo orders in the same call. Requires any trade scope; returns "ok" on success.

post/private/cancel_all

Request

  • Base URL
    https://api.derive.xyz/v3
  • Auth
    API key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature

Request body

CancelAllRequest required
cancel_algo_orders, boolean nullable
cancel_trigger_orders, boolean nullable
subaccount_id, integer required

Response

Success

'ok' required

The literal string "ok" returned on success.

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status