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 required parameter indicates the leverage value.
A value of
5is equal to a5xleverage
"leverage": 5is_cross*
This required parameter indicates the leverage margin-mode.
truesets the margin-mode toCrossfalsesets the margin-mode toIsolated
"is_cross": truedelay
This parameter specifies 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?