跳至主要内容

查詢資產信息

只能查詢經典帳戶的現貨帳戶資產

HTTP 請求

GET /v5/asset/transfer/query-asset-info

請求參數

參數是否必需類型說明
accountTypetruestring賬戶類型, SPOT
coinfalsestring幣種

響應參數

參數類型說明
spotObject
> statusstring賬戶狀態. ACCOUNT_STATUS_NORMAL: 正常, ACCOUNT_STATUS_UNSPECIFIED: 禁用
> assetsarrayObject
>> coinstring幣種
>> frozenstring掛單凍結金額
>> freestring可用余額
>> withdrawstring提現中金額

請求示例

GET /v5/asset/transfer/query-asset-info?accountType=SPOT&coin=ETH HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672136538042
X-BAPI-RECV-WINDOW: 5000

響應示例

{
"retCode": 0,
"retMsg": "success",
"result": {
"spot": {
"status": "ACCOUNT_STATUS_NORMAL",
"assets": [
{
"coin": "ETH",
"frozen": "0",
"free": "11.53485",
"withdraw": ""
}
]
}
},
"retExtInfo": {},
"time": 1672136539127
}