financialkit.fixed_income ========================= .. include:: /_generated/nav/fixed_income.rst Bond cash flows, prices and yield to maturity (``scipy.optimize.brentq``), accrued interest and STRIPS; Macaulay, modified and Fisher-Weil duration, convexity and key rate durations; Lutz forward rates; zero curves bootstrapped from bond prices or par rates, Carleton-Cooper discount factors and McCulloch's spline discount function (``numpy.linalg.lstsq``); Nelson-Siegel and Svensson fits (``scipy.optimize.least_squares``) and the principal components of curve moves (``numpy.linalg.eigh``); Redington immunization and the Fong-Vasicek :math:`M^2` bound; and interest-rate and currency swaps. .. automodule:: financialkit.fixed_income :members: :undoc-members: