Calculate Spanish government bond accrued interest
Introduced in release: 1.0 Component: Non-US (developed mkts) Purpose:
Calculates the accrued interest for a Spanish government regular bond with an optional interest free period. Specifically it performs calculations on Bonos, and Obligaciones. It also returns adjusted first coupon values to be passed to other routines.
Special Considerations:
This function has as one of its parameters spgb_convention_flag, a flag which specifies the convention to use in performing the calculation. The flag allows for auto determination or specification of the convention. Please review the documentation of spgb_convention_flag for details.
Alternatives:
If price and/or yield are required in addition to accrued interest, use the spgb_py_ai routine instead of this routine. If price and/or yield, current yield, estimated Macaulay duration, estimated convexity, interest on interest, etc. are required in addition to accrued interest, use the spgb_risk routine.
Notes:
In addition to accrued interest, other values are returned by the routine - see outputs in Parameter Definition section.
Results:
The accrued interest per 100 of maturity value is returned.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.