Cancel TP/SL
This section documents the cancel_tpsl action
Some orders types are protected and won't be canceled by this action:
TP/SL attached to resting limit orders
Reduce-only limit orders
Example Request
This example cancels all TP and SL orders for a BTC
position.
{
"action": "cancel_tpsl",
"coin": "BTC",
"type": "tpsl",
"bot_id": BOT_ID,
"api_key": "API_KEY"
}
coin*
This required parameter indicates which coin to use for the action.
"coin": "BTC"
Type
This parameter indicates which type of TPSL orders to cancel for your position.
A value of
tpsl
cancels all take-profit and stop-loss ordersA value of
tp
cancels all take-profit ordersA value of
sl
cancels all stop-loss orders
"type": "tpsl"
delay
This parameter specifies 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?