跳至主要内容

查詢錢包余額

HTTP 請求

GET /spot/v3/private/account

請求參數

返回參數

參數類型說明
balancesarrayObject
> coinstring幣種
> coinIdstring幣種ID
> totalstring總額
> freestring可用余額
> lockedstring凍結余額

請求示例

curl --location --request GET 'https://api-testnet.bybit.com/spot/v3/private/account' \
--header 'X-BAPI-SIGN: XXXXX' \
--header 'X-BAPI-API-KEY: {api key}' \
--header 'X-BAPI-TIMESTAMP: 1659346886605' \
--header 'X-BAPI-RECV-WINDOW: 5000'

響應示例

{
"retCode": 0,
"retMsg": "OK",
"result": {
"balances": [
{
"coin": "BTC",
"coinId": "BTC",
"total": "0.20378018343",
"free": "0.20378018343",
"locked": "0"
},
{
"coin": "BTC3L",
"coinId": "BTC3L",
"total": "743.03560386",
"free": "743.03560386",
"locked": "0"
},
{
"coin": "BTC3S",
"coinId": "BTC3S",
"total": "0.999",
"free": "0.999",
"locked": "0"
}
]
},
"retExtMap": {},
"retExtInfo": {},
"time": 1659346887407
}