Skip to main content

Service Dependencies

This page documents the dependency relationships between services.

Dependency Graph

Services are organized in layers:

Layer 0: Repositories (data access only)

Layer 1: Independent services (Fund, Investor, Accounting, Organization, Auth)

Layer 2: Dependent services (BankAccount, FDR, Portfolio)

Layer 3: Composite services (UnrealizedGainLoss)

Layer 4: Coordinators (FundSetup, UnitPurchase, EOD)

Key Dependencies

  • BankAccountService depends on: FundService, AccountingService
  • FdrService depends on: FundService
  • PortfolioServices depend on: FundService
  • UnrealizedGainLossService depends on: AccountingService, PortfolioServices

See Service Factory for implementation details.