Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fixed Income Analytics

A modular Python implementation of core fixed-rate bond analytics.

This project implements two pricing frameworks:

  • Yield-to-Maturity (YTM) pricing
  • Zero-curve discounting with z-spread solver

It also includes standard interest rate risk measures: DV01, modified duration, convexity, and key rate DV01.

The objective is to demonstrate a clear understanding of bond pricing mechanics, yield curves, and spread analysis in a clean and structured codebase.


Features

  • Price from YTM
  • Solve YTM from price (bisection method)
  • Curve-based bond pricing
  • Z-spread solver
  • DV01 and key rate DV01
  • Modified duration and convexity

Project Structure

src/bond_analytics/
examples/
tests/

Installation

python -m venv .venv
source .venv/Scripts/activate
python -m pip install -e .

Run Examples

python examples/demo_ytm.py
python examples/demo_curve_zspread.py
python examples/demo_key_rate_dv01.py

Run Tests

python -m pytest -q

About

Fixed-income analytics library in Python featuring YTM pricing, zero-curve discounting, z-spread solver, and risk metrics (DV01, duration, convexity).

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages