Home / Backtesting & trading frameworks
tda-api
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 for | Developers |
|---|---|
| Used for | Live trading, Data source |
| Markets | US equities |
| 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): +4 over the period, now 1,328. Gaps mean no snapshot was taken that day.
Gather data and trade equities, options, and ETFs via TDAmeritrade.