An advanced bond pricing calculator built with Python and Streamlit that helps analyze bond prices, yields, and risk metrics.
- Bond price calculation with different payment frequencies (Annual, Semi-annual, Quarterly, Monthly)
- Yield to Maturity (YTM) calculation
- Duration and Convexity analysis
- Price sensitivity calculator
- Interactive price-yield curve visualization
- Cash flow analysis and visualization
- Clean and dirty price calculations
- Accrued interest computation
# Clone the repository
git clone https://github.com/upspal/Bond-pricer.git
# Navigate to the project directory
cd Bond-pricer
# Install required packages
pip install -r requirements.txt
Run the Streamlit app:
streamlit run bond_pricer.py
Create a requirements.txt file with all necessary dependencies:
streamlit
numpy
pandas
plotly