Skip to main content

Get Asset Info

Query Spot asset information

Apply to: classic account

HTTP Request

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

Request Parameters

ParameterRequiredTypeComments
accountTypetruestringAccount type. SPOT
coinfalsestringCoin name, uppercase only

Response Parameters

ParameterTypeComments
spotObject
> statusstringaccount status. ACCOUNT_STATUS_NORMAL: normal, ACCOUNT_STATUS_UNSPECIFIED: banned
> assetsarrayObject
>> coinstringCoin
>> frozenstringFreeze amount
>> freestringFree balance
>> withdrawstringAmount in withdrawing

Request Example

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

Response Example

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