Use this file to discover all available pages before exploring further.
AKKA aggregates liquidity across every DEX on HyperEVM. As a side effect, the token endpoints provide real-time USD prices derived from actual pool reserves — not a single source, but a volume-weighted view across all indexed markets.
Prices are refreshed every ~5 seconds on the backend. For most use cases, polling every 15–30 seconds is sufficient and stays well within the rate limit.
priceService.ts
const API_BASE = 'https://api.akka.finance';const API_KEY = process.env.AKKA_API_KEY!;const POLL_INTERVAL = 15_000; // 15 secondsinterface TokenPrice { symbol: string; address: string; buyPriceUsd: number | null; sellPriceUsd: number | null;}let priceCache = new Map<string, TokenPrice>();async function refreshPrices(): Promise<void> { const res = await fetch( `${API_BASE}/999/tokens?verified=true`, { headers: { apikey: API_KEY } }, ); const { tokens } = await res.json(); const updated = new Map<string, TokenPrice>(); for (const [address, token] of Object.entries(tokens) as [string, any][]) { updated.set(address.toLowerCase(), { symbol: token.symbol, address: token.address, buyPriceUsd: token.buyPriceUsd, sellPriceUsd: token.sellPriceUsd, }); } priceCache = updated;}// Start pollingrefreshPrices();setInterval(refreshPrices, POLL_INTERVAL);// Read from cache (instant, no API call)export function getPrice(tokenAddress: string): TokenPrice | undefined { return priceCache.get(tokenAddress.toLowerCase());}export function getAllPrices(): Map<string, TokenPrice> { return priceCache;}
Show USD values next to token amounts so users know the dollar value of their swap.
Portfolio tracker
Display wallet holdings in USD by multiplying token balances by their current prices.
Price alerts
Poll prices and trigger notifications when a token crosses a threshold.
Analytics
Track token price movements over time for dashboards and reporting.
Prices are derived from real DEX pool reserves across all indexed markets on HyperEVM. They reflect actual on-chain liquidity, not centralized exchange prices.