RealisedGainLoss
More...
◆ RealisedGainLoss() [1/2]
| Lusid.Sdk.Model.RealisedGainLoss.RealisedGainLoss |
( |
| ) |
|
|
inlineprotected |
◆ RealisedGainLoss() [2/2]
Initializes a new instance of the RealisedGainLoss class.
- Parameters
-
| instrumentUid | The unqiue Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with. (required). |
| units | The number of units of the associated instrument against which the gain or loss has been realised. (required). |
| purchasePrice | The purchase price of each unit associated with this gain or loss.. |
| costTradeCcy | costTradeCcy (required). |
| costPortfolioCcy | costPortfolioCcy (required). |
| realisedTradeCcy | realisedTradeCcy (required). |
| realisedTotal | realisedTotal (required). |
| realisedMarket | realisedMarket. |
| realisedCurrency | realisedCurrency. |
◆ Equals() [1/2]
| override bool Lusid.Sdk.Model.RealisedGainLoss.Equals |
( |
object |
input | ) |
|
|
inline |
Returns true if objects are equal
- Parameters
-
| input | Object to be compared |
- Returns
- Boolean
◆ Equals() [2/2]
◆ GetHashCode()
| override int Lusid.Sdk.Model.RealisedGainLoss.GetHashCode |
( |
| ) |
|
|
inline |
Gets the hash code
- Returns
- Hash code
◆ ShouldSerializePurchaseSettlementDate()
| bool Lusid.Sdk.Model.RealisedGainLoss.ShouldSerializePurchaseSettlementDate |
( |
| ) |
|
|
inline |
Returns false as PurchaseSettlementDate should not be serialized given that it's read-only.
- Returns
- false (boolean)
◆ ShouldSerializePurchaseTradeDate()
| bool Lusid.Sdk.Model.RealisedGainLoss.ShouldSerializePurchaseTradeDate |
( |
| ) |
|
|
inline |
Returns false as PurchaseTradeDate should not be serialized given that it's read-only.
- Returns
- false (boolean)
◆ ToJson()
| virtual string Lusid.Sdk.Model.RealisedGainLoss.ToJson |
( |
| ) |
|
|
inlinevirtual |
Returns the JSON string presentation of the object
- Returns
- JSON string presentation of the object
◆ ToString()
| override string Lusid.Sdk.Model.RealisedGainLoss.ToString |
( |
| ) |
|
|
inline |
Returns the string presentation of the object
- Returns
- String presentation of the object
◆ CostPortfolioCcy
Gets or Sets CostPortfolioCcy
◆ CostTradeCcy
Gets or Sets CostTradeCcy
◆ InstrumentUid
| string Lusid.Sdk.Model.RealisedGainLoss.InstrumentUid |
|
getset |
The unqiue Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with.
The unqiue Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with.
◆ PurchasePrice
| decimal Lusid.Sdk.Model.RealisedGainLoss.PurchasePrice |
|
getset |
The purchase price of each unit associated with this gain or loss.
The purchase price of each unit associated with this gain or loss.
◆ PurchaseSettlementDate
| DateTimeOffset Lusid.Sdk.Model.RealisedGainLoss.PurchaseSettlementDate |
|
get |
The effective datetime that the units associated with this gain or loss where originally settled.
The effective datetime that the units associated with this gain or loss where originally settled.
◆ PurchaseTradeDate
| DateTimeOffset Lusid.Sdk.Model.RealisedGainLoss.PurchaseTradeDate |
|
get |
The effective datetime that the units associated with this gain or loss where originally purchased.
The effective datetime that the units associated with this gain or loss where originally purchased.
◆ RealisedCurrency
Gets or Sets RealisedCurrency
◆ RealisedMarket
Gets or Sets RealisedMarket
◆ RealisedTotal
Gets or Sets RealisedTotal
◆ RealisedTradeCcy
Gets or Sets RealisedTradeCcy
◆ Units
| decimal Lusid.Sdk.Model.RealisedGainLoss.Units |
|
getset |
The number of units of the associated instrument against which the gain or loss has been realised.
The number of units of the associated instrument against which the gain or loss has been realised.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/lusid-sdk-csharp/checkouts/stable/sdk/Lusid.Sdk/Model/RealisedGainLoss.cs