Skip to content

veydantkatyal/option-pricing-pinn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PINN Option Pricing Web App

A web application for option pricing using Physics-Informed Neural Networks (PINNs) implemented in PyTorch and Streamlit.

Features

  • Black-Scholes model pricing
  • Heston model pricing
  • Interactive UI with real-time calculations
  • Visual representation of pricing equations

Project Structure

.
├── app.py              # Main Streamlit application
├── requirements.txt    # Python dependencies
├── Procfile           # Deployment configuration
├── src/
│   ├── models/        # Neural network model definitions
│   └── utils/         # Utility functions
├── saved_models/      # Trained model weights
└── results/           # Equation images and results

Local Development

  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the app:
streamlit run app.py

Deployment

This app can be deployed on various platforms:

Streamlit Cloud

  1. Push your code to GitHub
  2. Go to share.streamlit.io
  3. Connect your GitHub repository
  4. Deploy!

Heroku

  1. Create a Heroku account
  2. Install Heroku CLI
  3. Run:
heroku create your-app-name
git push heroku main

Requirements

  • Python 3.8+
  • PyTorch
  • Streamlit
  • NumPy
  • Matplotlib
  • Pillow

License

MIT License

About

Real-time option pricing system using Black-Scholes, Heston models, and PINNs with interactive 3D visualizations. Built for fast, accurate, and interpretable financial modeling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors