Get Token Liquidity
get_token_liquidityCheck a token's primary pair liquidity—price, 24h volume, pair count, chains—and interpret the status field to avoid tokens with no sellable liquidity.
Instructions
Liquidity snapshot for a token's primary trading pair: price, 24h volume, pair count and the chains it trades on. Check 'status' before using the numbers. 'ok' means real data. 'unavailable' means the upstream request failed, which does NOT mean the token has no liquidity. 'not_found' means no trading pair exists for this address at all. 'unpriced' means pairs exist but no source has costed them, so liquidity_usd is null and the depth is unknown -- this is NOT a report of zero liquidity. 'drained' means every pool on the token's own chain reports its depth and every one is empty: there is nothing to sell into.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Token contract address | |
| chain_hint | No | Optional chain name; disambiguates forks that share addresses |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chains | No | ||
| status | Yes | ||
| address | Yes | ||
| price_usd | No | ||
| pairs_total | No | ||
| served_stale | No | Present only when an upstream was unreachable and this answer used cached data. Each entry names the source and how many seconds old it was. | |
| liquidity_usd | No | ||
| volume_24h_usd | No |