Holding
QuantConnect.Holding
Holding()
Holding(security: Security)
Bases: Object
Singular holding of assets from backend live nodes:
Create a simple JSON holdings from a Security holding class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
security
|
Optional[Security]
|
The security instance |
None
|
currency_symbol
currency_symbol: str
average_price
average_price: float
quantity
quantity: float
market_price
market_price: float
conversion_rate
conversion_rate: Optional[float]
market_value
market_value: float
unrealized_pn_l
unrealized_pn_l: float
unrealized_pn_l_percent
unrealized_pn_l_percent: float
clone
clone() -> Holding
Clones this instance
Returns:
| Type | Description |
|---|---|
Holding
|
A new Holding object with the same values as this one. |
to_string
to_string() -> str
Writes out the properties of this instance to string