A real-time dashboard using ThinkorSwim's RTD (Real-Time Data) and Streamlit.
demo.mp4
- Windows OS (required for ThinkorSwim RTD)
- Python 3.8+
- ThinkorSwim desktop application installed and running
- Clone the repository
git clone https://github.com/2187Nick/tos-streamlit-dashboard
- Install dependencies:
pip install -r requirements.txt
- Start ThinkorSwim desktop application and log in
- Run the dashboard:
streamlit run app.py
- Open the browser and navigate to
http://localhost:8501
- Symbol: Ticker symbol (e.g., "SPY")
- Expiry Date: Contract expiration date (Defaults to the nearest Friday)
- Strike Range: Range of strikes to monitor (Defaults to +- $10)
- Strike Spacing: Spacing between strikes (Defaults to 1)
- Refresh Rate: Data refresh rate (Defaults to 15 seconds)
- Start/Stop: Toggle data streaming
- This does work with Ondemand. Can use this on weekends to review historical data.
- Gamma values are displayed in millions of dollars per 1% move in underlying asset.
- This repo is a basic example. We hope you will build upon it and make it your own.
- If you build something, share it and we can keep a directory of projects.
Backend:
@FollowerOfFlow worked some magic to get TOS RTD working directly with Python.
Check it out here: pyrtdc
Gamma Exposure Calculations: perfiliev