Skip to main content

DEX Endpoints

GET /v1/dex/pools

Returns DEX liquidity pools with price, volume, and TVL data.
curl "https://api.crypton.dev/v1/dex/pools"
{
  "status": "ok",
  "timestamp": 1709640000000,
  "data": {
    "pools": [
      {
        "chain": "ethereum",
        "dex": "uniswap_v3",
        "pair": "ETH/USDC",
        "base_token": "ETH",
        "quote_token": "USDC",
        "price_usd": 3512.45,
        "volume_24h": 250000000.00,
        "liquidity_usd": 850000000.00,
        "price_change_24h": -2.35,
        "url": "https://app.uniswap.org/pool/..."
      }
    ],
    "count": 150
  }
}

Pool Fields

chain
string
Blockchain network (ethereum, base, solana, bsc, polygon).
dex
string
DEX protocol (uniswap_v3, pancakeswap, raydium, orca, jupiter).
pair
string
Trading pair (e.g., ETH/USDC).
base_token
string
Base token symbol.
quote_token
string
Quote token symbol.
price_usd
number
Current price in USD.
volume_24h
number
24-hour trading volume (USD).
liquidity_usd
number
Total liquidity / TVL (USD).
price_change_24h
number
24-hour price change (percentage).
url
string
Direct link to the pool on the DEX.

GET /v1/dex/trending

Returns trending DEX pairs by volume and price action.
curl "https://api.crypton.dev/v1/dex/trending"
Same response structure as /v1/dex/pools, sorted by 24h volume and price momentum.

Field Reference

FieldTypeDescriptionGranularityExample
chainstringBlockchain network where the pool livesStatic"ethereum"
dexstringDEX protocol identifierStatic"uniswap_v3"
pairstringTrading pair formatted as BASE/QUOTEStatic"ETH/USDC"
base_tokenstringBase token symbolStatic"ETH"
quote_tokenstringQuote token symbolStatic"USDC"
price_usdnumberCurrent price of base token in USD~60s via DexScreener3512.45
volume_24hnumberRolling 24h trading volume in USD~60s250000000.00
liquidity_usdnumberTotal value locked / liquidity in USD~60s850000000.00
price_change_24hnumber24h price change as percentage~60s-2.35
urlstringDirect link to pool on the DEX UIStatic"https://app.uniswap.org/pool/..."

Data Sources

Pool data is sourced from DexScreener API covering Uniswap V3 (Ethereum, Base, Polygon), PancakeSwap (BSC), Raydium & Orca (Solana), and Jupiter aggregator. Data refreshes every ~60 seconds. Prices are denominated in USD using DexScreener’s price oracle.

Live Testing

# Get all DEX pools
curl -s "https://api.crypton.dev/v1/dex/pools" | jq '.data.pools[:3]'

# Get trending pairs
curl -s "https://api.crypton.dev/v1/dex/trending" | jq '.data.pools[:3]'