This project is a web-based financial calculator application that provides users with the ability to perform various financial calculations, including Black-Scholes option pricing, CAPM (Capital Asset Pricing Model), bond pricing, intrinsic value calculation, and dividend yield calculation. The application is built using React for the frontend and Django for the backend.
The application includes the following financial models:
-
Black-Scholes Option Pricing:
- Allows users to calculate call and put option prices based on inputs such as asset price, exercise price, time to expiry, risk-free interest rate, volatility, and dividend yield.
-
CAPM (Capital Asset Pricing Model):
- Provides the expected return on an investment based on risk-free interest rate, beta, and market return.
-
Bond Pricing:
- Enables users to calculate the price of a bond using inputs like face value, coupon rate, yield to maturity, and time to maturity.
-
Intrinsic Value Calculation:
- Calculates the intrinsic value of a stock based on inputs like earnings per share (EPS) and discount rate.
-
Dividend Yield Calculation:
- Helps users determine the dividend yield of a stock using dividend per share and stock price.
The application features a user-friendly interface with input forms for each financial model, allowing users to input relevant parameters and receive calculated results. The UI also includes a navigation bar for easy access to different financial models.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Install dependencies using
npm install
for the frontend andpip install -r requirements.txt
for the backend. - Run the frontend and backend servers.
- Access the application through a web browser.
-
Frontend:
- React
- React Router
-
Backend:
- Django
- Django REST Framework
-
Styling:
- CSS
-
API Communication:
- Axios
- Set up the Django backend with necessary configurations.
- Configure the React frontend to communicate with the Django backend.
Feel free to contribute to the project by submitting bug reports, feature requests, or pull requests. Follow the standard GitHub flow for contributions.
Ng Chin Ling