A real-time, high-performance option trading terminal built with FastAPI and WebSockets. This application allows for monitoring NIFTY/BANKNIFTY/FINNIFTY option chains, visualizing premium data via TradingView Lightweight Charts, and executing multi-leg strategies with automated order slicing.
python -m venv virtualenv_name
after activating the virtualenv, run the following command to clone the repository. this will create the power-option inside the virtualenv_name folder.
git clone https://github.com/ecomsense/power-option
.
βββ factory/ # Configuration templates
βββ data/ # the changing state of the application are stored here
βββ requirements.txt # Python dependencies
βββ src/ # Application source code
βββ static/ # Frontend assets (dashboard.js, style.css)
βββ templates/ # HTML UI (index.html)
βββ api.py # Broker API & Order slicing logic
βββ constants.py # The singletons needed for the application
βββ main.py # FastAPI entry point
βββ symbols.py # The trading symbols obtained from broker
βββ wsocket.py # WebSocket management
pip install -r requirements.txt
change to directory src\ and run it
python main.py
this will create power-option.yml in your virtualenv_name\ directory
fill up the necessary credentials based on the example given inside factory/power-option.yml