Lean
$LEAN_TAG$
|
Provides an implementation of ICurrencyConverter that does NOT perform conversions. This implementation will throw if the specified cashAmount is not in units of account currency. More...
Public Member Functions | |
IdentityCurrencyConverter (string accountCurrency) | |
Initializes a new instance of the ICurrencyConverter class More... | |
CashAmount | ConvertToAccountCurrency (CashAmount cashAmount) |
Converts a cash amount to the account currency. This implementation can only handle cash amounts in units of the account currency. More... | |
Properties | |
string | AccountCurrency [get] |
Gets account currency More... | |
Properties inherited from QuantConnect.Securities.ICurrencyConverter | |
string | AccountCurrency [get] |
Gets account currency More... | |
Provides an implementation of ICurrencyConverter that does NOT perform conversions. This implementation will throw if the specified cashAmount is not in units of account currency.
Definition at line 24 of file IdentityCurrencyConverter.cs.
QuantConnect.Securities.IdentityCurrencyConverter.IdentityCurrencyConverter | ( | string | accountCurrency | ) |
Initializes a new instance of the ICurrencyConverter class
accountCurrency | The algorithm's account currency |
Definition at line 35 of file IdentityCurrencyConverter.cs.
CashAmount QuantConnect.Securities.IdentityCurrencyConverter.ConvertToAccountCurrency | ( | CashAmount | cashAmount | ) |
Converts a cash amount to the account currency. This implementation can only handle cash amounts in units of the account currency.
cashAmount | The CashAmount instance to convert |
Implements QuantConnect.Securities.ICurrencyConverter.
Definition at line 46 of file IdentityCurrencyConverter.cs.
|
get |
Gets account currency
Definition at line 29 of file IdentityCurrencyConverter.cs.