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
| Name | Type | Description |
|---|---|---|
| totalAssets | string | Total assets (USDT valuation) |
| totalAssetsBtc | string | Total assets (BTC valuation) |
| lastInterestAmount | string | Latest interest |
| totalInterestAmount | string | Total earnings |
| demandAssets | string | Demand assets |
| loanAssets | string | Loan assets (negative value represents debt) |
| positions | array | Position list |