Skip to main content

Query Earn Balance

Type: GET

Description: /v4/finance/balance

Query user's total earn assets and position overview.

Parameters

None (user info obtained from request header authentication)

Request Example

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 Example

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"
}
}

Response Fields

FieldTypeDescription
totalAssetsstringTotal assets (USDT valuation)
totalAssetsBtcstringTotal assets (BTC valuation)
lastInterestAmountstringYesterday's earnings
lastInterestAmountBtcstringYesterday's earnings (BTC)
totalInterestAmountstringTotal accumulated earnings
totalInterestAmountBtcstringTotal accumulated earnings (BTC)