//#region extensions/crypto/src/services/price-service.d.ts /** * Price Service — unified price feed shared across tools. * * Used by manage-orders (trigger checks), defi-swap (pre-swap display), * defi-balance (ETH valuation), and the workflow orchestrator. * * Sources: DexScreener (primary), CoinGecko (fallback). * Includes a TTL cache to avoid hammering APIs during multi-tool workflows. */ interface PriceResult { priceUsd: number; priceEth: number; symbol: string; name: string; address?: string; change24h?: number; volume24h?: number; liquidity?: number; source: 'dexscreener' | 'coingecko' | 'cache'; } /** * Get current price for any token. Cached for 30s. */ declare function getPrice(token: string, chain?: string): Promise; declare function getEthPrice(): Promise; /** * Get prices for multiple tokens at once (batched, cached). */ declare function getPrices(tokens: Array<{ token: string; chain?: string; }>): Promise>; /** * Clear the price cache. Useful for testing. */ declare function clearPriceCache(): void; //#endregion export { PriceResult, clearPriceCache, getEthPrice, getPrice, getPrices }; //# sourceMappingURL=price-service.d.mts.map