Skip to main content

Update Leverage

Set leverage for a futures symbol.

HTTP

MethodPOST
Endpoint/trade/api/v2/futures/leverage
Rate limit10 requests per 60 seconds

Request Parameters

ParameterTypeMandatoryDescription
symbolstringYesSymbol, e.g. BTCUSDT.
exchangestringYesEXCHANGE_2.
leverageintegerYesInteger between min_leverage and max_leverage for the symbol (read these from Get Instrument Info).
Leverage change restrictions

You cannot change leverage on a symbol while you have:

  • An open position on that symbol, or
  • Any open orders on that symbol.

Cancel open orders and close the position first. See Margin & Leverage.

Example

import requests

body = {"symbol": "btcusdt", "exchange": "EXCHANGE_2", "leverage": 13}
headers, path = sign_request("POST", "/trade/api/v2/futures/leverage")
response = requests.post(BASE_URL + path, headers=headers, json=body)
print(response.json())

Response

{
"data": {
"exchange": "EXCHANGE_2",
"symbol": "BTCUSDT",
"leverage": "13"
}
}