@cygnus-wealth/wallet-integration-system
Version:
Multi-chain wallet integration system for CygnusWealth
22 lines • 813 B
TypeScript
import { Chain, Price } from '@cygnus-wealth/data-models';
export declare class TokenPriceService {
private static instance;
private priceCache;
private readonly CACHE_DURATION;
private readonly COINGECKO_API_URL;
private constructor();
static getInstance(): TokenPriceService;
getTokenPrice(tokenAddress: string, chain: Chain, coingeckoId?: string): Promise<Price | null>;
getMultipleTokenPrices(tokens: Array<{
address: string;
chain: Chain;
coingeckoId?: string;
}>): Promise<Map<string, Price>>;
private fetchPriceByCoingeckoId;
private fetchMultiplePricesByCoingeckoId;
private fetchPriceByAddress;
private getCoingeckoPlatformId;
clearCache(): void;
getCacheSize(): number;
}
//# sourceMappingURL=TokenPriceService.d.ts.map