Cancel All

This section documents the cancel_all action

This action is used to cancel all resting orders in your account

  • Both Perps and Spot resting orders will be canceled

  • Only whitelisted coins (if any) in your bot settings will be affected.


Example Request

This example cancels all resting orders in your account

{
  "action": "cancel_all",
  "bot_id": BOT_ID,
  "api_key": "API_KEY"
}

coins

This parameter indicates a list of coins to use for the action.

"coins": ["BTC", "ETH", "HYPE", "xyz:XYZ100"]

Omitting this field will apply the action to all coins


order_ids

This optional parameter indicates a list of order ids to use for the action

"order_ids": [1234567, 4954568, 5920483]

dexs

This parameter indicates which dexs to use for the action.

  • e.g targeting the xyz dex:

"dexs": ["xyz"]
  • e.g targeting both hyperliquid and xyz dexs:

"dexs": ["hyperliquid","xyz"]

Omitting this field will apply the action to all available dexs


delay

This parameter indicates a number of seconds to wait before triggering the action

  • A value of 5 is equal to a 5 seconds delay

  • Max. allowed delay is 10 seconds

"delay": 5

Last updated

Was this helpful?