ICurrencyConverter
QuantConnect.Securities.ICurrencyConverter
Provides the ability to convert cash amounts to the account currency
account_currency
account_currency: str
Gets account currency
convert_to_account_currency
convert_to_account_currency(
cash_amount: CashAmount,
) -> CashAmount
Converts a cash amount to the account currency
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cash_amount
|
CashAmount
|
The CashAmount instance to convert |
required |
Returns:
| Type | Description |
|---|---|
CashAmount
|
A new CashAmount instance denominated in the account currency. |