Set Leverage
This section documents the set_leverage action.
Example Request
This example sets the leverage on BTC
to 5x
using the Cross
margin-mode.
{
"action": "set_leverage",
"coin": "BTC",
"leverage": 5,
"is_cross": true,
"bot_id": BOT_ID,
"api_key": "API_KEY"
}
coin*
This required parameter indicates which coin to use for the action.
"coin": "BTC"
leverage*
This parameter specifies the leverage value.
A value of
5
is equal to a5x
leverage
"leverage": 5
is_cross*
This parameter specifies the leverage margin-mode.
True
sets the margin-mode toCross
False sets the margin-mode to
Isolated
"is_cross": true
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?