Home / Backtesting & trading frameworks

tda-api

Backtesting & trading frameworks★ 1,328 GitHub starsPython⏱ No commits in over six months

Unofficial Python wrapper for the TD Ameritrade trading APIs

What it is

A thin, unopinionated Python wrapper around the TD Ameritrade APIs, offering an elegant programmatic interface over each endpoint. It supports login and authentication, quotes, fundamentals and historical pricing data, options chains, streaming quotes and order book depth, plus order placement, trade management, and account information. Quant traders who built strategies on equities, options, and ETFs through TD Ameritrade will find it familiar. The TD Ameritrade service itself has been shut down, so this library no longer works and the repository is maintained for archival purposes only.

At a glance

Research onlyOur rating, based on popularity, maintenance and how ready it is for real use.

Best forDevelopers
Used forLive trading, Data source
MarketsUS equities
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): +4 over the period, now 1,328. Gaps mean no snapshot was taken that day.

In the author's words

Gather data and trade equities, options, and ETFs via TDAmeritrade.

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

Similar tools