Skip to content

ecomsense/power-option

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Developer Manual

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.

setup the application (creating a virtualenv)

python -m venv virtualenv_name


get the latest code from github

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

πŸ“ 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

install the project requirements

pip install -r requirements.txt

run the application

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

About

a fastapi app that allows to manage positions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published