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 { UserSettings } from '@ghostfolio/api/models/interfaces/user-settings.interface';
|
||||||
import { EvaluationResult } from './evaluation-result.interface';
|
import { EvaluationResult } from './evaluation-result.interface';
|
||||||
import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface';
|
import { RuleSettings } from '@ghostfolio/api/models/interfaces/rule-settings.interface';
|
||||||
|
|
||||||
export interface RuleInterface<T extends RuleSettings> {
|
export interface RuleInterface<T extends RuleSettings> {
|
||||||
evaluate(
|
evaluate(aRuleSettings: T): EvaluationResult;
|
||||||
aPortfolioPositionMap: {
|
|
||||||
[symbol: string]: PortfolioPosition;
|
|
||||||
},
|
|
||||||
aFees: number,
|
|
||||||
aRuleSettings: T
|
|
||||||
): EvaluationResult;
|
|
||||||
|
|
||||||
getSettings(aUserSettings: UserSettings): T;
|
getSettings(aUserSettings: UserSettings): T;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue