mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
							committed by
							
								
								Thomas
							
						
					
				
				 12 changed files with 77 additions and 92 deletions
			
			
		@ -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