Tokens price feed
Updated every minute
On-Chain Data
Sourced from avnu Liquidity Graph
Exchange Breakdown
Per-DEX volume and TVL
How It Works
Markets API uses the avnu Liquidity Graph - a real-time index of all liquidity pools on Starknet, updated every block.Pool State Tracking
Pool State Tracking
Monitors all supported AMM pools at every block:
- Pool reserves and liquidity depth
- Token pair information
- Real-time state updates
Starknet & Global prices
Starknet & Global prices
- Provide both global market price (if available) & starknet market price
Indirect Starknet Pricing
Indirect Starknet Pricing
For tokens without direct ETH or USDC pairs:
- Chain through multiple tokens
- Example: TOKEN → STRK → ETH → USDC
- Calculate final price via intermediate hops
Real-Time Updates
Real-Time Updates
Prices and metrics refresh every minute. Historical data available with configurable resolution.
Feed pricing methodology
Token prices are computed through a two-step process:- Starknet Price Feed - Calculates token prices in ETH using the avnu Liquidity Graph (on-chain pool states)
- External ETH/USD Price - Combined with the above to derive final USD valuations
Pool Price Estimation
Rather than using marginal pool prices (which suffer from price impact and arbitrage), avnu samples swap functions using a combination of fix-point approximations and sampling to minimize distortion.Final Price Calculation
For a given asset pair, each pool trading these assets is priced and the median of these prices is defined as the current Starknet price for the given pair.Indirect Pricing
For tokens without direct ETH pairs:- Find the largest connected pool (e.g., TOKEN → STRK)
- Compute:
Price(TOKEN→ETH) = Price(TOKEN→STRK) × Price(STRK→ETH) - Repeat recursively until reaching ETH
Quick Start
Use Cases
Wallets
Display real-time token prices and portfolio values without external API dependencies
Trading Dashboards
Build price charts, volume analysis, and market screeners with historical data
DeFi Protocols
Calculate TVL, track liquidity, and monitor token prices for lending and yield farming
Analytics Platforms
Analyze exchange dominance, liquidity trends, and trading patterns across Starknet