Positions
Positions
Adjust Leverage
URL
https://big.one/api/contract/v2/positions/{symbol}/margin
HTTP Request Method
PUT
Request Parameters
Parameters | Required | Type | Note |
---|---|---|---|
symbol | :white_check_mark: | string | Contract types, includes BTCUSD , BTCUSDT , ETHUSDT , EOSUSDT |
margin | number | ||
leverage | number | Leverage, valid when isCross to be true | |
isCross | boolean | true(cross margin) or false |
Request Example URL
https://big.one/api/contract/v2/positions/BTCUSD/margin
Request Body Example
{
"margin": 0,
"leverage": 0,
"isCross": true
}
Response Example
{
"feeRateMaker": -0.0002,
"id": "5aec8f3f-9846-41af-0005-1b306eeb533a",
"value": 0,
"marginRate": 0.01,
"size": 0,
"liquidatePrice": 0,
"markPrice": 11303.14,
"risk": 0,
"notional": 0,
"userId": "5aec525e-335d-4724-0005-20153b361f89",
"buyingNotional": 0,
"isCross": true,
"entryPrice": 0,
"symbol": "BTCUSD",
"seqNo": null,
"sellingNotional": -0.116909,
"riskLimit": 100,
"totalPnl": 0,
"feeRateTaker": 0.0007,
"sellingSize": -1400,
"unrealizedPnl": 0,
"realisedPnl": 0,
"equity": 0,
"buyingSize": 0,
"orderMargin": 0.0013327626,
"leverage": 100,
"margin": 0,
"rom": 0
}
Set Risk Limit
URL
https://big.one/api/contract/v2/positions/{symbol}/risk-limit
HTTP Request Method
PUT
Request Parameters
Parameters | Required | Type | Note |
---|---|---|---|
symbol | :white_check_mark: | string | Contract types, includes BTCUSD , BTCUSDT , ETHUSDT , EOSUSDT |
notional | :white_check_mark: | number |
Request Example URL
https://big.one/api/contract/v2/positions/BTCUSD/risk-limit
Request Body Example
{
"notional": 200
}
Response Example
{
"notional": 200,
"IMR": 0.015 // initial margin rate
}