Skip to main content

Set Risk Limit

The risk limit will limit the maximum position value you can hold under different margin requirements. If you want to hold a bigger position size, you need more margin. This interface can set the risk limit of a single position. If the order exceeds the current risk limit when placing an order, it will be rejected. Click here to learn more about risk limit.

tip

Set the risk limit of the position. You could get risk limit information of each symbol here.

HTTP Request

POST /unified/v3/private/position/set-risk-limit

Request Parameters

ParameterRequiredTypeComments
categorytruestringProduct type. linear only
symboltruestringSymbol name
riskIdtrueintegerRisk id
positionIdxfalseintegerPosition index. 0: one-way mode

Response Parameters

None

Request Example

POST /unified/v3/private/position/set-risk-limit HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672016123862
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"category": "linear",
"symbol": "BTCUSDT",
"riskId": 2,
"positionIdx": 0
}

Response Example

{
"retCode": 0,
"retMsg": "",
"result": {},
"retExtInfo": {},
"time": 1672016125676
}