Sell All
This section documents the sel_all action
Example Request
This example closes all open positions.
{
"action": "sell_all",
"bot_id": BOT_ID,
"api_key": "API_KEY"
}
coins
This parameter indicates a list of coins to use for the action.
"coins": ["UBTC/USDC", "HYPE/USDC"]
size_pct
This parameter indicates the position's size percentage to close.
A value of
0.5
is equal to50%
of every position sizeMax. allowed value is
1
(100% of position size)
"size_pct": 0.5
slippage_pct
This parameter indicates the Max. % slippage allowed for the trade to execute.
A value of
0.05
is equal to5%
"slippage_pct": 0.05
delay
This parameter indicates a number of seconds to wait before triggering the action.
A value of
5
is equal to a5 seconds
delayMax. allowed delay is
10 seconds
"delay": 5
Last updated
Was this helpful?