Get Token List with Price
1. Overview & Typical Use
Returns the list of all tokens that have price information.
- Typical use: get a list of tradeable tokens, build a price index.
- When not to use: for a single token’s price details use “Get Token Price Information”.
2. Endpoint & Authentication
GET /api/getAssetWithPriceList
For Base URL and authentication, see Common Network & Authentication.
3. Request
Fields
No parameters required.
4. Response
Fields
Top-level
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
data | array | Required | Token list | — |
number | integer | Required | Total number of tokens | — |
data[] elements
| Field | Type | Required | Description | Unit/Precision |
|---|---|---|---|---|
id | string | Required | Token ID (_ for TRX, contract address for TRC20) | — |
name | string | Required | Token name | — |
abbr | string | Required | Token abbreviation | — |
type | string | Required | Token type: trc10 or trc20 | — |
priceInUsd | number | Required | Price in USD | USD |
logo | string | Required | Token logo URL | — |
vip | boolean | Required | Whether a VIP token | — |
5. Errors
For HTTP status codes, see Common Errors.
- Empty result is not an error: no data returns
200+data: [].
Last updated on: