https://github.com/dharmatech/options-premium-chart-td
https://github.com/dharmatech/options-premium-chart-td
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dharmatech/options-premium-chart-td
- Owner: dharmatech
- Created: 2025-11-09T14:44:44.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-11-09T18:10:27.000Z (7 months ago)
- Last Synced: 2026-03-31T06:35:40.306Z (3 months ago)
- Language: Python
- Size: 687 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generates a chart of options premium using ThetaData.
You'll need a pro level options subscription with [ThetaData](https://www.thetadata.net/).
# Notes
The code here is pretty messy. It's just an example of how to use ThetaData.
# Install
To install using `uv` in a test environment:
```
mkdir test-options-premium-chart-app
cd test-options-premium-chart-app
uv venv
.\.venv\Scripts\activate
uv pip install "git+https://github.com/dharmatech/options-premium-chart-td"
```
# Run
To run:
```
python -m options_premium_chart_td.main --premium-threshold 100000 GME
```
The first time you run this script for a given symbol, all the options trades for that symbol will be downloaded and saved in the local cache. This will take a very long time. The next time you run the script for that symbol, it can be expected to take much less time.
# Cache
The options trades data is stored in `~/.thetadata-api-v3-cache`.
# Result
The script will generate an file: `options_premium_chart_GME.html`.
