LUSID C# SDK
|
A list of holdings. More...
Public Member Functions | |
PortfolioHolding (string instrumentScope=default(string), string instrumentUid=default(string), Dictionary< string, PerpetualProperty > subHoldingKeys=default(Dictionary< string, PerpetualProperty >), Dictionary< string, Property > properties=default(Dictionary< string, Property >), string holdingType=default(string), decimal units=default(decimal), decimal settledUnits=default(decimal), CurrencyAndAmount cost=default(CurrencyAndAmount), CurrencyAndAmount costPortfolioCcy=default(CurrencyAndAmount), Transaction transaction=default(Transaction), string currency=default(string), string holdingTypeName=default(string), long? holdingId=default(long?), CurrencyAndAmount notionalCost=default(CurrencyAndAmount), CurrencyAndAmount amortisedCost=default(CurrencyAndAmount), CurrencyAndAmount amortisedCostPortfolioCcy=default(CurrencyAndAmount), CurrencyAndAmount variationMargin=default(CurrencyAndAmount), CurrencyAndAmount variationMarginPortfolioCcy=default(CurrencyAndAmount)) | |
Initializes a new instance of the PortfolioHolding class. 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 (PortfolioHolding input) |
Returns true if PortfolioHolding instances are equal More... | |
override int | GetHashCode () |
Gets the hash code More... | |
Protected Member Functions | |
PortfolioHolding () | |
Initializes a new instance of the PortfolioHolding class. More... | |
Properties | |
string | InstrumentScope [get, set] |
The scope in which the holding's instrument is in. More... | |
string | InstrumentUid [get, set] |
The unique Lusid Instrument Id (LUID) of the instrument that the holding is in. More... | |
Dictionary< string, PerpetualProperty > | SubHoldingKeys [get, set] |
The sub-holding properties which identify the holding. Each property will be from the 'Transaction' domain. These are configured on a transaction portfolio. More... | |
Dictionary< string, Property > | Properties [get, set] |
The properties which have been requested to be decorated onto the holding. These will be from the 'Instrument' or 'Holding' domain. More... | |
string | HoldingType [get, set] |
The code for the type of the holding e.g. P, B, C, R, F etc. More... | |
decimal | Units [get, set] |
The total number of units of the holding. More... | |
decimal | SettledUnits [get, set] |
The total number of settled units of the holding. More... | |
CurrencyAndAmount | Cost [get, set] |
Gets or Sets Cost More... | |
CurrencyAndAmount | CostPortfolioCcy [get, set] |
Gets or Sets CostPortfolioCcy More... | |
Transaction | Transaction [get, set] |
Gets or Sets Transaction More... | |
string | Currency [get, set] |
The holding currency. More... | |
string | HoldingTypeName [get, set] |
The decoded type of the holding e.g. Position, Balance, CashCommitment, Receivable, ForwardFX etc. More... | |
long? | HoldingId [get, set] |
A single identifier for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio. More... | |
CurrencyAndAmount | NotionalCost [get, set] |
Gets or Sets NotionalCost More... | |
CurrencyAndAmount | AmortisedCost [get, set] |
Gets or Sets AmortisedCost More... | |
CurrencyAndAmount | AmortisedCostPortfolioCcy [get, set] |
Gets or Sets AmortisedCostPortfolioCcy More... | |
CurrencyAndAmount | VariationMargin [get, set] |
Gets or Sets VariationMargin More... | |
CurrencyAndAmount | VariationMarginPortfolioCcy [get, set] |
Gets or Sets VariationMarginPortfolioCcy More... | |
A list of holdings.
|
inlineprotected |
Initializes a new instance of the PortfolioHolding class.
|
inline |
Initializes a new instance of the PortfolioHolding class.
instrumentScope | The scope in which the holding's instrument is in.. |
instrumentUid | The unique Lusid Instrument Id (LUID) of the instrument that the holding is in. (required). |
subHoldingKeys | The sub-holding properties which identify the holding. Each property will be from the 'Transaction' domain. These are configured on a transaction portfolio.. |
properties | The properties which have been requested to be decorated onto the holding. These will be from the 'Instrument' or 'Holding' domain.. |
holdingType | The code for the type of the holding e.g. P, B, C, R, F etc. (required). |
units | The total number of units of the holding. (required). |
settledUnits | The total number of settled units of the holding. (required). |
cost | cost (required). |
costPortfolioCcy | costPortfolioCcy (required). |
transaction | transaction. |
currency | The holding currency.. |
holdingTypeName | The decoded type of the holding e.g. Position, Balance, CashCommitment, Receivable, ForwardFX etc.. |
holdingId | A single identifier for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio.. |
notionalCost | notionalCost. |
amortisedCost | amortisedCost. |
amortisedCostPortfolioCcy | amortisedCostPortfolioCcy. |
variationMargin | variationMargin. |
variationMarginPortfolioCcy | variationMarginPortfolioCcy. |
|
inline |
Returns true if objects are equal
input | Object to be compared |
|
inline |
Returns true if PortfolioHolding instances are equal
input | Instance of PortfolioHolding to be compared |
|
inline |
Gets the hash code
|
inlinevirtual |
Returns the JSON string presentation of the object
|
inline |
Returns the string presentation of the object
|
getset |
Gets or Sets AmortisedCost
|
getset |
Gets or Sets AmortisedCostPortfolioCcy
|
getset |
Gets or Sets Cost
|
getset |
Gets or Sets CostPortfolioCcy
|
getset |
The holding currency.
The holding currency.
|
getset |
A single identifier for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio.
A single identifier for the holding within the portfolio. The holdingId is constructed from the LusidInstrumentId, sub-holding keys and currrency and is unique within the portfolio.
|
getset |
The code for the type of the holding e.g. P, B, C, R, F etc.
The code for the type of the holding e.g. P, B, C, R, F etc.
|
getset |
The decoded type of the holding e.g. Position, Balance, CashCommitment, Receivable, ForwardFX etc.
The decoded type of the holding e.g. Position, Balance, CashCommitment, Receivable, ForwardFX etc.
|
getset |
The scope in which the holding's instrument is in.
The scope in which the holding's instrument is in.
|
getset |
The unique Lusid Instrument Id (LUID) of the instrument that the holding is in.
The unique Lusid Instrument Id (LUID) of the instrument that the holding is in.
|
getset |
Gets or Sets NotionalCost
|
getset |
The properties which have been requested to be decorated onto the holding. These will be from the 'Instrument' or 'Holding' domain.
The properties which have been requested to be decorated onto the holding. These will be from the 'Instrument' or 'Holding' domain.
|
getset |
The total number of settled units of the holding.
The total number of settled units of the holding.
|
getset |
The sub-holding properties which identify the holding. Each property will be from the 'Transaction' domain. These are configured on a transaction portfolio.
The sub-holding properties which identify the holding. Each property will be from the 'Transaction' domain. These are configured on a transaction portfolio.
|
getset |
Gets or Sets Transaction
|
getset |
The total number of units of the holding.
The total number of units of the holding.
|
getset |
Gets or Sets VariationMargin
|
getset |
Gets or Sets VariationMarginPortfolioCcy