RealisedGainLoss
More...
|
| | RealisedGainLoss (string instrumentScope=default(string), string instrumentUid=default(string), decimal units=default(decimal), decimal? purchasePrice=default(decimal?), CurrencyAndAmount costTradeCcy=default(CurrencyAndAmount), CurrencyAndAmount costPortfolioCcy=default(CurrencyAndAmount), CurrencyAndAmount realisedTradeCcy=default(CurrencyAndAmount), CurrencyAndAmount realisedTotal=default(CurrencyAndAmount), CurrencyAndAmount realisedMarket=default(CurrencyAndAmount), CurrencyAndAmount realisedCurrency=default(CurrencyAndAmount), string taxLotId=default(string), CurrencyAndAmount realisedAmortisation=default(CurrencyAndAmount), CurrencyAndAmount tradeDateToSettlementDateRealisedCurrency=default(CurrencyAndAmount)) |
| | Initializes a new instance of the RealisedGainLoss class. More...
|
| |
| bool | ShouldSerializePurchaseTradeDate () |
| | Returns false as PurchaseTradeDate should not be serialized given that it's read-only. More...
|
| |
| bool | ShouldSerializePurchaseSettlementDate () |
| | Returns false as PurchaseSettlementDate should not be serialized given that it's read-only. More...
|
| |
| override string | ToString () |
| | Returns the string presentation of the object More...
|
| |
| virtual string | ToJson () |
| | Returns the JSON string presentation of the object More...
|
| |
| override bool | Equals (object input) |
| | Returns true if objects are equal More...
|
| |
| bool | Equals (RealisedGainLoss input) |
| | Returns true if RealisedGainLoss instances are equal More...
|
| |
| override int | GetHashCode () |
| | Gets the hash code More...
|
| |
|
| string | InstrumentScope [get, set] |
| | The scope in which the instrument lies. More...
|
| |
| string | InstrumentUid [get, set] |
| | The unique Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with. More...
|
| |
| decimal | Units [get, set] |
| | The number of units of the associated instrument against which the gain or loss has been realised. More...
|
| |
| DateTimeOffset? | PurchaseTradeDate [get] |
| | The effective datetime at which the units associated with this gain or loss were originally purchased. More...
|
| |
| DateTimeOffset? | PurchaseSettlementDate [get] |
| | The effective datetime at which the units associated with this gain or loss were originally settled. More...
|
| |
| decimal? | PurchasePrice [get, set] |
| | The purchase price of each unit associated with this gain or loss. More...
|
| |
| CurrencyAndAmount | CostTradeCcy [get, set] |
| | Gets or Sets CostTradeCcy More...
|
| |
| CurrencyAndAmount | CostPortfolioCcy [get, set] |
| | Gets or Sets CostPortfolioCcy More...
|
| |
| CurrencyAndAmount | RealisedTradeCcy [get, set] |
| | Gets or Sets RealisedTradeCcy More...
|
| |
| CurrencyAndAmount | RealisedTotal [get, set] |
| | Gets or Sets RealisedTotal More...
|
| |
| CurrencyAndAmount | RealisedMarket [get, set] |
| | Gets or Sets RealisedMarket More...
|
| |
| CurrencyAndAmount | RealisedCurrency [get, set] |
| | Gets or Sets RealisedCurrency More...
|
| |
| string | TaxLotId [get, set] |
| | The identifier of the tax lot with which this gain or loss is associated. More...
|
| |
| CurrencyAndAmount | RealisedAmortisation [get, set] |
| | Gets or Sets RealisedAmortisation More...
|
| |
| CurrencyAndAmount | TradeDateToSettlementDateRealisedCurrency [get, set] |
| | Gets or Sets TradeDateToSettlementDateRealisedCurrency More...
|
| |
◆ RealisedGainLoss() [1/2]
| Lusid.Sdk.Model.RealisedGainLoss.RealisedGainLoss |
( |
| ) |
|
|
inlineprotected |
◆ RealisedGainLoss() [2/2]
| Lusid.Sdk.Model.RealisedGainLoss.RealisedGainLoss |
( |
string |
instrumentScope = default(string), |
|
|
string |
instrumentUid = default(string), |
|
|
decimal |
units = default(decimal), |
|
|
decimal? |
purchasePrice = default(decimal?), |
|
|
CurrencyAndAmount |
costTradeCcy = default(CurrencyAndAmount), |
|
|
CurrencyAndAmount |
costPortfolioCcy = default(CurrencyAndAmount), |
|
|
CurrencyAndAmount |
realisedTradeCcy = default(CurrencyAndAmount), |
|
|
CurrencyAndAmount |
realisedTotal = default(CurrencyAndAmount), |
|
|
CurrencyAndAmount |
realisedMarket = default(CurrencyAndAmount), |
|
|
CurrencyAndAmount |
realisedCurrency = default(CurrencyAndAmount), |
|
|
string |
taxLotId = default(string), |
|
|
CurrencyAndAmount |
realisedAmortisation = default(CurrencyAndAmount), |
|
|
CurrencyAndAmount |
tradeDateToSettlementDateRealisedCurrency = default(CurrencyAndAmount) |
|
) |
| |
|
inline |
Initializes a new instance of the RealisedGainLoss class.
- Parameters
-
| instrumentScope | The scope in which the instrument lies.. |
| instrumentUid | The unique 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. |
| taxLotId | The identifier of the tax lot with which this gain or loss is associated.. |
| realisedAmortisation | realisedAmortisation. |
| tradeDateToSettlementDateRealisedCurrency | tradeDateToSettlementDateRealisedCurrency. |
◆ 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
◆ InstrumentScope
| string Lusid.Sdk.Model.RealisedGainLoss.InstrumentScope |
|
getset |
The scope in which the instrument lies.
The scope in which the instrument lies.
◆ InstrumentUid
| string Lusid.Sdk.Model.RealisedGainLoss.InstrumentUid |
|
getset |
The unique Lusid Instrument Id (LUID) of the instrument that this gain or loss is associated with.
The unique 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 at which the units associated with this gain or loss were originally settled.
The effective datetime at which the units associated with this gain or loss were originally settled.
◆ PurchaseTradeDate
| DateTimeOffset? Lusid.Sdk.Model.RealisedGainLoss.PurchaseTradeDate |
|
get |
The effective datetime at which the units associated with this gain or loss were originally purchased.
The effective datetime at which the units associated with this gain or loss were originally purchased.
◆ RealisedAmortisation
Gets or Sets RealisedAmortisation
◆ RealisedCurrency
Gets or Sets RealisedCurrency
◆ RealisedMarket
Gets or Sets RealisedMarket
◆ RealisedTotal
Gets or Sets RealisedTotal
◆ RealisedTradeCcy
Gets or Sets RealisedTradeCcy
◆ TaxLotId
| string Lusid.Sdk.Model.RealisedGainLoss.TaxLotId |
|
getset |
The identifier of the tax lot with which this gain or loss is associated.
The identifier of the tax lot with which this gain or loss is associated.
◆ TradeDateToSettlementDateRealisedCurrency
| CurrencyAndAmount Lusid.Sdk.Model.RealisedGainLoss.TradeDateToSettlementDateRealisedCurrency |
|
getset |
Gets or Sets TradeDateToSettlementDateRealisedCurrency
◆ 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/latest/sdk/Lusid.Sdk/Model/RealisedGainLoss.cs