schwab-py vs tastytrade SDK vs Tradier: which US stock and options API fits you?
If you want to automate US stock or options orders from code, the first choice is usually your broker. schwab-py and the tastytrade Python SDK are free, open-source, unofficial libraries that sit on top of the Schwab and tastytrade APIs, so you need an account with that broker. Tradier is different: it is a broker built around its API, with REST access included on every plan and the language up to you. This comparison is built only from the facts on each tool's review page, so check the official websites for current prices and eligibility. Any order or example here is illustrative: none of these tools promises profit, so test with simulated money and set your own risk limits.
Short answer
- schwab-py: Schwab customers (including former TD Ameritrade API users) who want quotes, option chains, streaming and orders in Python (intermediate).
- tastytrade Python SDK: Options traders at tastytrade who want a typed, asynchronous Python SDK with streaming quotes and greeks (intermediate).
- Tradier: US-focused stock and options traders who want an API-first broker usable from any language over REST (intermediate).
Want the next comparison in your pocket? Follow our free channel.
| schwab-py | tastytrade Python SDK | Tradier | |
|---|---|---|---|
| Price | Free (open source); requires a Schwab account | Free (open source); requires a tastytrade account | Lite $0/mo ($0.35 per stock trade and options contract), Pro $10/mo, Pro Plus $35/mo ($0 commissions); regulatory fees extra |
| Cost model | Free | Free | Via account |
| Open source | Yes | Yes | No |
| License | MIT | MIT | Commercial brokerage service |
| Level | Intermediate | Intermediate | Intermediate |
| Best for | Schwab customers (including former TD Ameritrade API users) who want quotes, option chains, streaming and orders in Python (intermediate). | Options traders at tastytrade who want a typed, asynchronous Python SDK with streaming quotes and greeks (intermediate). | US-focused stock and options traders who want an API-first broker usable from any language over REST (intermediate). |
schwab-py
The go-to library for Schwab (and ex-TD Ameritrade) users; unofficial, so expect occasional breakage.
Best for: Schwab customers (including former TD Ameritrade API users) who want quotes, option chains, streaming and orders in Python (intermediate).
Strengths
- Login and authentication, quotes, fundamentals, historical prices and option chains.
- Streaming quotes and order book depth.
- Migration guide for former tda-api users.
Good to know
- Unofficial: not affiliated with Charles Schwab.
- Schwab's API requires registering a developer app and periodic re-authentication.
- Schwab must approve your developer app first, which the README says can take several days.
- No paper trading or historical options pricing data. Related tools: python-binance is for crypto; see also ib-async and tradier for other brokers.
tastytrade Python SDK
Well-built for options traders who code; just remember it is a community project.
Best for: Options traders at tastytrade who want a typed, asynchronous Python SDK with streaming quotes and greeks (intermediate).
Strengths
- Typed Pydantic models for all API responses; async design.
- WebSocket streamer for quotes and greeks via dxfeed.
- High unit-test coverage claimed by the project (95%+).
Good to know
- Unofficial SDK, not maintained by tastytrade.
- Authentication uses OAuth applications, which takes some setup.
Tradier
Interesting if you trade options often enough for a flat subscription to beat per-contract fees.
Best for: US-focused stock and options traders who want an API-first broker usable from any language over REST (intermediate).
Strengths
- API access included in all three plans.
- Pro and Pro Plus have $0 commissions on stocks and equity/ETF options; index options still cost $0.35 (Pro) or $0.10 (Pro Plus) per contract.
Good to know
- Regulatory, exchange and clearing fees still apply on top of commissions.
- Check eligibility for your country of residence before applying.
- Other listed fees include a $50 yearly inactivity fee for accounts with fewer than 2 trades a year, and a $9 assignment/exercise fee on Lite and Pro ($5 on Pro Plus). Lite also has a $30 yearly IRA fee, and the desktop app is not included in Lite.
Which one should you choose?
Pick schwab-py if you already trade at Schwab, tastytrade SDK if you are an options trader at tastytrade and want greeks streamed in Python, and Tradier if you would rather choose a broker for its API and compare its commission and subscription plans. Good to know: schwab-py and the tastytrade SDK are unofficial community projects; Schwab must approve your developer app first (the README says this can take several days) and needs periodic re-authentication, tastytrade uses OAuth applications that take some setup, and schwab-py has no paper trading. Tradier charges regulatory, exchange and clearing fees on top of commissions, and eligibility depends on your country of residence. Whatever you choose, test any rule on past data with trading costs included, start with small or simulated orders and set your own risk limits.
Quick answers
Which one is easiest to start with?
Levels: schwab-py (intermediate); tastytrade Python SDK (intermediate); Tradier (intermediate). Start in a simulated or demo mode whenever the tool has one.
How much do they cost and what licence do they use?
schwab-py: Free (open source); requires a Schwab account (licence: MIT). tastytrade Python SDK: Free (open source); requires a tastytrade account (licence: MIT). Tradier: Lite $0/mo ($0.35 per stock trade and options contract), Pro $10/mo, Pro Plus $35/mo ($0 commissions); regulatory fees extra (licence: Commercial brokerage service). Prices change, so check the official websites before you decide.
What should I know before choosing?
schwab-py: Unofficial: not affiliated with Charles Schwab. tastytrade Python SDK: Unofficial SDK, not maintained by tastytrade. Tradier: Regulatory, exchange and clearing fees still apply on top of commissions.
Guides that use these tools
Want a bot like this when custom bots open? Get notified · more bot ideas
Coming soon: custom bots
We are preparing a service to code, backtest and automate trading and statistics bots to your own rules. It is not available yet: follow our Telegram channel to know when it opens.
Sources
- schwab-py: https://github.com/alexgolec/schwab-py
- tastytrade Python SDK: https://github.com/tastyware/tastytrade
- Tradier: https://tradier.com/individuals/pricing