跳到主要内容

获取币种资产列表

描述

GET /v4/balances


限流规则

  • 10次/秒/apikey

请求参数

参数名类型是否必填默认值描述取值范围
currenciesstringN/A币种列表,逗号分隔,例如:usdt,btc

请求示例

Request
  curl --location --request GET 'https://sapi.xt.com/v4/balances' \
--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' \

返回示例

{
"rc": 0,
"mc": "string",
"ma": [{}],
"result": {
"totalBtcAmount": 0,
"assets": [
{
"currency": "string", // 币种
"currencyId": 0, // 币种ID
"frozenAmount": 0, // 冻结数量
"availableAmount": 0, // 可用数量
"totalAmount": 0, // 总数量
"convertBtcAmount": 0 // 折算BTC数量
}
]
}
}