Modify TP/SL
This section documents the modify_tpsl action
Example Request
This example modifies the current open BTC
position using a new stop-loss of 0%
, and a new take-profit of 5%
.
coin*
This required parameter indicates which coin to use for the action.
sl_pct
This parameter specifies the % from entry to modify your stop-loss.
A value of
0.01
is equal to a1% stop-loss
tp_pct
This parameter specifies the % from entry to modify your take-profit.
A value of
0.01
is equal to a1% take-profit
sl
This parameter specifies a direct price to modify your stop-loss.
tp
This parameter specifies a direct price to modify your take-profit.
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
Last updated
Was this helpful?