Query Sub Account Margin Asset info
HTTP Request
GET /sapi/v1/broker/subAccount/marginSummary
Request Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
subAccountId | STRING | NO | |
page | LONG | NO | default 1 |
size | LONG | NO | default 10, max 20 |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
- If subaccountId is not sent, the size must be sent
Example Response
{
data:[
{
"marginEnable": true, //if enable margin
"subAccountId": "367537027503425913",
"totalAssetOfBtc": "0.03558520", // margin asset
"totalLiabilityOfBtc": "0.34585210", //liability
"totalNetAssetOfBtc" :"0.23334213", // net asset
"marginLevel": "0.009" // margin level
},
{
"marginEnable": false,
"subAccountId": "367537027503435242"
}
],
"timestamp": 1583127900000
}