# alexgolec/tda-api

A TD Ameritrade API client for Python. Includes historical data for equities and ETFs, options chains, streaming order book data, complex order construction, and more.

Repository: https://github.com/alexgolec/tda-api
Canonical: https://ross.abutalabs.com/products/tda-api
Homepage: https://tda-api.readthedocs.io
Language: Python
License: MIT
License Family: permissive
Topics: finance, trading, tdameritrade, financial-data, automated-trading, python3
Last push: 2024-06-16T22:04:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2343, "days_push": 808, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1323, forks 323 (observed 2026-08-28T04:04:22.184477+00:00)

## What it is
An unofficial Python wrapper around the TD Ameritrade HTTP and streaming APIs, offering authentication, quotes, historical pricing, options chains, and order management. The TD Ameritrade service was shut down in May 2024, so this library no longer works and is archived in favor of its successor schwab-py.

## Use cases
- fetch historical price data for equities and ETFs in Python
- retrieve options chains programmatically
- stream quotes and order book depth data
- place and manage trades via API
- authenticate with a brokerage API using OAuth
- get account info and preferences from a trading account

## When to choose
- you need to read or maintain legacy code that used the TD Ameritrade API
- you want a reference implementation when migrating to schwab-py

## When to avoid
- you want a working brokerage API client today - use schwab-py instead
- you are starting a new trading automation project
- you need support or updates, since the repo is archived

## Facets
- artifact type: library
- maturity: abandoned
- function: http-client, auth, sdk, streaming
- domain: fintech, apis, developer-tools
- platform: python, cross-platform
- tags: trading, td-ameritrade, options-chains, market-data, defunct, schwab-py-successor

## Member repositories
- alexgolec/tda-api (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.184477+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:47:03.653861+00:00, confidence not recorded.
  - readme: https://github.com/alexgolec/tda-api (fetched 2026-08-28T04:04:22.184477+00:00, sha ff7e0d517973)
  - registry_pypi: https://pypi.org/pypi/tda-api/json (fetched 2026-08-29T12:06:27.446297+00:00, sha 8fb51ca336ef)
- Data as of 2026-08-30T08:39:29.467469+00:00.
