nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
fin-infra / API Reference

NetWorthAggregator

from fin_infra.net_worth.aggregator import NetWorthAggregator
View source
fin_infra.net_worth.aggregator

Aggregates net worth from multiple financial providers. **Features**: - Multi-provider support (banking, brokerage, crypto) - Parallel account fetching (faster performance) - Graceful error handling (continue if one provider fails) - Currency normalization (all -> base currency) - Market value calculation (stocks/crypto) **Example**:

python
aggregator = NetWorthAggregator(
    banking_provider=banking,
    brokerage_provider=brokerage,
    crypto_provider=crypto,
    base_currency="USD"
)

snapshot = await aggregator.aggregate_net_worth("user_123")
print(f"Assets: ${snapshot.total_assets:,.2f}")
print(f"Liabilities: ${snapshot.total_liabilities:,.2f}")
print(f"Net Worth: ${snapshot.total_net_worth:,.2f}")
Constructor
NetWorthAggregator(banking_provider: Any = None, brokerage_provider: Any = None, crypto_provider: Any = None, market_provider: Any = None, base_currency: str = 'USD')
ParameterTypeDefaultDescription
banking_providerAnyNoneBanking provider (Plaid/Teller)
brokerage_providerAnyNoneBrokerage provider (Alpaca)
crypto_providerAnyNoneCrypto provider (CCXT)
market_providerAnyNoneMarket data provider (Alpha Vantage)
base_currencystr'USD'Base currency for normalization (default: USD)

Methods

On This Page

Constructoraggregate_net_worth