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

Cancel All Pending Algo Orders

Cancel pending algorithmic orders, optionally filtered by market or algorithm type.

Endpoint

DELETE /v1/algo/orders?symbol={symbol}

Mainnet: DELETE https://api.orderly.org/v1/algo/orders?symbol={symbol}

Testnet: DELETE https://testnet-api.orderly.org/v1/algo/orders?symbol={symbol}

Rate limit: 5 requests per second. Cancels pending algorithmic orders. Both filters are optional; leave them out to apply the request to all pending algo orders.

Authentication headers

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

  • orderly-account-id — PangoPerps account ID.

  • orderly-key — public API key.

  • orderly-signature — request signature.

Query parameters

Parameter
Type
Required
Description

symbol

string

No

Restrict the cancellation to one market.

algo_type

string

No

Restrict the cancellation to an algorithm type. When set to STOP, both TAKE_PROFIT and STOP_LOSS orders are cancelled.

Example request

curl --request DELETE \
  --url 'https://api.orderly.org/v1/algo/orders?symbol=PERP_ETH_USDC&algo_type=STOP' \
  --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 CANCEL_ALL_SENT when the cancellation request is sent.

Last updated