List on-chain DEX token liquidity
curl --request GET \
--url https://api.darvas.app/v1/defi/dex-tokens \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/dex-tokens"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/dex-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dex_tokens": [
{
"chain": "solana",
"dex": "raydium",
"pair_address": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"base_symbol": "SOL",
"base_address": "So11111111111111111111111111111111111111112",
"quote_symbol": "USDC",
"price_usd": 242.15,
"liquidity_usd": 45200000,
"volume_24h_usd": 185000000,
"price_change_24h_pct": 3.12,
"fdv_usd": 141000000000,
"market_cap_usd": 115000000000
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}DeFi
On-Chain DEX Tokens, Liquidity & Volume API
Query on-chain DEX token prices, liquidity depth, 24h swap volumes and pair statistics across decentralized exchanges for DeFi screening and routing.
List on-chain DEX token liquidity
curl --request GET \
--url https://api.darvas.app/v1/defi/dex-tokens \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/defi/dex-tokens"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/defi/dex-tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"dex_tokens": [
{
"chain": "solana",
"dex": "raydium",
"pair_address": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"base_symbol": "SOL",
"base_address": "So11111111111111111111111111111111111111112",
"quote_symbol": "USDC",
"price_usd": 242.15,
"liquidity_usd": 45200000,
"volume_24h_usd": 185000000,
"price_change_24h_pct": 3.12,
"fdv_usd": 141000000000,
"market_cap_usd": 115000000000
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint serves live decentralized exchange liquidity across Solana, Ethereum, Base, Arbitrum, BSC, and other chains in two modes: passquery to search active DEX pairs by ticker, pair name, or token contract address, or omit query to list top trending on-chain tokens.
| Coverage | Details |
|---|---|
| Modes | Pair search when query is provided (trimmed to 60 characters); top trending on-chain tokens when query is omitted |
| Chain filter | Optional chain slug matched case-insensitively, such as solana, ethereum, base, arbitrum, or bsc |
| Row limit | limit from 1 to 100 rows (default 30) |
| Freshness | Cached for 30 seconds per (query, chain) combination |
| MCP tool | list_dex_tokens on the data API MCP server |
Two response shapes: pair search and trending tokens
The fields inside eachdex_tokens object depend on whether you send query.
- With
query(pair search). Each row represents a live DEX pool and returnschain,dex(such asraydiumoruniswap),pair_address,base_symbol,base_address,quote_symbol,price_usd,liquidity_usd,volume_24h_usd,price_change_24h_pct,fdv_usd, andmarket_cap_usd. Numeric fields arenullwhen unavailable. - Without
query(trending tokens). Each row represents a trending on-chain token and returnschain,token_address,description, andtotal_amount. To retrieve pool prices and USD liquidity for a trending token, pass itstoken_addressback to this endpoint asquery. - Related endpoints. For protocol-level TVL rankings, see
/defi/protocols. For AMM pool yields, see/defi/yields. For centralized and Hyperliquid candles, see/crypto/prices. For Coinbase stock tokens on Base, see/tokenized-stocks/prices/snapshot.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/defi/dex-tokens",
headers=headers,
params={"query": "SOL", "chain": "solana", "limit": 10},
).json()
for pair in resp["dex_tokens"]:
print(pair["dex"], f'{pair["base_symbol"]}/{pair["quote_symbol"]}', "price:", pair["price_usd"], "liq USD:", pair["liquidity_usd"], "24h vol:", pair["volume_24h_usd"])
# List top 15 trending on-chain tokens on Base (no query parameter)
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/defi/dex-tokens?chain=base&limit=15"
Authorizations
apiKeybearerKey
Query Parameters
Response
List on-chain DEX token liquidity: one page.
The answer of GET /defi/dex-tokens.
On-chain DEX pairs or trending tokens.
Maximum array length:
100Example:
[
{
"chain": "solana",
"dex": "raydium",
"pair_address": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"base_symbol": "SOL",
"base_address": "So11111111111111111111111111111111111111112",
"quote_symbol": "USDC",
"price_usd": 242.15,
"liquidity_usd": 45200000,
"volume_24h_usd": 185000000,
"price_change_24h_pct": 3.12,
"fdv_usd": 141000000000,
"market_cap_usd": 115000000000
}
]