Skip to content

GET /price/:symbol

Real-time aggregated price from all supported DEXes.

Cost: $0.01 USDC

Parameters

Path Parameters

ParameterTypeRequiredDescription
symbolstringYesToken symbol (ETH, BTC, SOL, etc.)

Query Parameters

ParameterTypeDefaultDescription
include_sourcesbooleantrueInclude per-DEX prices

Request

response = client.get("https://api.foursec.xyz/price/ETH")
data = response.json()

Response

{
  "symbol": "ETH",
  "price_usd": 2450.32,
  "change_24h": 2.45,
  "volume_24h_usd": 12500000,
  "total_sources": 3,
  "spread": 0.07,
  "timestamp": "2026-07-04T15:30:00Z",
  "sources": [
    {
      "dex": "Uniswap V3",
      "chain": "Base",
      "pair": "ETH/USDC",
      "price": 2450.30,
      "liquidity_usd": 5200000,
      "volume_24h": 4800000
    },
    {
      "dex": "BaseSwap",
      "chain": "Base",
      "pair": "ETH/USDC",
      "price": 2450.35,
      "liquidity_usd": 3100000,
      "volume_24h": 2900000
    },
    {
      "dex": "SushiSwap",
      "chain": "Base",
      "pair": "ETH/USDC",
      "price": 2450.28,
      "liquidity_usd": 4200000,
      "volume_24h": 4800000
    }
  ]
}

Response Fields

FieldTypeDescription
symbolstringToken symbol
price_usdfloatVolume-weighted average price (VWAP)
change_24hfloat24-hour price change percentage
volume_24h_usdfloatTotal 24h volume across all DEXes
total_sourcesintNumber of DEX sources used
spreadfloatPrice spread between highest and lowest DEX (%)
timestampstringISO 8601 timestamp
sourcesarrayIndividual DEX price data

Source Object

FieldTypeDescription
dexstringDEX name
chainstringBlockchain network
pairstringTrading pair
pricefloatPrice on this DEX
liquidity_usdfloatPool liquidity in USD
volume_24hfloat24h volume on this DEX

Released under the MIT License.