C# Class Sharekhan.domain.Instrument

Afficher le fichier Open project: anagri/sharekhan Class Usage Examples

Méthodes publiques

Méthode Description
CalculateRealizedProfits ( ITransactionCollection listOfTransactions ) : double
CalculateShortTermTax ( List transactions ) : Price
CurrentMarketValue ( IList transactions ) : Price
Equals ( Instrument other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Instrument ( ) : System
ToString ( ) : string
UpdateCurrentPrice ( Price price ) : void
operator ( ) : bool

Méthodes protégées

Méthode Description
Instrument ( Symbol symbol, Price price, string description ) : System

Method Details

CalculateRealizedProfits() public méthode

public CalculateRealizedProfits ( ITransactionCollection listOfTransactions ) : double
listOfTransactions ITransactionCollection
Résultat double

CalculateShortTermTax() public méthode

public CalculateShortTermTax ( List transactions ) : Price
transactions List
Résultat Price

CurrentMarketValue() public méthode

public CurrentMarketValue ( IList transactions ) : Price
transactions IList
Résultat Price

Equals() public méthode

public Equals ( Instrument other ) : bool
other Instrument
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Instrument() public méthode

public Instrument ( ) : System
Résultat System

Instrument() protected méthode

protected Instrument ( Symbol symbol, Price price, string description ) : System
symbol Symbol
price Price
description string
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateCurrentPrice() public méthode

public UpdateCurrentPrice ( Price price ) : void
price Price
Résultat void

operator() public static méthode

public static operator ( ) : bool
Résultat bool