Calculates bond dollar price, yield to maturity and accrued interest for Spanish government bonds
Introduced in release: 1.0 Component: Non-US (developed mkts) Purpose:
Calculates either dollar price or yield to maturity and accrued interest for a Spanish government regular bond with an optional interest free period. Specifically it performs calculations on Bonos, and Obligaciones.
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.
Notes:
This routine calculates and uses time periods between dates as the total number of days divided by the number of days in the year. An alternative method is to use the number of days in the current period divided by the number of days in the year plus the number of whole periods. The routine spgb_py_ai uses this method in calculating price/yield.
Results:
All results are calculated using the industry standard rules or generally accepted practices, accurate to as many places as supported by a double precision value. The variable calculated contains the calculated dollar price or yield to redemption. The variable ai contains the accrued interest per 100 of maturity value.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.