Skip to main content

Get a single currency asset

Description

GET /v4/balance


Parameters

NameTypeMandatoryDefaultDescriptionRanges
currencystringYesN/AExample: usdt-

Request Example

Request
  curl --location --request GET 'https://sapi.xt.com/v4/balance?currency=XT' \
--header 'accept: */*' \
--header 'Content-Type: application/json' \
--header 'validate-algorithms: HmacSHA256' \
--header 'validate-recvwindow: 60000' \
--header 'validate-appkey: xxxxxxxxxx' \
--header 'validate-timestamp: xxxxxxxxxx' \
--header 'validate-signature: xxxxxxxxxx' \

Response Example

{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"currency": "usdt", // currency
"currencyId": 0, // currency ID
"frozenAmount": 0, // frozen amount
"availableAmount": 0, // available amount
"totalAmount": 0, // total amount
"convertBtcAmount": 0 // equivalent BTC amount
}
}