跳到主要内容

获取用户资产

类型: GET

描述: /v4/finance/balance

获取用户理财资产概览,包括总资产、活期资产、借贷资产等。

请求参数

无(通过请求头鉴权获取用户信息)

请求示例

Request
curl -G "https://sapi.xt.com/v4/finance/balance" \
-H "validate-appkey: $APPKEY" \
-H "validate-timestamp: $TIMESTAMP" \
-H "validate-signature: $SIGNATURE" \
-H "Content-Type: application/json"

响应示例

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"totalAssets": "10500.00",
"totalAssetsBtc": "0.24",
"lastInterestAmount": "12.34",
"totalInterestAmount": "123.45",
"demandAssets": "5000.00",
"loanAssets": "-1000.00",
"positions": []
}
}

响应参数

名称类型描述
totalAssetsstring总资产(USDT估值)
totalAssetsBtcstring总资产(BTC估值)
lastInterestAmountstring最新派息
totalInterestAmountstring累计收益
demandAssetsstring活期资产
loanAssetsstring借贷资产(负值代表负债)
positionsarray持仓列表