Skip to main content

Set Leverage

Description​

Set leverage

HTTP Request​

  • POST /api/v3/position/set-leverage
  • Supported Products: linear
  • Rate Limit: 10 requests per second per UID

Request Parameters​

FieldTypeRequiredDescription
categorystringYesProduct type: linear
symbolstringYesTrading pair
buyLeveragestringYesLong leverage multiplier
sellLeveragestringYesShort leverage multiplier (same as the position direction and buyLeverage)

Response Parameters​

No business fields. Returns code: 200 in the standard format upon success, as shown below.

Request Example​

POST /api/v3/position/set-leverage HTTP/1.1
Host: openapi.lbank.com
Content-Type: application/json
ex-api-key: <your_api_key>
ex-timestamp: <current_unix_timestamp_ns>
ex-nonce: <unique_random_hex>
ex-signature: <your_signature>
ex-client-type: API

{
"category": "linear",
"symbol": "BTCUSDT",
"buyLeverage": "10",
"sellLeverage": "10"
}

Response Example​

HTTP/1.1 200 OK
Content-Type: application/json

{
"code": 200,
"message": "Success",
"data": {},
"extras": null
}