Lean  $LEAN_TAG$
QuantConnect.Securities.ErrorCurrencyConverter Class Reference

Provides an implementation of ICurrencyConverter for use in tests that don't depend on this behavior. More...

Inheritance diagram for QuantConnect.Securities.ErrorCurrencyConverter:
[legend]

Public Member Functions

CashAmount ConvertToAccountCurrency (CashAmount cashAmount)
 Converts a cash amount to the account currency More...
 

Static Public Attributes

static ICurrencyConverter Instance = new ErrorCurrencyConverter()
 Provides access to the single instance of ErrorCurrencyConverter. This is done this way to ensure usage is explicit. More...
 

Properties

string AccountCurrency [get]
 Gets account currency More...
 
- Properties inherited from QuantConnect.Securities.ICurrencyConverter
string AccountCurrency [get]
 Gets account currency More...
 

Detailed Description

Provides an implementation of ICurrencyConverter for use in tests that don't depend on this behavior.

Definition at line 24 of file ErrorCurrencyConverter.cs.

Member Function Documentation

◆ ConvertToAccountCurrency()

CashAmount QuantConnect.Securities.ErrorCurrencyConverter.ConvertToAccountCurrency ( CashAmount  cashAmount)

Converts a cash amount to the account currency

Parameters
cashAmountThe CashAmount instance to convert
Returns
A new CashAmount instance denominated in the account currency

Implements QuantConnect.Securities.ICurrencyConverter.

Definition at line 52 of file ErrorCurrencyConverter.cs.

Member Data Documentation

◆ Instance

ICurrencyConverter QuantConnect.Securities.ErrorCurrencyConverter.Instance = new ErrorCurrencyConverter()
static

Provides access to the single instance of ErrorCurrencyConverter. This is done this way to ensure usage is explicit.

Definition at line 41 of file ErrorCurrencyConverter.cs.

Property Documentation

◆ AccountCurrency

string QuantConnect.Securities.ErrorCurrencyConverter.AccountCurrency
get

Gets account currency

Definition at line 30 of file ErrorCurrencyConverter.cs.


The documentation for this class was generated from the following file: