LUSID C# SDK
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest Class Reference

CreateSimplePositionPortfolioRequest More...

Inheritance diagram for Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest:
Inheritance graph
[legend]

Public Types

enum class  AccountingMethodEnum {
  Default = 1 , AverageCost = 2 , FirstInFirstOut = 3 , LastInFirstOut = 4 ,
  HighestCostFirst = 5 , LowestCostFirst = 6 , ProRateByUnits = 7 , ProRateByCost = 8 ,
  ProRateByCostPortfolioCurrency = 9 , IntraDayThenFirstInFirstOut = 10 , LongTermHighestCostFirst = 11 , LongTermHighestCostFirstPortfolioCurrency = 12 ,
  HighestCostFirstPortfolioCurrency = 13 , LowestCostFirstPortfolioCurrency = 14 , MaximumLossMinimumGain = 15 , MaximumLossMinimumGainPortfolioCurrency = 16
}
 Determines the accounting treatment given to the simple position portfolio's tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency. More...
 

Public Member Functions

 CreateSimplePositionPortfolioRequest (string displayName=default(string), string description=default(string), string code=default(string), DateTimeOffset? created=default(DateTimeOffset?), string baseCurrency=default(string), ResourceId corporateActionSourceId=default(ResourceId), AccountingMethodEnum ?accountingMethod=default(AccountingMethodEnum?), List< string > subHoldingKeys=default(List< string >), Dictionary< string, Property > properties=default(Dictionary< string, Property >), List< string > instrumentScopes=default(List< string >), string amortisationMethod=default(string), string transactionTypeScope=default(string), string cashGainLossCalculationDate=default(string), InstrumentEventConfiguration instrumentEventConfiguration=default(InstrumentEventConfiguration), ResourceId amortisationRuleSetId=default(ResourceId))
 Initializes a new instance of the CreateSimplePositionPortfolioRequest 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 (CreateSimplePositionPortfolioRequest input)
 Returns true if CreateSimplePositionPortfolioRequest instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Protected Member Functions

 CreateSimplePositionPortfolioRequest ()
 Initializes a new instance of the CreateSimplePositionPortfolioRequest class. More...
 

Properties

AccountingMethodEnumAccountingMethod [get, set]
 Determines the accounting treatment given to the simple position portfolio&#39;s tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency. More...
 
string DisplayName [get, set]
 The name of the simple position portfolio. More...
 
string Description [get, set]
 A description for the simple position portfolio. More...
 
string Code [get, set]
 The code of the simple position portfolio. Together with the scope this uniquely identifies the simple position portfolio. More...
 
DateTimeOffset? Created [get, set]
 The effective datetime at which to create the simple position portfolio. No holdings can be set on the simple position portfolio before this date. Defaults to the current LUSID system datetime if not specified. More...
 
string BaseCurrency [get, set]
 The base currency of the simple position portfolio in ISO 4217 currency code format. More...
 
ResourceId CorporateActionSourceId [get, set]
 Gets or Sets CorporateActionSourceId More...
 
List< string > SubHoldingKeys [get, set]
 A set of unique transaction properties to group the simple position portfolio&#39;s holdings by, perhaps for strategy tagging. Each property must be from the &#39;Transaction&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Transaction/strategies/quantsignal&#39;. See https://support.lusid.com/knowledgebase/article/KA-01879/en-us for more information. More...
 
Dictionary< string, PropertyProperties [get, set]
 A set of unique portfolio properties to add custom data to the simple position portfolio. Each property must be from the &#39;Portfolio&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. Note these properties must be pre-defined. More...
 
List< string > InstrumentScopes [get, set]
 The resolution strategy used to resolve instruments of holdings upserted to this portfolio. More...
 
string AmortisationMethod [get, set]
 The amortisation method used by the portfolio for the calculation. Available values: NoAmortisation, StraightLine, EffectiveYield, StraightLineSettlementDate, EffectiveYieldSettlementDate. More...
 
string TransactionTypeScope [get, set]
 The scope of the transaction types. More...
 
string CashGainLossCalculationDate [get, set]
 The option when the Cash Gain Loss to be calulated. Default value: SettlementDate. Available values: Default, SettlementDate, TransactionDate. More...
 
InstrumentEventConfiguration InstrumentEventConfiguration [get, set]
 Gets or Sets InstrumentEventConfiguration More...
 
ResourceId AmortisationRuleSetId [get, set]
 Gets or Sets AmortisationRuleSetId More...
 

Detailed Description

CreateSimplePositionPortfolioRequest

Member Enumeration Documentation

◆ AccountingMethodEnum

Determines the accounting treatment given to the simple position portfolio&#39;s tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency.

Determines the accounting treatment given to the simple position portfolio&#39;s tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency.

Enumerator
Default 

Enum Default for value: Default

AverageCost 

Enum AverageCost for value: AverageCost

FirstInFirstOut 

Enum FirstInFirstOut for value: FirstInFirstOut

LastInFirstOut 

Enum LastInFirstOut for value: LastInFirstOut

HighestCostFirst 

Enum HighestCostFirst for value: HighestCostFirst

LowestCostFirst 

Enum LowestCostFirst for value: LowestCostFirst

ProRateByUnits 

Enum ProRateByUnits for value: ProRateByUnits

ProRateByCost 

Enum ProRateByCost for value: ProRateByCost

ProRateByCostPortfolioCurrency 

Enum ProRateByCostPortfolioCurrency for value: ProRateByCostPortfolioCurrency

IntraDayThenFirstInFirstOut 

Enum IntraDayThenFirstInFirstOut for value: IntraDayThenFirstInFirstOut

LongTermHighestCostFirst 

Enum LongTermHighestCostFirst for value: LongTermHighestCostFirst

LongTermHighestCostFirstPortfolioCurrency 

Enum LongTermHighestCostFirstPortfolioCurrency for value: LongTermHighestCostFirstPortfolioCurrency

HighestCostFirstPortfolioCurrency 

Enum HighestCostFirstPortfolioCurrency for value: HighestCostFirstPortfolioCurrency

LowestCostFirstPortfolioCurrency 

Enum LowestCostFirstPortfolioCurrency for value: LowestCostFirstPortfolioCurrency

MaximumLossMinimumGain 

Enum MaximumLossMinimumGain for value: MaximumLossMinimumGain

MaximumLossMinimumGainPortfolioCurrency 

Enum MaximumLossMinimumGainPortfolioCurrency for value: MaximumLossMinimumGainPortfolioCurrency

Constructor & Destructor Documentation

◆ CreateSimplePositionPortfolioRequest() [1/2]

Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.CreateSimplePositionPortfolioRequest ( )
inlineprotected

Initializes a new instance of the CreateSimplePositionPortfolioRequest class.

◆ CreateSimplePositionPortfolioRequest() [2/2]

Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.CreateSimplePositionPortfolioRequest ( string  displayName = default(string),
string  description = default(string),
string  code = default(string),
DateTimeOffset?  created = default(DateTimeOffset?),
string  baseCurrency = default(string),
ResourceId  corporateActionSourceId = default(ResourceId),
AccountingMethodEnum accountingMethod = default(AccountingMethodEnum?),
List< string >  subHoldingKeys = default(List<string>),
Dictionary< string, Property properties = default(Dictionary<string, Property>),
List< string >  instrumentScopes = default(List<string>),
string  amortisationMethod = default(string),
string  transactionTypeScope = default(string),
string  cashGainLossCalculationDate = default(string),
InstrumentEventConfiguration  instrumentEventConfiguration = default(InstrumentEventConfiguration),
ResourceId  amortisationRuleSetId = default(ResourceId) 
)
inline

Initializes a new instance of the CreateSimplePositionPortfolioRequest class.

Parameters
displayNameThe name of the simple position portfolio. (required).
descriptionA description for the simple position portfolio..
codeThe code of the simple position portfolio. Together with the scope this uniquely identifies the simple position portfolio. (required).
createdThe effective datetime at which to create the simple position portfolio. No holdings can be set on the simple position portfolio before this date. Defaults to the current LUSID system datetime if not specified..
baseCurrencyThe base currency of the simple position portfolio in ISO 4217 currency code format. (required).
corporateActionSourceIdcorporateActionSourceId.
accountingMethodDetermines the accounting treatment given to the simple position portfolio&#39;s tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency..
subHoldingKeysA set of unique transaction properties to group the simple position portfolio&#39;s holdings by, perhaps for strategy tagging. Each property must be from the &#39;Transaction&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Transaction/strategies/quantsignal&#39;. See https://support.lusid.com/knowledgebase/article/KA-01879/en-us for more information..
propertiesA set of unique portfolio properties to add custom data to the simple position portfolio. Each property must be from the &#39;Portfolio&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. Note these properties must be pre-defined..
instrumentScopesThe resolution strategy used to resolve instruments of holdings upserted to this portfolio..
amortisationMethodThe amortisation method used by the portfolio for the calculation. Available values: NoAmortisation, StraightLine, EffectiveYield, StraightLineSettlementDate, EffectiveYieldSettlementDate..
transactionTypeScopeThe scope of the transaction types..
cashGainLossCalculationDateThe option when the Cash Gain Loss to be calulated. Default value: SettlementDate. Available values: Default, SettlementDate, TransactionDate..
instrumentEventConfigurationinstrumentEventConfiguration.
amortisationRuleSetIdamortisationRuleSetId.

Member Function Documentation

◆ Equals() [1/2]

bool Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.Equals ( CreateSimplePositionPortfolioRequest  input)
inline

Returns true if CreateSimplePositionPortfolioRequest instances are equal

Parameters
inputInstance of CreateSimplePositionPortfolioRequest to be compared
Returns
Boolean

◆ Equals() [2/2]

override bool Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.Equals ( object  input)
inline

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ GetHashCode()

override int Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.GetHashCode ( )
inline

Gets the hash code

Returns
Hash code

◆ ToJson()

virtual string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.ToJson ( )
inlinevirtual

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

◆ ToString()

override string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.ToString ( )
inline

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ AccountingMethod

AccountingMethodEnum? Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.AccountingMethod
getset

Determines the accounting treatment given to the simple position portfolio&#39;s tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency.

Determines the accounting treatment given to the simple position portfolio&#39;s tax lots. Default value: AverageCost. Available values: Default, AverageCost, FirstInFirstOut, LastInFirstOut, HighestCostFirst, LowestCostFirst, ProRateByUnits, ProRateByCost, ProRateByCostPortfolioCurrency, IntraDayThenFirstInFirstOut, LongTermHighestCostFirst, LongTermHighestCostFirstPortfolioCurrency, HighestCostFirstPortfolioCurrency, LowestCostFirstPortfolioCurrency, MaximumLossMinimumGain, MaximumLossMinimumGainPortfolioCurrency.

◆ AmortisationMethod

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.AmortisationMethod
getset

The amortisation method used by the portfolio for the calculation. Available values: NoAmortisation, StraightLine, EffectiveYield, StraightLineSettlementDate, EffectiveYieldSettlementDate.

The amortisation method used by the portfolio for the calculation. Available values: NoAmortisation, StraightLine, EffectiveYield, StraightLineSettlementDate, EffectiveYieldSettlementDate.

◆ AmortisationRuleSetId

ResourceId Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.AmortisationRuleSetId
getset

Gets or Sets AmortisationRuleSetId

◆ BaseCurrency

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.BaseCurrency
getset

The base currency of the simple position portfolio in ISO 4217 currency code format.

The base currency of the simple position portfolio in ISO 4217 currency code format.

◆ CashGainLossCalculationDate

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.CashGainLossCalculationDate
getset

The option when the Cash Gain Loss to be calulated. Default value: SettlementDate. Available values: Default, SettlementDate, TransactionDate.

The option when the Cash Gain Loss to be calulated. Default value: SettlementDate. Available values: Default, SettlementDate, TransactionDate.

◆ Code

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.Code
getset

The code of the simple position portfolio. Together with the scope this uniquely identifies the simple position portfolio.

The code of the simple position portfolio. Together with the scope this uniquely identifies the simple position portfolio.

◆ CorporateActionSourceId

ResourceId Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.CorporateActionSourceId
getset

Gets or Sets CorporateActionSourceId

◆ Created

DateTimeOffset? Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.Created
getset

The effective datetime at which to create the simple position portfolio. No holdings can be set on the simple position portfolio before this date. Defaults to the current LUSID system datetime if not specified.

The effective datetime at which to create the simple position portfolio. No holdings can be set on the simple position portfolio before this date. Defaults to the current LUSID system datetime if not specified.

◆ Description

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.Description
getset

A description for the simple position portfolio.

A description for the simple position portfolio.

◆ DisplayName

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.DisplayName
getset

The name of the simple position portfolio.

The name of the simple position portfolio.

◆ InstrumentEventConfiguration

InstrumentEventConfiguration Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.InstrumentEventConfiguration
getset

◆ InstrumentScopes

List<string> Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.InstrumentScopes
getset

The resolution strategy used to resolve instruments of holdings upserted to this portfolio.

The resolution strategy used to resolve instruments of holdings upserted to this portfolio.

◆ Properties

Dictionary<string, Property> Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.Properties
getset

A set of unique portfolio properties to add custom data to the simple position portfolio. Each property must be from the &#39;Portfolio&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. Note these properties must be pre-defined.

A set of unique portfolio properties to add custom data to the simple position portfolio. Each property must be from the &#39;Portfolio&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Portfolio/Manager/Id&#39;. Note these properties must be pre-defined.

◆ SubHoldingKeys

List<string> Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.SubHoldingKeys
getset

A set of unique transaction properties to group the simple position portfolio&#39;s holdings by, perhaps for strategy tagging. Each property must be from the &#39;Transaction&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Transaction/strategies/quantsignal&#39;. See https://support.lusid.com/knowledgebase/article/KA-01879/en-us for more information.

A set of unique transaction properties to group the simple position portfolio&#39;s holdings by, perhaps for strategy tagging. Each property must be from the &#39;Transaction&#39; domain and identified by a key in the format {domain}/{scope}/{code}, for example &#39;Transaction/strategies/quantsignal&#39;. See https://support.lusid.com/knowledgebase/article/KA-01879/en-us for more information.

◆ TransactionTypeScope

string Lusid.Sdk.Model.CreateSimplePositionPortfolioRequest.TransactionTypeScope
getset

The scope of the transaction types.

The scope of the transaction types.


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