查询账户余额(USER_DATA)
接口描述
查询账户余额
HTTP请求
GET /papi/v1/balance
请求权重
20
请求参数
名称 | 类型 | 是否必需 | 描述 |
---|---|---|---|
asset | STRING | NO | |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
响应示例
[
{
"asset": "USDT", // 资产
"totalWalletBalance": "122607.35137903", // 钱包余额 = 全仓杠杆未锁定 + 全仓杠杆锁定 + u本位合约钱包余额 + 币本位合约钱包余额
"crossMarginAsset": "92.27530794", // 全仓资产 = 全仓杠杆未锁定 + 全仓杠杆锁定
"crossMarginBorrowed": "10.00000000", // 全仓杠杆借贷
"crossMarginFree": "100.00000000", // 全仓杠杆未锁定
"crossMarginInterest": "0.72469206", // 全仓杠杆利息
"crossMarginLocked": "3.00000000", //全仓杠杆锁定
"umWalletBalance": "0.00000000", // u本位合约钱包余额
"umUnrealizedPNL": "23.72469206", // u本位未实现盈亏
"cmWalletBalance": "23.72469206", // 币本位合约钱包余额
"cmUnrealizedPNL": "", // 币本位未实现盈亏
"updateTime": 1617939110373,
"negativeBalance": "0"
}
]
**或 (发送asset)**
{
"asset": "USDT",
"totalWalletBalance": "122607.35137903",
"crossMarginBorrowed": "10.00000000",
"crossMarginFree": "100.00000000",
"crossMarginInterest": "0.72469206",
"crossMarginLocked": "3.00000000",
"umWalletBalance": "0.00000000",
"umUnrealizedPNL": "23.72469206",
"cmWalletBalance": "23.72469206",
"cmUnrealizedPNL": "",
"updateTime": 1617939110373,
"negativeBalance": "0"
}