Clear All
This section documents the clear_all action
Example Request
This example closes all open positions and cancels all resting orders in your account
{
"action": "clear_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"]dexs
This parameter indicates which dexs to use for the action.
e.g targeting the
xyzdex:
"dexs": ["xyz"]e.g targeting both
hyperliquidandxyzdexs:
"dexs": ["hyperliquid","xyz"]slippage_pct
This parameter indicates the Max. % slippage allowed for the trade to execute.
A value of
0.05is equal to5%
"slippage_pct": 0.05delay
This parameter indicates a number of seconds to wait before triggering the action
A value of
5is equal to a5 secondsdelayMax. allowed delay is
10 seconds
"delay": 5Last updated
Was this helpful?