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

LUSID representation of a Vanilla Fixed Rate Bond. More...

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

Public Member Functions

 Bond (DateTimeOffset startDate=default(DateTimeOffset), DateTimeOffset maturityDate=default(DateTimeOffset), string domCcy=default(string), FlowConventions flowConventions=default(FlowConventions), decimal principal=default(decimal), decimal couponRate=default(decimal), Dictionary< string, string > identifiers=default(Dictionary< string, string >), int? exDividendDays=default(int?), DateTimeOffset? initialCouponDate=default(DateTimeOffset?), DateTimeOffset? firstCouponPayDate=default(DateTimeOffset?), string calculationType=default(string), List< RoundingConvention > roundingConventions=default(List< RoundingConvention >), InstrumentTypeEnum instrumentType=default(InstrumentTypeEnum))
 Initializes a new instance of the Bond 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 (Bond input)
 Returns true if Bond instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 
- Public Member Functions inherited from Lusid.Sdk.Model.LusidInstrument
 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

 Bond ()
 Initializes a new instance of the Bond class. More...
 
- Protected Member Functions inherited from Lusid.Sdk.Model.LusidInstrument
 LusidInstrument ()
 Initializes a new instance of the LusidInstrument class. More...
 

Properties

DateTimeOffset StartDate [get, set]
 The Start date of the bond, this is normally when accrual of the first coupon begins. More...
 
DateTimeOffset MaturityDate [get, set]
 The Maturity date of the bond, this is when the last coupon accrual period ends. Note that while most bonds have their last payment on this date there are some cases where the final payment is the next working day. More...
 
string DomCcy [get, set]
 The domestic currency of the instrument. This should be the same as the Currency set on the FlowConventions. More...
 
FlowConventions FlowConventions [get, set]
 Gets or Sets FlowConventions More...
 
decimal Principal [get, set]
 The face-value or principal for the bond at outset. This might be reduced through its lifetime in the event of amortisation or similar. More...
 
decimal CouponRate [get, set]
 Simple coupon rate. More...
 
Dictionary< string, string > Identifiers [get, set]
 External market codes and identifiers for the bond, e.g. ISIN. More...
 
int ExDividendDays [get, set]
 Optional. Number of calendar days in the ex-dividend period, if the settlement date falls in the ex-dividend period then the coupon paid is zero and the accrued interest is negative. If set, this must be a non-negative number. If not set, or set to 0, than there is no ex-dividend period. More...
 
DateTimeOffset InitialCouponDate [get, set]
 Optional. If set, this is the date at which the bond begins to accrue interest, if not set then the bond begins to accrue on the StartDate. More...
 
DateTimeOffset FirstCouponPayDate [get, set]
 The date that the first coupon of the bond is paid. This is required for bonds that have a long first coupon or short first coupon. The first coupon pay date is used as an anchor to compare with the start date and determine if this is a long/short coupon period. More...
 
string CalculationType [get, set]
 The calculation type applied to the bond coupon amount. This is required for bonds that have a particular type of computing the period coupon, such as simple compounding, irregular coupons etc. The default CalculationType is &#x60;Standard&#x60;, which returns a coupon amount equal to Principal * Coupon Rate / Coupon Frequency. Coupon Frequency is 12M / Payment Frequency. Payment Frequency can be 1M, 3M, 6M, 12M etc. So Coupon Frequency can be 12, 4, 2, 1 respectively. Supported string (enumeration) values are: [Standard, DayCountCoupon, NoCalculationFloater, BrazilFixedCoupon]. More...
 
List< RoundingConventionRoundingConventions [get, set]
 Rounding conventions for analytics, if any. More...
 
- Properties inherited from Lusid.Sdk.Model.LusidInstrument
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...
 

Additional Inherited Members

- Public Types inherited from Lusid.Sdk.Model.LusidInstrument
enum  InstrumentTypeEnum {
  InstrumentTypeEnum.QuotedSecurity = 1, InstrumentTypeEnum.InterestRateSwap = 2, InstrumentTypeEnum.FxForward = 3, InstrumentTypeEnum.Future = 4,
  InstrumentTypeEnum.ExoticInstrument = 5, InstrumentTypeEnum.FxOption = 6, InstrumentTypeEnum.CreditDefaultSwap = 7, InstrumentTypeEnum.InterestRateSwaption = 8,
  InstrumentTypeEnum.Bond = 9, InstrumentTypeEnum.EquityOption = 10, InstrumentTypeEnum.FixedLeg = 11, InstrumentTypeEnum.FloatingLeg = 12,
  InstrumentTypeEnum.BespokeCashFlowsLeg = 13, InstrumentTypeEnum.Unknown = 14, InstrumentTypeEnum.TermDeposit = 15, InstrumentTypeEnum.ContractForDifference = 16,
  InstrumentTypeEnum.EquitySwap = 17, InstrumentTypeEnum.CashPerpetual = 18, InstrumentTypeEnum.CapFloor = 19, InstrumentTypeEnum.CashSettled = 20,
  InstrumentTypeEnum.CdsIndex = 21, InstrumentTypeEnum.Basket = 22, InstrumentTypeEnum.FundingLeg = 23, InstrumentTypeEnum.FxSwap = 24,
  InstrumentTypeEnum.ForwardRateAgreement = 25, InstrumentTypeEnum.SimpleInstrument = 26, InstrumentTypeEnum.Repo = 27, InstrumentTypeEnum.Equity = 28,
  InstrumentTypeEnum.ExchangeTradedOption = 29, InstrumentTypeEnum.ReferenceInstrument = 30, InstrumentTypeEnum.ComplexBond = 31, InstrumentTypeEnum.InflationLinkedBond = 32,
  InstrumentTypeEnum.InflationSwap = 33, InstrumentTypeEnum.SimpleCashFlowLoan = 34
}
 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...
 

Detailed Description

LUSID representation of a Vanilla Fixed Rate Bond.

Constructor & Destructor Documentation

◆ Bond() [1/2]

Lusid.Sdk.Model.Bond.Bond ( )
inlineprotected

Initializes a new instance of the Bond class.

◆ Bond() [2/2]

Lusid.Sdk.Model.Bond.Bond ( DateTimeOffset  startDate = default(DateTimeOffset),
DateTimeOffset  maturityDate = default(DateTimeOffset),
string  domCcy = default(string),
FlowConventions  flowConventions = default(FlowConventions),
decimal  principal = default(decimal),
decimal  couponRate = default(decimal),
Dictionary< string, string >  identifiers = default(Dictionary<string, string>),
int?  exDividendDays = default(int?),
DateTimeOffset?  initialCouponDate = default(DateTimeOffset?),
DateTimeOffset?  firstCouponPayDate = default(DateTimeOffset?),
string  calculationType = default(string),
List< RoundingConvention roundingConventions = default(List<RoundingConvention>),
InstrumentTypeEnum  instrumentType = default(InstrumentTypeEnum) 
)
inline

Initializes a new instance of the Bond class.

Parameters
startDateThe Start date of the bond, this is normally when accrual of the first coupon begins. (required).
maturityDateThe Maturity date of the bond, this is when the last coupon accrual period ends. Note that while most bonds have their last payment on this date there are some cases where the final payment is the next working day. (required).
domCcyThe domestic currency of the instrument. This should be the same as the Currency set on the FlowConventions. (required).
flowConventionsflowConventions (required).
principalThe face-value or principal for the bond at outset. This might be reduced through its lifetime in the event of amortisation or similar. (required).
couponRateSimple coupon rate. (required).
identifiersExternal market codes and identifiers for the bond, e.g. ISIN..
exDividendDaysOptional. Number of calendar days in the ex-dividend period, if the settlement date falls in the ex-dividend period then the coupon paid is zero and the accrued interest is negative. If set, this must be a non-negative number. If not set, or set to 0, than there is no ex-dividend period..
initialCouponDateOptional. If set, this is the date at which the bond begins to accrue interest, if not set then the bond begins to accrue on the StartDate..
firstCouponPayDateThe date that the first coupon of the bond is paid. This is required for bonds that have a long first coupon or short first coupon. The first coupon pay date is used as an anchor to compare with the start date and determine if this is a long/short coupon period..
calculationTypeThe calculation type applied to the bond coupon amount. This is required for bonds that have a particular type of computing the period coupon, such as simple compounding, irregular coupons etc. The default CalculationType is &#x60;Standard&#x60;, which returns a coupon amount equal to Principal * Coupon Rate / Coupon Frequency. Coupon Frequency is 12M / Payment Frequency. Payment Frequency can be 1M, 3M, 6M, 12M etc. So Coupon Frequency can be 12, 4, 2, 1 respectively. Supported string (enumeration) values are: [Standard, DayCountCoupon, NoCalculationFloater, BrazilFixedCoupon]..
roundingConventionsRounding conventions for analytics, if any..
instrumentTypeThe 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 "Bond").

Member Function Documentation

◆ Equals() [1/2]

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

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ Equals() [2/2]

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

Returns true if Bond instances are equal

Parameters
inputInstance of Bond to be compared
Returns
Boolean

◆ GetHashCode()

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

Gets the hash code

Returns
Hash code

◆ ToJson()

override string Lusid.Sdk.Model.Bond.ToJson ( )
inlinevirtual

Returns the JSON string presentation of the object

Returns
JSON string presentation of the object

Reimplemented from Lusid.Sdk.Model.LusidInstrument.

◆ ToString()

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

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ CalculationType

string Lusid.Sdk.Model.Bond.CalculationType
getset

The calculation type applied to the bond coupon amount. This is required for bonds that have a particular type of computing the period coupon, such as simple compounding, irregular coupons etc. The default CalculationType is &#x60;Standard&#x60;, which returns a coupon amount equal to Principal * Coupon Rate / Coupon Frequency. Coupon Frequency is 12M / Payment Frequency. Payment Frequency can be 1M, 3M, 6M, 12M etc. So Coupon Frequency can be 12, 4, 2, 1 respectively. Supported string (enumeration) values are: [Standard, DayCountCoupon, NoCalculationFloater, BrazilFixedCoupon].

The calculation type applied to the bond coupon amount. This is required for bonds that have a particular type of computing the period coupon, such as simple compounding, irregular coupons etc. The default CalculationType is &#x60;Standard&#x60;, which returns a coupon amount equal to Principal * Coupon Rate / Coupon Frequency. Coupon Frequency is 12M / Payment Frequency. Payment Frequency can be 1M, 3M, 6M, 12M etc. So Coupon Frequency can be 12, 4, 2, 1 respectively. Supported string (enumeration) values are: [Standard, DayCountCoupon, NoCalculationFloater, BrazilFixedCoupon].

◆ CouponRate

decimal Lusid.Sdk.Model.Bond.CouponRate
getset

Simple coupon rate.

Simple coupon rate.

◆ DomCcy

string Lusid.Sdk.Model.Bond.DomCcy
getset

The domestic currency of the instrument. This should be the same as the Currency set on the FlowConventions.

The domestic currency of the instrument. This should be the same as the Currency set on the FlowConventions.

◆ ExDividendDays

int Lusid.Sdk.Model.Bond.ExDividendDays
getset

Optional. Number of calendar days in the ex-dividend period, if the settlement date falls in the ex-dividend period then the coupon paid is zero and the accrued interest is negative. If set, this must be a non-negative number. If not set, or set to 0, than there is no ex-dividend period.

Optional. Number of calendar days in the ex-dividend period, if the settlement date falls in the ex-dividend period then the coupon paid is zero and the accrued interest is negative. If set, this must be a non-negative number. If not set, or set to 0, than there is no ex-dividend period.

◆ FirstCouponPayDate

DateTimeOffset Lusid.Sdk.Model.Bond.FirstCouponPayDate
getset

The date that the first coupon of the bond is paid. This is required for bonds that have a long first coupon or short first coupon. The first coupon pay date is used as an anchor to compare with the start date and determine if this is a long/short coupon period.

The date that the first coupon of the bond is paid. This is required for bonds that have a long first coupon or short first coupon. The first coupon pay date is used as an anchor to compare with the start date and determine if this is a long/short coupon period.

◆ FlowConventions

FlowConventions Lusid.Sdk.Model.Bond.FlowConventions
getset

Gets or Sets FlowConventions

◆ Identifiers

Dictionary<string, string> Lusid.Sdk.Model.Bond.Identifiers
getset

External market codes and identifiers for the bond, e.g. ISIN.

External market codes and identifiers for the bond, e.g. ISIN.

◆ InitialCouponDate

DateTimeOffset Lusid.Sdk.Model.Bond.InitialCouponDate
getset

Optional. If set, this is the date at which the bond begins to accrue interest, if not set then the bond begins to accrue on the StartDate.

Optional. If set, this is the date at which the bond begins to accrue interest, if not set then the bond begins to accrue on the StartDate.

◆ MaturityDate

DateTimeOffset Lusid.Sdk.Model.Bond.MaturityDate
getset

The Maturity date of the bond, this is when the last coupon accrual period ends. Note that while most bonds have their last payment on this date there are some cases where the final payment is the next working day.

The Maturity date of the bond, this is when the last coupon accrual period ends. Note that while most bonds have their last payment on this date there are some cases where the final payment is the next working day.

◆ Principal

decimal Lusid.Sdk.Model.Bond.Principal
getset

The face-value or principal for the bond at outset. This might be reduced through its lifetime in the event of amortisation or similar.

The face-value or principal for the bond at outset. This might be reduced through its lifetime in the event of amortisation or similar.

◆ RoundingConventions

List<RoundingConvention> Lusid.Sdk.Model.Bond.RoundingConventions
getset

Rounding conventions for analytics, if any.

Rounding conventions for analytics, if any.

◆ StartDate

DateTimeOffset Lusid.Sdk.Model.Bond.StartDate
getset

The Start date of the bond, this is normally when accrual of the first coupon begins.

The Start date of the bond, this is normally when accrual of the first coupon begins.


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