Home / Other tools
optlib
Python library for closed-form options pricing and option chains
What it is
A Python library that prices financial options using closed-form solutions and fetches option chains and historical data via the TDAmeritrade API. It covers GBS, Asian, and spread options (Kirk's approximation), American options via the Bjerksund-Stensland approximation, implied volatility, and sensitivity analysis with graphics, with parameters following Haug's option pricing formulas. The library suits quant developers who want transparent pricing formulas and have a TDAmeritrade developer account for the data-fetching module. Caveats: the API module depends on a TDAmeritrade API key, American option Greeks are approximated from the GBS model, and some documentation remains incomplete per the project's own TODO list.
At a glance
Research onlyOur rating, based on popularity, maintenance and how ready it is for real use.
| Best for | Professional quants |
|---|---|
| Used for | Data analysis, Strategy research |
| Markets | Multi-market |
| Stack | Python |
| Learning curve | Moderate learning curve |
| Practical value | Medium practical value |
| Cost | Free and open source |
| Hardware | No GPU needed |
| Maintenance | No commits in over six months |
GitHub stars, last 30 days
Daily snapshots since 2026-09-12 (up to 30 days): +2 over the period, now 1,635. Gaps mean no snapshot was taken that day.
A library for financial options pricing written in Python.
Similar tools
Jupyter notebooks companion to Machine Learning for Trading
Goldman Sachs Python toolkit for derivatives and risk
scikit-learn compatible Python library for portfolio optimization
CVXPY-based portfolio optimization and strategic asset allocation
Python financial econometrics with ARCH, GARCH and volatility models
C++ financial research terminal with embedded Python analytics