Lean  $LEAN_TAG$
QuantConnect.Securities.ConvertibleCashAmount Class Reference

A cash amount that can easily be converted into account currency More...

Public Member Functions

 ConvertibleCashAmount (decimal amount, Cash cash)
 Creates a new instance More...
 

Static Public Member Functions

static implicit operator decimal (ConvertibleCashAmount convertibleCashAmount)
 The amount in account currency More...
 

Public Attributes

decimal InAccountCurrency => Amount * Cash.ConversionRate
 The amount in account currency More...
 

Properties

decimal Amount [get]
 The amount More...
 
Cash Cash [get]
 The cash associated with the amount More...
 

Detailed Description

A cash amount that can easily be converted into account currency

Definition at line 21 of file ConvertibleCashAmount.cs.

Constructor & Destructor Documentation

◆ ConvertibleCashAmount()

QuantConnect.Securities.ConvertibleCashAmount.ConvertibleCashAmount ( decimal  amount,
Cash  cash 
)

Creates a new instance

Definition at line 41 of file ConvertibleCashAmount.cs.

Member Function Documentation

◆ operator decimal()

static implicit QuantConnect.Securities.ConvertibleCashAmount.operator decimal ( ConvertibleCashAmount  convertibleCashAmount)
static

The amount in account currency

Definition at line 50 of file ConvertibleCashAmount.cs.

Member Data Documentation

◆ InAccountCurrency

decimal QuantConnect.Securities.ConvertibleCashAmount.InAccountCurrency => Amount * Cash.ConversionRate

The amount in account currency

Definition at line 36 of file ConvertibleCashAmount.cs.

Property Documentation

◆ Amount

decimal QuantConnect.Securities.ConvertibleCashAmount.Amount
get

The amount

Definition at line 26 of file ConvertibleCashAmount.cs.

◆ Cash

Cash QuantConnect.Securities.ConvertibleCashAmount.Cash
get

The cash associated with the amount

Definition at line 31 of file ConvertibleCashAmount.cs.


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