The Prices API provides real-time token prices and historical price data based on onchain trading activity.

Key Features

  • Real-Time & Historical Data: Latest prices update in real time, while historical prices are available at multiple time intervals and granularities.
  • On-Chain Price Calculation: Prices are computed directly from on-chain DEX trades, ensuring low freshness and comprehensive coverage.
  • Newly Launched Token Support: A token’s price is available as soon as its first on-chain DEX trade occurs. This includes pump.fun tokens

Use Cases

Use CaseSolution
Real-time Applications (Wallets, Trading Platforms, and more)Developers use our DEX-trades-based real-time price data to power live price charts, price notifications, and accurate price evaluation.
Token Price AnalyticsDevelopers use our live price statistics and aggregations to track key metrics across time, monitor price trends and volatility, and identify market opportunities.
Portfolio ManagementDevelopers use our combined real-time and historical price data support accurate portfolio valuation tracking at any point in time, PnL calculations, and portfolio composition analysis. See our holdings endpoint for more information.

Methodology

Price calculation

Our token prices are calculated based on onchain dex activity. We track a number of popular dexes (see list bellow) and generate a USD price for each token traded against a list of known tokens like SOL, USDC, WETH. With those trades priced in USD, we can construct candles (aka. OHLC values) for a pre defined list of time windows. For each time window, we also return a volume weighted price.

Outlier detection

Onchain arbitrage activity commonly leads to undesirable spikes in pricing data which do not represent the actual value of a token at a given time. This makes dex trades prices hard to use in portfolio management and price graph. To mitigate this issue, we apply a z-score based outlier detection to filter out trades outside of the typical price range. This results in more accurate prices across our endpoints.

Tracked dexes

Bellow is the current list of Solana dexes used in our prices. We are always working on adding new popular dexes and new protocols introduced.

Protocol
clmm-v2
cropper-whirlpool
fluxbeam
invariant
lifinity-v2
mercurial
meteora
meteora-damm-v2
meteora-dlmm
orca-v1
orca-v2
orca-whirlpool
phoenix
pumpfun
pumpswap
raydium-clmm
raydium-cp
raydium-stable
raydium-v4
saber-stableswap
solfi
stepn

Supported Chains

If you are interested in testing the Prices API or need pricing data for other chains, please reach out to our team.