Skip to main content
Access price feeds, liquidity metrics, and trading volume directly from Starknet—no external oracles needed.

Tokens price feed

Updated every minute

On-Chain Data

Sourced from avnu Liquidity Graph

Exchange Breakdown

Per-DEX volume and TVL
Display & Analytics Only: Market data is intended for display purposes and analytics only. Do not use this data for automated decision-making or trading strategies, as it does not benefit from active monitoring or guaranteed uptime.

How It Works

Markets API uses the avnu Liquidity Graph - a real-time index of all liquidity pools on Starknet, updated every block.
Monitors all supported AMM pools at every block:
  • Pool reserves and liquidity depth
  • Token pair information
  • Real-time state updates
  • Provide both global market price (if available) & starknet market price
For tokens without direct ETH or USDC pairs:
  • Chain through multiple tokens
  • Example: TOKEN → STRK → ETH → USDC
  • Calculate final price via intermediate hops
Prices and metrics refresh every minute. Historical data available with configurable resolution.

Feed pricing methodology

Token prices are computed through a two-step process:
  1. Starknet Price Feed - Calculates token prices in ETH using the avnu Liquidity Graph (on-chain pool states)
  2. 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:
  1. Find the largest connected pool (e.g., TOKEN → STRK)
  2. Compute: Price(TOKEN→ETH) = Price(TOKEN→STRK) × Price(STRK→ETH)
  3. Repeat recursively until reaching ETH

Quick Start

import { getMarketData } from '@avnu/avnu-sdk';

const tokens = await getMarketData();

tokens.forEach(token => {
  console.log({
    symbol: token.symbol,
    price: token.starknet.usd,
    marketCap: token.global?.usdMarketCap,
    volume24h: token.starknet.usdVolume24h,
    priceChange24h: token.starknet.usdPriceChangePercentage24h,
  });
});

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