跳到主要内容

理财资产查询

类型: 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",
"lastInterestAmountBtc": "0.00028",
"totalInterestAmount": "123.45",
"totalInterestAmountBtc": "0.0028"
}
}

响应字段

字段类型描述
totalAssetsstring总资产(USDT估值)
totalAssetsBtcstring总资产(BTC估值)
lastInterestAmountstring昨日收益
lastInterestAmountBtcstring昨日收益(BTC)
totalInterestAmountstring累计收益
totalInterestAmountBtcstring累计收益(BTC)