For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cancel Order

Cancel one pending order by its order ID.

Endpoint

DELETE /v1/order?order_id={order_id}&symbol={symbol}

Mainnet: DELETE https://api.orderly.org/v1/order?order_id={order_id}&symbol={symbol}

Testnet: DELETE https://testnet-api.orderly.org/v1/order?order_id={order_id}&symbol={symbol}

Request limit: 10 requests per second. This endpoint cancels one order identified by the order ID and market symbol. An API key with the trading scope is required.

Authentication headers

  • orderly-timestamp — required signed-request timestamp in milliseconds.

  • orderly-account-id — required account ID.

  • orderly-key — required public API key.

  • orderly-signature — required request signature.

Query parameters

  • order_id (number, required) — ID of the order to cancel.

  • symbol (string, required) — market symbol for that order.

Example request

curl --request DELETE \
  --url 'https://api.orderly.org/v1/order?order_id=13&symbol=PERP_ETH_USDC' \
  --header 'orderly-account-id: <account-id>' \
  --header 'orderly-key: <public-api-key>' \
  --header 'orderly-signature: <signature>' \
  --header 'orderly-timestamp: <timestamp-in-ms>'

Successful response

HTTP 200 returns a cancellation status.

Last updated