Orderbook

private/cancel_by_instrument

Changed on

Cancels every open order for a subaccount on a single instrument. Requires any trade scope; returns the number of orders cancelled.

post/private/cancel_by_instrument

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

CancelByInstrumentRequest required
instrument_name, string required
subaccount_id, integer required

Response

Success

CancelByInstrumentResponse required
cancelled_orders, integer required

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