/** * @name tools/adrena/adrena-snapshot-tools * @description Market snapshot tool with TTL cache for reduced x402 costs. * * @module tools/adrena/adrena-snapshot-tools */ import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import type { SapMcpContext } from '../../../core/src/types.js'; /** Market snapshot response. */ export interface MarketSnapshotResult { timestamp: string; cached: boolean; cacheTtlSeconds: number; markets: MarketEntry[]; prices: Record; poolInfo: PoolInfo; } /** Single market entry in the snapshot. */ interface MarketEntry { symbol: string; pool: string; allowTrade: boolean; allowSwap: boolean; maxInitialLeverage: number; maxLeverage: number; decimals: number; } /** Pool info in the snapshot. */ interface PoolInfo { poolAddress: string; aumUsd: number; lpTokenSupply: number; } /** * @name registerAdrenaMarketSnapshotTool * @description Register sap_market_snapshot — returns markets + prices + pool info * in a single call with a 30-second TTL cache. Reduces x402 costs for polling bots. * @internal */ export declare function registerAdrenaMarketSnapshotTool(server: Server, context: SapMcpContext): void; export {}; //# sourceMappingURL=adrena-snapshot-tools.d.ts.map