Home / Other tools

optlib

Other tools★ 1,635 GitHub starsPython⏱ No commits in over six months

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 forProfessional quants
Used forData analysis, Strategy research
MarketsMulti-market
StackPython
Learning curveModerate learning curve
Practical valueMedium practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceNo 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.

In the author's words

A library for financial options pricing written in Python.

Open on GitHub ↗This week's trending tools中文页面

Similar tools