Skip to main content

Get User Assets

Type: GET

Description: /v4/finance/balance

Get user's financial assets overview, including total assets, demand assets, loan assets, etc.

Request Parameters

None (user information obtained through 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",
"totalInterestAmount": "123.45",
"demandAssets": "5000.00",
"loanAssets": "-1000.00",
"positions": []
}
}

Response Parameters

NameTypeDescription
totalAssetsstringTotal assets (USDT valuation)
totalAssetsBtcstringTotal assets (BTC valuation)
lastInterestAmountstringLatest interest
totalInterestAmountstringTotal earnings
demandAssetsstringDemand assets
loanAssetsstringLoan assets (negative value represents debt)
positionsarrayPosition list