Represents a cash amount which can be converted to account currency using a currency converter
More...
Represents a cash amount which can be converted to account currency using a currency converter
Definition at line 24 of file CashAmount.cs.
◆ CashAmount()
QuantConnect.Securities.CashAmount.CashAmount |
( |
decimal |
amount, |
|
|
string |
currency |
|
) |
| |
Initializes a new instance of the CashAmount class
- Parameters
-
amount | The amount |
currency | The currency |
Definition at line 43 of file CashAmount.cs.
◆ operator==()
◆ operator!=()
Will determine if two CashAmount instances are different Useful to compare against the default instance
- Returns
- True if Currency or Amount are different
Definition at line 64 of file CashAmount.cs.
◆ Equals()
override bool QuantConnect.Securities.CashAmount.Equals |
( |
object |
obj | ) |
|
Used to compare two CashAmount instances. Useful to compare against the default instance
- Parameters
-
obj | The other object to compare with |
- Returns
- True if Currency and Amount are equal
Definition at line 75 of file CashAmount.cs.
◆ GetHashCode()
override int QuantConnect.Securities.CashAmount.GetHashCode |
( |
| ) |
|
Get Hash Code for this Object
- Returns
- Integer Hash Code
Definition at line 90 of file CashAmount.cs.
◆ Amount
decimal QuantConnect.Securities.CashAmount.Amount |
|
get |
◆ Currency
string QuantConnect.Securities.CashAmount.Currency |
|
get |
The currency in which the cash amount is denominated
Definition at line 36 of file CashAmount.cs.
The documentation for this struct was generated from the following file: