Learn R Programming

RQuantLib (version 0.4.24)

Enum: Documentation for parameters

Description

Reference for parameters when constructing a bond

Value

None

Arguments

DayCounter

an int value

0Actual360
1Actual365Fixed
2ActualActual (NB: soft deprecated, defaults to ActualActual.ISDA)
3ActualBusiness252
4OneDayCounter
5SimpleDayCounter
6Thirty360 (NB: soft deprecated, defaults to Thirty360.BondBasis)
7Actual365Fixed.NoLeap (NB: Actual365NoLeap if QuantLib version < 1.16)
8ActualActual.ISMA
9ActualActual.Bond
10ActualActual.ISDA
11ActualActual.Historical
12ActualActual.AFB
13ActualActual.Euro
14Thirty360.USA
15Thirty360.BondBasis
16Thirty360.European
17Thirty360.EurobondBasis
18Thirty360.Italian
19Thirty360.German

businessDayConvention

an int value

0Following
1ModifiedFollowing
2Preceding
3ModifiedPreceding
4Unadjusted
5HalfMonthModifiedFollowing
6Nearest
anything elseUnadjusted

compounding

an int value

0Simple
1Compounded
2Continuous
3SimpleThenCompounded

period or frequency

an int value

-1NoFrequency
0Once
1Annual
2Semiannual
3EveryFourthMonth
4Quarterly
6BiMonthtly
12Monthly
13EveryFourthWeek
26BiWeekly
52Weekly
365Daily
anything elseOtherFrequency

date generation

an int value to specify date generation rule

0Backward
1Forward
2Zero
3ThirdWednesday
4Twentieth
5TwentiethIMM
6OldCDS
7CDS
anything elseTwentiethIMM

durationType

an int value to specify duration type

0Simple
1Macaulay
2Modified

Author

Khanh Nguyen knguyen@cs.umb.edu

Details

Please see any decent Finance textbook for background reading, and the QuantLib documentation for details on the QuantLib implementation, particularly the datetime classes.

References

https://www.quantlib.org/ for details on QuantLib.