LUSID C# SDK
|
LUSID representation of a Contract for Difference. More...
Public Member Functions | |
ContractForDifference (DateTimeOffset startDate=default(DateTimeOffset), DateTimeOffset maturityDate=default(DateTimeOffset), string code=default(string), decimal contractSize=default(decimal), string payCcy=default(string), decimal referenceRate=default(decimal), string type=default(string), string underlyingCcy=default(string), string underlyingIdentifier=default(string), InstrumentTypeEnum instrumentType=default(InstrumentTypeEnum)) | |
Initializes a new instance of the ContractForDifference class. More... | |
override string | ToString () |
Returns the string presentation of the object More... | |
override 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 (ContractForDifference input) |
Returns true if ContractForDifference instances are equal More... | |
override int | GetHashCode () |
Gets the hash code More... | |
![]() | |
LusidInstrument (InstrumentTypeEnum instrumentType=default(InstrumentTypeEnum)) | |
Initializes a new instance of the LusidInstrument class. More... | |
override string | ToString () |
Returns the string presentation of the object More... | |
override bool | Equals (object input) |
Returns true if objects are equal More... | |
bool | Equals (LusidInstrument input) |
Returns true if LusidInstrument instances are equal More... | |
override int | GetHashCode () |
Gets the hash code More... | |
Protected Member Functions | |
ContractForDifference () | |
Initializes a new instance of the ContractForDifference class. More... | |
IEnumerable< System.ComponentModel.DataAnnotations.ValidationResult > | BaseValidate (ValidationContext validationContext) |
To validate all properties of the instance More... | |
![]() | |
LusidInstrument () | |
Initializes a new instance of the LusidInstrument class. More... | |
IEnumerable< System.ComponentModel.DataAnnotations.ValidationResult > | BaseValidate (ValidationContext validationContext) |
To validate all properties of the instance More... | |
Properties | |
DateTimeOffset | StartDate [get, set] |
The start date of the CFD. More... | |
DateTimeOffset | MaturityDate [get, set] |
The maturity date for the CFD. If CFDType is Futures, this should be set to be the maturity date of the underlying future. If CFDType is Cash, this should not be set. More... | |
string | Code [get, set] |
The code of the underlying. More... | |
decimal | ContractSize [get, set] |
The size of the CFD contract, this should represent the total number of stocks that the CFD represents. More... | |
string | PayCcy [get, set] |
The currency that this CFD pays out, this can be different to the UnderlyingCcy. More... | |
decimal | ReferenceRate [get, set] |
The reference rate of the CFD, this can be set to 0 but not negative values. This field is optional, if not set it will default to 0. More... | |
string | Type [get, set] |
The type of CFD. Supported string (enumeration) values are: [Cash, Futures]. More... | |
string | UnderlyingCcy [get, set] |
The currency of the underlying More... | |
string | UnderlyingIdentifier [get, set] |
External market codes and identifiers for the CFD, e.g. RIC. Supported string (enumeration) values are: [LusidInstrumentId, Isin, Sedol, Cusip, ClientInternal, Figi, RIC, QuotePermId, REDCode, BBGId, ICECode]. More... | |
![]() | |
InstrumentTypeEnum | InstrumentType [get, set] |
The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan More... | |
LUSID representation of a Contract for Difference.
|
inlineprotected |
Initializes a new instance of the ContractForDifference class.
|
inline |
Initializes a new instance of the ContractForDifference class.
startDate | The start date of the CFD. (required). |
maturityDate | The maturity date for the CFD. If CFDType is Futures, this should be set to be the maturity date of the underlying future. If CFDType is Cash, this should not be set.. |
code | The code of the underlying. (required). |
contractSize | The size of the CFD contract, this should represent the total number of stocks that the CFD represents. (required). |
payCcy | The currency that this CFD pays out, this can be different to the UnderlyingCcy. (required). |
referenceRate | The reference rate of the CFD, this can be set to 0 but not negative values. This field is optional, if not set it will default to 0.. |
type | The type of CFD. Supported string (enumeration) values are: [Cash, Futures]. (required). |
underlyingCcy | The currency of the underlying (required). |
underlyingIdentifier | External market codes and identifiers for the CFD, e.g. RIC. Supported string (enumeration) values are: [LusidInstrumentId, Isin, Sedol, Cusip, ClientInternal, Figi, RIC, QuotePermId, REDCode, BBGId, ICECode]. (required). |
instrumentType | The available values are: QuotedSecurity, InterestRateSwap, FxForward, Future, ExoticInstrument, FxOption, CreditDefaultSwap, InterestRateSwaption, Bond, EquityOption, FixedLeg, FloatingLeg, BespokeCashFlowsLeg, Unknown, TermDeposit, ContractForDifference, EquitySwap, CashPerpetual, CapFloor, CashSettled, CdsIndex, Basket, FundingLeg, FxSwap, ForwardRateAgreement, SimpleInstrument, Repo, Equity, ExchangeTradedOption, ReferenceInstrument, ComplexBond, InflationLinkedBond, InflationSwap, SimpleCashFlowLoan (required) (default to "ContractForDifference"). |
|
inlineprotected |
To validate all properties of the instance
validationContext | Validation context |
|
inline |
Returns true if objects are equal
input | Object to be compared |
|
inline |
Returns true if ContractForDifference instances are equal
input | Instance of ContractForDifference to be compared |
|
inline |
Gets the hash code
|
inlinevirtual |
Returns the JSON string presentation of the object
Reimplemented from Lusid.Sdk.Model.LusidInstrument.
|
inline |
Returns the string presentation of the object
|
getset |
The code of the underlying.
The code of the underlying.
|
getset |
The size of the CFD contract, this should represent the total number of stocks that the CFD represents.
The size of the CFD contract, this should represent the total number of stocks that the CFD represents.
|
getset |
The maturity date for the CFD. If CFDType is Futures, this should be set to be the maturity date of the underlying future. If CFDType is Cash, this should not be set.
The maturity date for the CFD. If CFDType is Futures, this should be set to be the maturity date of the underlying future. If CFDType is Cash, this should not be set.
|
getset |
The currency that this CFD pays out, this can be different to the UnderlyingCcy.
The currency that this CFD pays out, this can be different to the UnderlyingCcy.
|
getset |
The reference rate of the CFD, this can be set to 0 but not negative values. This field is optional, if not set it will default to 0.
The reference rate of the CFD, this can be set to 0 but not negative values. This field is optional, if not set it will default to 0.
|
getset |
The start date of the CFD.
The start date of the CFD.
|
getset |
The type of CFD. Supported string (enumeration) values are: [Cash, Futures].
The type of CFD. Supported string (enumeration) values are: [Cash, Futures].
|
getset |
The currency of the underlying
The currency of the underlying
|
getset |
External market codes and identifiers for the CFD, e.g. RIC. Supported string (enumeration) values are: [LusidInstrumentId, Isin, Sedol, Cusip, ClientInternal, Figi, RIC, QuotePermId, REDCode, BBGId, ICECode].
External market codes and identifiers for the CFD, e.g. RIC. Supported string (enumeration) values are: [LusidInstrumentId, Isin, Sedol, Cusip, ClientInternal, Figi, RIC, QuotePermId, REDCode, BBGId, ICECode].