A fast and efficient option pricing tool built with Next.js frontend and Python FastAPI backend, dockerized for easy deployment.
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/adamDucken/bsop_next_fast.git cd bsop_next_fast
-
Run the setup script:
chmod +x setup.sh ./setup.sh
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
If you fail to access the app in these places, follow the instructions of the setup script.
Enter the following parameters to calculate option prices:
- Stock price (decimal)
- Strike price (decimal)
- Time to maturity (in years)
- Risk-free rate (percentage as decimal, e.g., 5% → 0.05)
- Volatility (percentage as decimal)
The tool will calculate both call and put option prices using the Black-Scholes model.
- Frontend: Next.js with Tailwind CSS and Shadcn UI
- Backend: Python FastAPI
- Containerization: Docker and Docker Compose
To modify the services:
- Update the code in
bsop_next
(frontend) orbsop_fast
(backend) - Rebuild the containers:
docker-compose down docker-compose up --build
Note: This project is under active development. Features and setup process may change.