Package org.drip.product.creator
Class BondBuilder
java.lang.Object
org.drip.product.creator.BondBuilder
public class BondBuilder
extends java.lang.Object
BondBuilder contains the suite of helper functions for creating simple fixed/floater bonds, user
defined bonds, optionally with custom cash flows and embedded option schedules (European or American). It
also constructs bonds by de-serializing the byte stream.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Product Components/Baskets for Credit, FRA, FX, Govvie, Rates, and Option AssetClasses
- Package = Streams and Products Construction Utilities
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
Fields Modifier and Type Field Description static int
BOND_TYPE_SIMPLE_FIXED
Custom Bond Type Simple Fixedstatic int
BOND_TYPE_SIMPLE_FLOATER
Custom Bond Type Simple Floaterstatic int
BOND_TYPE_SIMPLE_FROM_CF
Custom Bond Type Simple From Cash flows -
Constructor Summary
Constructors Constructor Description BondBuilder()
-
Method Summary
Modifier and Type Method Description static BondComponent
CreateBondFromCF(java.lang.String strName, JulianDate dtEffective, java.lang.String strCurrency, java.lang.String strCreditCurveName, java.lang.String strDayCount, double dblInitialNotional, double dblCouponRate, int iCouponFrequency, JulianDate[] adtPeriodEnd, double[] adblCouponAmount, double[] adblPrincipalAmount, boolean bIsPrincipalPayDown)
Create a bond from custom/user-defined cash flows and coupon conventionsstatic BondComponent
CreateBondFromParams(TreasuryBenchmarks tsyParams, IdentifierSet idParams, CouponSetting cpnParams, FloaterSetting fltParams, QuoteConvention mktConv, CreditSetting crValParams, TerminationSetting cfteParams, BondStream periodParams, NotionalSetting notlParams)
Create the full generic bond object from the complete set of parametersstatic BondComponent
CreateSimpleFixed(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a simple fixed bond from parametersstatic BondComponent
CreateSimpleFixedF(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Fixed Coupon Bond from the First Coupon Date and the other Parametersstatic BondComponent
CreateSimpleFixedFP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Fixed Coupon Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
CreateSimpleFixedP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Fixed Coupon Bond from the Penultimate Coupon Date and the other Parametersstatic BondComponent
CreateSimpleFloater(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a simple floating rate bondstatic BondComponent
CreateSimpleFloaterF(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
CreateSimpleFloaterFP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
CreateSimpleFloaterP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
CreateSimpleOTCIRSFloater(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a Simple OTF Fix Float Floating Rate Bondstatic BondComponent
CreateSimpleOTCIRSFloaterF(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a OTC Fix Float Index Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
CreateSimpleOTCIRSFloaterFP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a OTC Fix Float Index Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
CreateSimpleOTCIRSFloaterP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)
Create a OTC Fix-Float Index Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parametersstatic BondComponent
FixedFPToFloatFP(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatFirstCouponDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)
Construct a Fixed To Float Bond Componentstatic BondComponent
FixedFToFloatF(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatFirstCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)
Construct a Fixed To Float Bond Componentstatic BondComponent
FixedFToFloatP(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)
Construct a Fixed To Float Bond Componentstatic BondComponent
FixedPToFloatF(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatFirstCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)
Construct a Fixed To Float Bond Componentstatic BondComponent
FixedPToFloatP(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)
Construct a Fixed To Float Bond Componentstatic TreasuryComponent
Treasury(java.lang.String strTreasuryCode, JulianDate dtEffective, JulianDate dtMaturity, java.lang.String strCurrency, double dblCoupon, int iFreq, java.lang.String strDayCount)
Creates a Treasury Bond from the ParametersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
BOND_TYPE_SIMPLE_FIXED
public static final int BOND_TYPE_SIMPLE_FIXEDCustom Bond Type Simple Fixed- See Also:
- Constant Field Values
-
BOND_TYPE_SIMPLE_FLOATER
public static final int BOND_TYPE_SIMPLE_FLOATERCustom Bond Type Simple Floater- See Also:
- Constant Field Values
-
BOND_TYPE_SIMPLE_FROM_CF
public static final int BOND_TYPE_SIMPLE_FROM_CFCustom Bond Type Simple From Cash flows- See Also:
- Constant Field Values
-
-
Constructor Details
-
BondBuilder
public BondBuilder()
-
-
Method Details
-
CreateBondFromParams
public static final BondComponent CreateBondFromParams(TreasuryBenchmarks tsyParams, IdentifierSet idParams, CouponSetting cpnParams, FloaterSetting fltParams, QuoteConvention mktConv, CreditSetting crValParams, TerminationSetting cfteParams, BondStream periodParams, NotionalSetting notlParams)Create the full generic bond object from the complete set of parameters- Parameters:
tsyParams
- Bond Treasury ParametersidParams
- Bond Identifier ParameterscpnParams
- Bond Coupon ParametersfltParams
- Bond Floater ParametersmktConv
- Bond Market Quote ConventioncrValParams
- Bond Credit Valuation ParameterscfteParams
- Bond Cash-flow Termination Event ParametersperiodParams
- Bond Period Generation ParametersnotlParams
- Bond Notional Parameters- Returns:
- The Bond object
-
CreateSimpleFixed
public static final BondComponent CreateSimpleFixed(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a simple fixed bond from parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrCreditCurveName
- Credit Curve NamedblCoupon
- Bond Fixed CouponiFreq
- Coupon FrequencystrDayCount
- Bond Coupon Day count conventiondtEffective
- Effective DatedtMaturity
- Maturity DatefsPrincipalOutstanding
- Outstanding Principal schedulefsCoupon
- Bond Coupon Schedule- Returns:
- The Bond Object
-
CreateSimpleFixedFP
public static final BondComponent CreateSimpleFixedFP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Fixed Coupon Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrCreditCurveName
- Credit Curve NamedblCoupon
- Bond Fixed CouponiFreq
- Coupon FrequencystrDayCount
- Bond Coupon Day count conventiondtEffective
- Effective DatedtMaturity
- Maturity DateiFirstCouponDate
- First Coupon DateiPenultimateCouponDate
- Penultimate Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal schedulefsCoupon
- Bond Coupon Schedule- Returns:
- The Bond Object
-
CreateSimpleFixedF
public static final BondComponent CreateSimpleFixedF(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Fixed Coupon Bond from the First Coupon Date and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrCreditCurveName
- Credit Curve NamedblCoupon
- Bond Fixed CouponiFreq
- Coupon FrequencystrDayCount
- Bond Coupon Day count conventiondtEffective
- Effective DatedtMaturity
- Maturity DateiFirstCouponDate
- First Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal schedulefsCoupon
- Bond Coupon Schedule- Returns:
- The Bond Object
-
CreateSimpleFixedP
public static final BondComponent CreateSimpleFixedP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strCreditCurveName, double dblCoupon, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Fixed Coupon Bond from the Penultimate Coupon Date and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrCreditCurveName
- Credit Curve NamedblCoupon
- Bond Fixed CouponiFreq
- Coupon FrequencystrDayCount
- Bond Coupon Day count conventiondtEffective
- Effective DatedtMaturity
- Maturity DateiPenultimateCouponDate
- Penultimate Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal schedulefsCoupon
- Bond Coupon Schedule- Returns:
- The Bond Object
-
CreateSimpleFloater
public static final BondComponent CreateSimpleFloater(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a simple floating rate bond- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DatefsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Bond object
-
CreateSimpleFloaterFP
public static final BondComponent CreateSimpleFloaterFP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DateiFirstCouponDate
- First Coupon DateiPenultimateCouponDate
- Penultimate Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Floating Rate Bond Instance
-
CreateSimpleFloaterF
public static final BondComponent CreateSimpleFloaterF(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DateiFirstCouponDate
- First Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Floating Rate Bond Instance
-
CreateSimpleFloaterP
public static final BondComponent CreateSimpleFloaterP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DateiPenultimateCouponDate
- Penultimate Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Floating Rate Bond Instance
-
CreateBondFromCF
public static final BondComponent CreateBondFromCF(java.lang.String strName, JulianDate dtEffective, java.lang.String strCurrency, java.lang.String strCreditCurveName, java.lang.String strDayCount, double dblInitialNotional, double dblCouponRate, int iCouponFrequency, JulianDate[] adtPeriodEnd, double[] adblCouponAmount, double[] adblPrincipalAmount, boolean bIsPrincipalPayDown)Create a bond from custom/user-defined cash flows and coupon conventions- Parameters:
strName
- Bond NamedtEffective
- Effective DatestrCurrency
- Bond CurrencystrCreditCurveName
- Credit Curve NamestrDayCount
- Coupon Day Count ConventiondblInitialNotional
- The Initial NotionaldblCouponRate
- The Coupon RateiCouponFrequency
- Coupon FrequencyadtPeriodEnd
- Array of Period End DatesadblCouponAmount
- Matching Array of Coupon AmountsadblPrincipalAmount
- Matching Array of Principal AmountsbIsPrincipalPayDown
- Flag indicating whether principal is pay down or outstanding- Returns:
- The Bond object
-
Treasury
public static final TreasuryComponent Treasury(java.lang.String strTreasuryCode, JulianDate dtEffective, JulianDate dtMaturity, java.lang.String strCurrency, double dblCoupon, int iFreq, java.lang.String strDayCount)Creates a Treasury Bond from the Parameters- Parameters:
strTreasuryCode
- Treasury CodestrCurrency
- Bond CurrencydblCoupon
- Bond Fixed CouponiFreq
- Coupon FrequencystrDayCount
- Bond Coupon Day count conventiondtEffective
- Effective DatedtMaturity
- Maturity Date- Returns:
- The Treasury Bond Instance
-
FixedFPToFloatFP
public static final BondComponent FixedFPToFloatFP(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatFirstCouponDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)Construct a Fixed To Float Bond Component- Parameters:
strName
- Bond NamestrCreditCurveName
- Credit Curve NameiEffectiveDate
- Effective DateiFixedStreamEndDate
- Fixed Stream End DateiFixedFirstCouponDate
- Fixed Stream First Coupon DateiFixedPenultimateCouponDate
- Fixed Stream Penultimate Coupon DateiFixedFreq
- Fixed Stream Coupon FrequencydblFixedCoupon
- Fixed Stream Coupon RatestrFixedCouponDC
- Fixed Stream Coupon Day CountstrFixedAccrualDC
- Fixed Stream Accrual Day CountiMaturityDate
- Maturity DateiFloatFirstCouponDate
- Float Stream First Coupon DateiFloatPenultimateCouponDate
- Float Stream Penultimate Coupon DateiFloatFreq
- Float Stream Coupon FrequencydblFloatSpread
- Float Stream SpreadstrFloatIndex
- Float Stream Rate IndexdapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment Parameters- Returns:
- The Bond Component
-
FixedFToFloatF
public static final BondComponent FixedFToFloatF(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatFirstCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)Construct a Fixed To Float Bond Component- Parameters:
strName
- Bond NamestrCreditCurveName
- Credit Curve NameiEffectiveDate
- Effective DateiFixedStreamEndDate
- Fixed Stream End DateiFixedFirstCouponDate
- Fixed Stream First Coupon DateiFixedFreq
- Fixed Stream Coupon FrequencydblFixedCoupon
- Fixed Stream Coupon RatestrFixedCouponDC
- Fixed Stream Coupon Day CountstrFixedAccrualDC
- Fixed Stream Accrual Day CountiMaturityDate
- Maturity DateiFloatFirstCouponDate
- Float Stream First Coupon DateiFloatFreq
- Float Stream Coupon FrequencydblFloatSpread
- Float Stream SpreadstrFloatIndex
- Float Stream Rate IndexdapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment Parameters- Returns:
- The Bond Component
-
FixedFToFloatP
public static final BondComponent FixedFToFloatP(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedFirstCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)Construct a Fixed To Float Bond Component- Parameters:
strName
- Bond NamestrCreditCurveName
- Credit Curve NameiEffectiveDate
- Effective DateiFixedStreamEndDate
- Fixed Stream End DateiFixedFirstCouponDate
- Fixed Stream First Coupon DateiFixedFreq
- Fixed Stream Coupon FrequencydblFixedCoupon
- Fixed Stream Coupon RatestrFixedCouponDC
- Fixed Stream Coupon Day CountstrFixedAccrualDC
- Fixed Stream Accrual Day CountiMaturityDate
- Maturity DateiFloatPenultimateCouponDate
- Float Stream Penultimate Coupon DateiFloatFreq
- Float Stream Coupon FrequencydblFloatSpread
- Float Stream SpreadstrFloatIndex
- Float Stream Rate IndexdapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment Parameters- Returns:
- The Bond Component
-
FixedPToFloatF
public static final BondComponent FixedPToFloatF(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatFirstCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)Construct a Fixed To Float Bond Component- Parameters:
strName
- Bond NamestrCreditCurveName
- Credit Curve NameiEffectiveDate
- Effective DateiFixedStreamEndDate
- Fixed Stream End DateiFixedPenultimateCouponDate
- Fixed Stream Penultimate Coupon DateiFixedFreq
- Fixed Stream Coupon FrequencydblFixedCoupon
- Fixed Stream Coupon RatestrFixedCouponDC
- Fixed Stream Coupon Day CountstrFixedAccrualDC
- Fixed Stream Accrual Day CountiMaturityDate
- Maturity DateiFloatFirstCouponDate
- Float Stream First Coupon DateiFloatFreq
- Float Stream Coupon FrequencydblFloatSpread
- Float Stream SpreadstrFloatIndex
- Float Stream Rate IndexdapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment Parameters- Returns:
- The Bond Component
-
FixedPToFloatP
public static final BondComponent FixedPToFloatP(java.lang.String strName, java.lang.String strCreditCurveName, int iEffectiveDate, int iFixedStreamEndDate, int iFixedPenultimateCouponDate, int iFixedFreq, double dblFixedCoupon, java.lang.String strFixedCouponDC, java.lang.String strFixedAccrualDC, int iMaturityDate, int iFloatPenultimateCouponDate, int iFloatFreq, double dblFloatSpread, java.lang.String strFloatIndex, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart)Construct a Fixed To Float Bond Component- Parameters:
strName
- Bond NamestrCreditCurveName
- Credit Curve NameiEffectiveDate
- Effective DateiFixedStreamEndDate
- Fixed Stream End DateiFixedPenultimateCouponDate
- Fixed Stream Penultimate Coupon DateiFixedFreq
- Fixed Stream Coupon FrequencydblFixedCoupon
- Fixed Stream Coupon RatestrFixedCouponDC
- Fixed Stream Coupon Day CountstrFixedAccrualDC
- Fixed Stream Accrual Day CountiMaturityDate
- Maturity DateiFloatPenultimateCouponDate
- Float Stream Penultimate Coupon DateiFloatFreq
- Float Stream Coupon FrequencydblFloatSpread
- Float Stream SpreadstrFloatIndex
- Float Stream Rate IndexdapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment Parameters- Returns:
- The Bond Component
-
CreateSimpleOTCIRSFloater
public static final BondComponent CreateSimpleOTCIRSFloater(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a Simple OTF Fix Float Floating Rate Bond- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DatefsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Bond object
-
CreateSimpleOTCIRSFloaterFP
public static final BondComponent CreateSimpleOTCIRSFloaterFP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a OTC Fix Float Index Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DateiFirstCouponDate
- First Coupon DateiPenultimateCouponDate
- Penultimate Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Floating Rate Bond Instance
-
CreateSimpleOTCIRSFloaterF
public static final BondComponent CreateSimpleOTCIRSFloaterF(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iFirstCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a OTC Fix Float Index Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DateiFirstCouponDate
- First Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Floating Rate Bond Instance
-
CreateSimpleOTCIRSFloaterP
public static final BondComponent CreateSimpleOTCIRSFloaterP(java.lang.String strName, java.lang.String strCurrency, java.lang.String strRateIndex, java.lang.String strCreditCurveName, double dblSpread, int iFreq, java.lang.String strDayCount, JulianDate dtEffective, JulianDate dtMaturity, int iPenultimateCouponDate, DateAdjustParams dapPay, DateAdjustParams dapReset, DateAdjustParams dapMaturity, DateAdjustParams dapEffective, DateAdjustParams dapPeriodEnd, DateAdjustParams dapAccrualEnd, DateAdjustParams dapPeriodStart, DateAdjustParams dapAccrualStart, Array2D fsPrincipalOutstanding, Array2D fsCoupon)Create a OTC Fix-Float Index Floating Rate Bond from the First and Penultimate Coupon Dates, and the other Parameters- Parameters:
strName
- Bond NamestrCurrency
- Bond CurrencystrRateIndex
- Floating Rate IndexstrCreditCurveName
- Credit Curve NamedblSpread
- Bond Floater SpreadiFreq
- Coupon FrequencystrDayCount
- Coupon Day Count ConventiondtEffective
- Effective datedtMaturity
- Maturity DateiPenultimateCouponDate
- Penultimate Coupon DatedapPay
- Pay Date Adjustment ParametersdapReset
- Reset Date Adjustment ParametersdapMaturity
- Maturity Date Adjustment ParametersdapEffective
- Effective Date Adjustment ParametersdapPeriodEnd
- Period End Date Adjustment ParametersdapAccrualEnd
- Accrual Date Adjustment ParametersdapPeriodStart
- Period Start Date Adjustment ParametersdapAccrualStart
- Accrual Start Date Adjustment ParametersfsPrincipalOutstanding
- Outstanding Principal SchedulefsCoupon
- Coupon Schedule- Returns:
- The Floating Rate Bond Instance
-