A collection of core financial and quantitative models implemented in Python, including corporate finance and derivatives pricing tools.
Tested on Arch Linux using the Pycharm Community Edition
This repository is intended for:
- Finance students
- Analysts
- Quantitative finance beginners
- Anyone interested in financial modeling with Python
Calculates the expected return of an asset based on:
- Risk-free rate
- Market return
- Asset beta
Key output:
- Expected return using CAPM
Computes a firm’s average cost of capital using:
- Cost of equity
- Cost of debt
- Capital structure weights
- Corporate tax rate
Key output:
- Company WACC
Prices European options using the Black–Scholes formula.
Features:
- Call and put option pricing
- Sensitivity to volatility, maturity, and interest rates
Applies the Black–Scholes framework to foreign exchange options, incorporating:
- Domestic interest rate
- Foreign interest rate
- Exchange rate dynamics
- Python 3
- NumPy
- SciPy
- Math / Statistics
git clone https://github.com/Chriz97/python-financial-models.git
cd python-financial-models