Appearance
Change Leverage
Rate Limit: 10 req/sec/uid
Description
Adjust the leverage on the given symbol
HTTP Request
- POST /api/v1/futures/account/change_leverage
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
marginCoin | string | true | Margin coin |
symbol | string | true | Trading pair |
leverage | int | true | Leverage |
Request Example
bash
curl -X 'POST' --location 'https://fapi.bitunix.com/api/v1/futures/account/change_leverage' \
-H "api-key:*******" \
-H "sign:*" \
-H "time:1659076670000" \
-H "language:en-US" \
-H "Content-Type: application/json" \
--data '{"symbol":"BTCUSDT","leverage":12,"marginCoin":"USDT"}'
Response Parameters
Parameter | Type | Description |
---|---|---|
marginCoin | string | Margin coin |
symbol | string | Trading pair |
leverage | int | Leverage |
Response Example
json
{"code":0,"data":[{"marginCoin":"USDT","leverage":12,"symbol":"BTCUSDT"}],"msg":"Success"}