parent
9834c52739
commit
72dbe00091
@ -1,17 +1,9 @@
|
||||
import { PortfolioPosition } from '@ghostfolio/common/interfaces';
|
||||
|
||||
import { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface';
|
||||
import { EvaluationResult } from './evaluation-result.interface';
|
||||
import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface';
|
||||
|
||||
export interface RuleInterface<T extends RuleSettings> {
|
||||
evaluate(
|
||||
aPortfolioPositionMap: {
|
||||
[symbol: string]: PortfolioPosition;
|
||||
},
|
||||
aFees: number,
|
||||
aRuleSettings: T
|
||||
): EvaluationResult;
|
||||
evaluate(aRuleSettings: T): EvaluationResult;
|
||||
|
||||
getSettings(aUserSettings: UserSettings): T;
|
||||
}
|
||||
|
Loading…
Reference in new issue