Accounts
Accounts
Get Cash and Position Detail
URL
https://big.one/api/contract/v2/accounts
HTTP Request Method
GET
Request Parameters
No parameter needed.
Request Example URL
https://big.one/api/contract/v2/accounts
Response Example
[
{
"cash": {
"readableId": 1000000,
"positionValue": 0.004628,
"unrealizedPnl": 0.000013864628645684,
"positionMargin": 0.000939921597676495,
"balances": 1002.2989371904613,
"userId": "5c219261-1d2f-484c-0004-bc929117ec73",
"margin": 0.000926056969030811,
"available": 1002.2980111334923,
"orderMargin": 0,
"marginRate": 9.37765720185e-7,
"marginBalances": 1002.2989510550899,
"leverage": 0.000005,
"id": "5c26b683-7182-46cb-0004-0dfb00c0cac3",
"currency": "BTC"
},
"positions": [
{
"feeRateMaker": 0.0002,
"notional": -0.004614135371354316,
"markPrice": 6482.33287802,
"liquidatePrice": 8087.5,
"realisedPnl": 0.039842718483038435,
"unrealizedPnl": 0.000013864628645684,
"riskLimit": 198,
"buyingNotional": 0,
"sellingNotional": 0,
"value": -0.004628,
"symbol": "BTCUSD",
"seqNo": null,
"risk": 0.024619,
"totalPnl": 0.039151131904984315,
"userId": "5c219261-1d2f-484c-0004-bc929117ec73",
"margin": 0.000926056969030811,
"orderMargin": 0,
"equity": 0.000939921597676495,
"feeRateTaker": 0.0006,
"marginRate": 0.2,
"sellingSize": 0,
"size": -30,
"rom": 0.015,
"buyingSize": 0,
"leverage": 5,
"isCross": false,
"id": "5c26b69f-95c8-4b51-0004-71ce886084be",
"entryPrice": 6501.76,
"currency": "BTC"
}
]
},
{
"cash": {
"marginRate": 0.00003381315876174827,
"unrealizedPnl": -0.1109,
"currency": "USDT",
"readableId": 1000002,
"positionMargin": 0.06924077,
"balances": 2047.85717794697,
"id": "5c2a78c6-b2ec-4849-0004-a89eca678a37",
"leverage": 0.0031601082954904928,
"positionValue": 6.4711,
"userId": "5c219261-1d2f-484c-0004-bc929117ec73",
"margin": 0.18014077,
"orderMargin": 0,
"marginBalances": 2047.74627794697,
"available": 2047.67703717697
},
"positions": [
{
"riskLimit": 50000,
"currency": "USDT",
"feeRateMaker": 0.0002,
"value": 0,
"markPrice": 132.71938418,
"size": 0,
"liquidatePrice": 0,
"risk": 0,
"notional": 0,
"totalPnl": -0.0778152,
"leverage": 20,
"buyingNotional": 0,
"isCross": true,
"entryPrice": 0,
"sellingNotional": 0,
"seqNo": null,
"userId": "5c219261-1d2f-484c-0004-bc929117ec73",
"unrealizedPnl": 0,
"orderMargin": 0,
"feeRateTaker": 0.0006,
"symbol": "ETHUSDT",
"sellingSize": 0,
"realisedPnl": 0,
"equity": 0,
"buyingSize": 0,
"id": "5c2a78eb-2d8f-49d6-0004-8bf3d7742f76",
"marginRate": 0.05,
"margin": 0,
"rom": 0
},
...
]
}
]