Calculate bond yield to maturity for Spanish government securities
Introduced in release: 1.0 Component: Non-US (developed mkts) Purpose:
Calculates yield to maturity for a Spanish government regular bond with an optional interest free period . Specifically it performs calculations on Bonos, and Obligaciones.
Alternatives:
This routine requires inputs normally provided by other interim routines. The spgb_py_ai routine uses a coupon rate and relevant dates in determining the number of remaining periods to maturity for computing a yield.
Results:
All results are calculated using the industry standard rules or generally accepted practices. The function returns the calculated yield to redemption accurate to as many places as supported by a double precision value.
Error Conditions:
Returned values should be ignored for a non-zero status. See Errors.