UNPKG

@cygnus-wealth/wallet-integration-system

Version:

Multi-chain wallet integration system for CygnusWealth

18 lines 741 B
import { Chain, AssetType, Portfolio, PortfolioAsset } from '@cygnus-wealth/data-models'; import { WalletBalance } from '../types'; export declare class PortfolioCalculator { private priceService; constructor(); calculatePortfolioValue(balances: WalletBalance[]): Promise<Portfolio>; calculateChainBreakdown(portfolio: Portfolio): Map<Chain, { value: number; percentage: number; }>; calculateAssetTypeBreakdown(portfolio: Portfolio): Map<AssetType, { value: number; percentage: number; }>; getTopAssets(portfolio: Portfolio, limit?: number): PortfolioAsset[]; filterByChain(portfolio: Portfolio, chain: Chain): Portfolio; } //# sourceMappingURL=PortfolioCalculator.d.ts.map