C# Class Sharekhan.domain.Instrument

Mostrar archivo Open project: anagri/sharekhan Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
Instrument ( Symbol symbol, Price price, string description ) : System

Method Details

CalculateRealizedProfits() public method

public CalculateRealizedProfits ( ITransactionCollection listOfTransactions ) : double
listOfTransactions ITransactionCollection
return double

CalculateShortTermTax() public method

public CalculateShortTermTax ( List transactions ) : Price
transactions List
return Price

CurrentMarketValue() public method

public CurrentMarketValue ( IList transactions ) : Price
transactions IList
return Price

Equals() public method

public Equals ( Instrument other ) : bool
other Instrument
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Instrument() public method

public Instrument ( ) : System
return System

Instrument() protected method

protected Instrument ( Symbol symbol, Price price, string description ) : System
symbol Symbol
price Price
description string
return System

ToString() public method

public ToString ( ) : string
return string

UpdateCurrentPrice() public method

public UpdateCurrentPrice ( Price price ) : void
price Price
return void

operator() public static method

public static operator ( ) : bool
return bool