Skip to main content

Get Asset List

Query user's on-chain token portfolio including holdings, market value, and PnL.

info
  • Only returns tokens with non-zero balance; zero-balance tokens are filtered out
  • Assets are sorted by USD value descending
  • Use tradeFlag to determine if a token can be sold via Execute Redeem
  • Use tokenCode from the response for quote and execution requests
  • Use chainCode + tokenAddress to call Get Token Details for more info

HTTP Request

POST/v5/alpha/trade/asset-list

Request Parameters

None

Response Parameters

ParameterTypeComments
totalAssetUsdstringTotal portfolio value in USD
assetListarrayToken holdings list
> chainCodestringBlockchain code, e.g. ETH, SOL, BSC
> chainIconUrlstringChain icon URL
> tokenAddressstringToken contract address
> tokenCodestringToken code in DEX_<id> format. Use this in quote and execution requests
> tokenSymbolstringToken symbol
> tokenDecimalsintegerToken decimal precision
> tokenIconUrlDaystringToken icon URL (light mode)
> tokenIconUrlNightstringToken icon URL (dark mode)
> tokenAmountstringHolding quantity
> tokenAmountUsdstringHolding value in USD
> tradeFlagintegerWhether tradable. 0: Not tradable, 1: Tradable
> pnlstringUnrealized profit/loss in USD. Positive = profit. Null if no cost basis available
> pnlRatiostringPnL ratio as decimal, e.g. 0.15 = +15%. Null if no cost basis available
> costPricestringAverage cost price. Null if no cost basis available
> lastPricestringCurrent market price
> costTotalValuestringTotal cost basis in USD. Null if no cost basis available
> assetStatusintegerToken lifecycle status. 0: Running, 1: Delisting soon, 2: Delisted
> announcementUrlstringDelisting announcement URL. Present when assetStatus is 1 or 2
> estimatedOfflineTimeintegerEstimated delisting timestamp (ms). Present when assetStatus=1
> delistingTimeintegerActual delisting timestamp (ms). Present when assetStatus=2

Request Example

POST /v5/alpha/trade/asset-list HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1704067200000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{}

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"totalAssetUsd": "1250.50",
"assetList": [
{
"chainCode": "SOL",
"chainIconUrl": "https://example.com/sol.png",
"tokenAddress": "0xabc...",
"tokenCode": "DEX_123",
"tokenSymbol": "PEPE",
"tokenDecimals": 18,
"tokenIconUrlDay": "https://example.com/pepe-day.png",
"tokenIconUrlNight": "https://example.com/pepe-night.png",
"tokenAmount": "50000000",
"tokenAmountUsd": "500.00",
"tradeFlag": 1,
"pnl": "75.00",
"pnlRatio": "0.15",
"costPrice": "0.0000085",
"lastPrice": "0.00001",
"costTotalValue": "425.00",
"assetStatus": 0
}
]
},
"retExtInfo": {},
"time": 1704067200000
}