|
|
@ -1,6 +1,9 @@ |
|
|
|
import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface'; |
|
|
|
import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface'; |
|
|
|
import { PortfolioPosition } from '@ghostfolio/common/interfaces'; |
|
|
|
import { |
|
|
|
PortfolioDetails, |
|
|
|
PortfolioPosition |
|
|
|
} from '@ghostfolio/common/interfaces'; |
|
|
|
import { ExchangeRateDataService } from 'apps/api/src/services/exchange-rate-data.service'; |
|
|
|
|
|
|
|
import { Rule } from '../../rule'; |
|
|
@ -8,9 +11,7 @@ import { Rule } from '../../rule'; |
|
|
|
export class AccountClusterRiskInitialInvestment extends Rule<Settings> { |
|
|
|
public constructor( |
|
|
|
protected exchangeRateDataService: ExchangeRateDataService, |
|
|
|
private accounts: { |
|
|
|
[account: string]: { current: number; original: number }; |
|
|
|
} |
|
|
|
private accounts: PortfolioDetails['accounts'] |
|
|
|
) { |
|
|
|
super(exchangeRateDataService, { |
|
|
|
name: 'Initial Investment' |
|
|
|