Bonds — functions
Zero Coupon Bond
1. GIA_ Bonds_ ZeroCoupon_ PriceFromYield
(FaceValue, MDate, DR, Yield, SDate, Comp, Days)
Returns the price of a zero coupon bond, given a single interest rate for discounting future cash flows.
2. GIA_ Bonds_ ZeroCoupon_ PriceFromCurve
(FaceValue, MDate, DR, DCurveDates, DCurveRates, SDate, Comp, Days, Interp)
Returns the price of a zero coupon bond, given an interest rate curve for discounting future cash flows.
3. GIA_ Bonds_ ZeroCoupon_ RiskFromYield
(FaceValue, MDate, DR, Yield, SDate, Comp, Days, RM)
Returns the risk measures (DV01, Macaulay Duration, Modified Duration, Convexity) of a zero coupon bond, given a single interest rate for discounting future cash flows.
4. GIA_ Bonds_ ZeroCoupon_ RiskFromCurve
(FaceValue, MDate, DR, DCurveDates, DCurveRates, SDate, Comp, Days, Interp, RM)
Returns the risk measures (DV01, MacaulayDuration, ModifiedDuration, Convexity) of a zero coupon bond, given an interest rate curve for discounting future cash flows.
5. GIA_ Bonds_ ZeroCoupon_ YTM
(FaceValue, MDate, DR, SDate, Comp, Days, Price)
Returns the yield to maturity of a zero coupon bond, given its price.
Fixed Coupon Bond
6. GIA_ Bonds_ Fixed_ PriceFromYield
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, Yield, SDate, Comp, Days, PriceType)
Returns the price (Clean, Dirty) of a bond generating periodic fixed coupon payments, given a single interest rate for discounting future cash flows.
7. GIA_ Bonds_ Fixed_ PriceFromCurve
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, DCurveDates, DCurveRates, SDate, Comp, Days, Interp, PriceType)
Returns the price (Clean, Dirty) of a bond generating periodic fixed coupon payments, given an interest rate curve for discounting future cash flows.
8. GIA_ Bonds_ Fixed_ AccruedInterest
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, SDate)
Returns the accrued interest of a bond generating periodic fixed coupon payments, given all bond’s terms.
9. GIA_ Bonds_ Fixed_ AccruedInterest FromCouponAmount
(PrevCDate, NextCDate, NextCAmount, CFr, DaysCoupon, ExDays, SDate)
Returns the accrued interest of a bond generating periodic fixed coupon payments, given the next coupon amount.
10. GIA_ Bonds_ Fixed_ RiskFromYield
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, Yield, SDate, Comp, Days, RM)
Returns the risk measures (DV01, MacaulayDuration, Modified Duration, Convexity) of a bond generating periodic fixed coupon payments, given a single interest rate for discounting future cash flows.
11. GIA_ Bonds_ Fixed_ RiskFromCurve
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, DCurveDates, DCurveRates, SDate, Comp, Days, Interp, RM)
Returns the risk measures (DV01, MacaulayDuration, Modified Duration, Convexity) of a bond generating periodic fixed coupon payments, given an interest rate curve for discounting future cash flows.
12. GIA_ Bonds_ Fixed_ RiskFromPrice
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, Price, SDate, Comp, Days, PriceType, RM)
Returns the risk measures (DV01, MacaulayDuration, Modified Duration, Convexity) of a bond generating periodic fixed coupon payments, given its price.
13. GIA_ Bonds_ Fixed_ YTM
(FaceValue, CRate, CFr, FirstAccrDate, MDate, DR, DaysCoupon, SDate, Comp, Days, Price, PriceType)
Returns the yield to maturity of a bond generating periodic fixed coupon payments, given its price.
Fixed Coupon Amortizing Bond
14. GIA_ Bonds_ FixedAmort_ PriceFromYield
(FaceValue, CRate, CFr, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, ExDays, Yield, SDate, Comp, Days, PriceType)
Returns the price (Clean, Dirty) of an amortizing bond generating periodic principal and fixed coupon payments, given a single interest rate for discounting future cash flows.
15. GIA_ Bonds_ FixedAmort_ PriceFromCurve
(FaceValue, CRate, CFr, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, ExDays, DCurveDates, DCurveRates, SDate, Comp, Days, Interp, PriceType)
Returns the price (Clean, Dirty) of an amortizing bond generating periodic principal and fixed coupon payments, given an interest rate curve for discounting future cash flows.
16. GIA_ Bonds_ FixedAmort_ AccruedInterest
(FaceValue, CRate, CFr, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, ExDays, SDate)
Returns the accrued interest of an amortizing bond generating periodic principal and fixed coupon payments.
17. GIA_ Bonds_ FixedAmort_ RiskFromYield
(FaceValue, CRate, CFr, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, Yield, SDate, Comp, Days, RM)
Returns the risk measures (DV01, Macaulay Duration, Modified Duration, Convexity) of an amortizing bond generating periodic fixed principal and coupon payments, given a single interest rate for discounting future cash flows.
18. GIA_ Bonds_ FixedAmort_ RiskFromCurve
(FaceValue, CRate, CFr, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, DCurveDates, DCurveRates, SDate, Comp, Days, Interp, RM)
Returns the risk measures (DV01, Macaulay Duration, Modified Duration, Convexity) of an amortizing bond generating periodic fixed principal and coupon payments, given an interest rate curve for discounting future cash flows.
19. GIA_ Bonds_ FixedAmort_ YTM
(FaceValue, CRate, CFr, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, SDate, Comp, Days, Price, PriceType)
Returns the yield to maturity of an amortizing bond generating periodic principal and fixed coupon payments, given its price.
Floating Coupon Bond
20. GIA_ Bonds_ Floater_ Price
(FaceValue, CFr, Sp, LR, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, DCurveDates, DCurveRates, FCurveDates, FCurveRates, SDate, Comp, Days, Interp, PriceType)
Returns the price (Clean, Dirty) of a bond generating periodic floating coupon payments, given interest rate curves for discounting future cash flows and for calculating forward rates.
21. GIA_ Bonds_ Floater_ AccruedInterest
(FaceValue, CFr, Sp, LR, FirstAccrDate, MDate, DR, DaysCoupon, ExDays, SDate)
Returns the accrued interest of a bond generating periodic floating coupon payments.
22. GIA_ Bonds_ Floater_ Risk
(FaceValue, CFr, Sp, LR, FirstAccrDate, MDate, DR, DaysCoupon, DCurveDates, DCurveRates, FCurveDates, FCurveRates, SDate, Comp, Days, Interp, RM)
Returns the risk measures (DV01, MacaulayDuration, Modified Duration, Convexity) of a bond generating periodic floating coupon payments, given interest rate curves for discounting future cash flows and for calculating forward rates.
23. GIA_ Bonds_ Floater_ LastResetDate
(MDate, FirstAccrDate, CFr, DR, SDate)
Returns the last reset date of the reference interest rate.
Floating Coupon Amortizing Bond
24. GIA_ Bonds_ FloaterAmort_ Price
(MDate, FirstAccrDate, CFr, DR, SDate)
Returns the last reset date of the reference interest rate.
25. GIA_ Bonds_ FloaterAmort_ AccruedInterest
(FaceValue, CFr, Sp, LR, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, ExDays, SDate)
Returns the accrued interest of an amortizing bond generating periodic principal and floating coupon payments.
26. GIA_ Bonds_ FloaterAmort_ Risk
(FaceValue, CFr, Sp, LR, FirstAccrDate, FPPD, FrPP, PPP, MDate, DR, DaysCoupon, DCurveDates, DCurveRates, FCurveDates, FCurveRates, SDate, Comp, Days, Interp, RM)
Returns the risk measures (DV01, Macaulay Duration, Modified Duration, Convexity) of an amortizing bond generating periodic principal and floating coupon payments, given an interest rate curve for discounting future cash flows and an interest rate curve for calculating forward rates.
27. GIA_ Bonds_ FloaterAmort_ LastResetDate
(MDate, FirstAccrDate, CFr, DR, SDate)
Returns the last reset date of the reference interest rate.
Convertible Bond
28. GIA_ Bonds_ Convertible_ Price
(FaceValue, ConversionRatio, IDate, MDate, CRate, CFr, FirstCouponDate, LastCouponDate, FPPD, FrPP, BCPI, S, Vol, DividendYield, NominalInterestRate, InflationInterestRate, CreditSpread, LCPI, SDate, Comp, Days, Steps)
Returns the price of a convertible bond generating periodic principal and floating coupon payments, given a nominal interest rate and real interest rate for discounting future cash flows.
Additional Functions
13. GIA_ Bonds_ Additional_ BloombergTime BasisConvertor
(BloombergDays)
Converts the time basis notation in Bloomberg to the one in GIA.
30. GIA_ Bonds_ Additional_ CouponNumberConvertor
(CouponsPerYear)
Converts the number of coupons per year to coupon frequency in GIA (1, 2, 4 and 12 become Annual, SemiAnnual, Quarterly and Monthly, accordingly).
