tastytrade
An unofficial, typed, asynchronous Python SDK for Tastytrade!
Decision gist · record as of 2026-08-14
Yes, if you trade on Tastytrade and want to automate strategies in Python. The package is actively maintained, has no known vulnerabilities, installs easily, and is MIT-licensed. It requires Python 3.11+ and OAuth setup with Tastytrade's API. The main constraint is that it is unofficial and carries no warranty—verify compatibility with your use case before deploying to live trading.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11+.
- OAuth credentials (client_secret and refresh_token) must be set up with Tastytrade's API beforehand.
- Low friction install with a pure-Python wheel.
License · maintenance · safety
permissive license (permissive) — MIT License permits commercial and private use with minimal restrictions—you may use, modify, and distribute the code freely provided you include the original copyright notice and license text.
last release 2026-08-07 (7 days) · last repo commit 2026-08-07 · 255 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 89,987 downloads/mo, #13,625 on PyPI
Alternatives
Verify before relying
pip install tastytrade
from tastytrade import Session, Account
session = Session('client_secret', 'refresh_token')
account = (await Account.get(session))[0]
positions = await account.get_positions(session)- Whether httpx2 is a typo or a real dependency distinct from httpx, and what it provides.
- Whether the 95%+ unit test coverage claim is current for version 13.2.3.
- Performance characteristics under high-frequency streaming or large option chains.
What it is and what it does
Tastytrade is an unofficial, fully-typed asynchronous SDK for Tastytrade's trading API built on top of anyio, httpx2, pydantic, and pandas-market-calendars. It provides a high-level Python interface to authenticate, stream real-time market data via websockets, query account positions, and place orders—reducing boilerplate significantly compared to calling the API directly. The package uses Pydantic models to validate and type all JSON responses, includes utility functions for timezone handling and futures expiration dates, and exposes a paper trading API for testing strategies without real capital.
The SDK is designed for developers building trading algorithms in Python. It handles session management, websocket lifecycle, and data deserialization so you can focus on strategy logic. The streamer component connects to dxfeed (Tastytrade's data provider) and supports subscriptions to quotes, greeks, and other market events. Orders are constructed from typed leg objects and can be validated via dry-run before execution.
Use it for
- Build and backtest options trading strategies using real-time greeks and quotes streamed via websocket.
- Automate portfolio monitoring by fetching current positions and account metrics asynchronously.
- Place limit and market orders programmatically with full buying-power and fee calculations.
- Stream live bid-ask quotes and market data for multiple symbols simultaneously.
- Test trading logic safely using the paper API before deploying to live accounts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you trade on Tastytrade and want to automate strategies in Python.
The package is actively maintained, has no known vulnerabilities, installs easily, and is MIT-licensed. It requires Python 3.11+ and OAuth setup with Tastytrade's API. The main constraint is that it is unofficial and carries no warranty—verify compatibility with your use case before deploying to live trading.
Install
tastytrade on PyPI
Before you install
Low friction install with a pure-Python wheel. The package is actively maintained with a release 7 days ago, 255 repository stars, and a recent commit history. Requires Python 3.11 or later.
Requires Python 3.11+. OAuth credentials (client_secret and refresh_token) must be set up with Tastytrade's API beforehand.
License in practice
MIT License permits commercial and private use with minimal restrictions—you may use, modify, and distribute the code freely provided you include the original copyright notice and license text.
Quickstart
pip install tastytrade
from tastytrade import Session, Account
session = Session('client_secret', 'refresh_token')
account = (await Account.get(session))[0]
positions = await account.get_positions(session)
Verify before relying
- Whether httpx2 is a typo or a real dependency distinct from httpx, and what it provides.
- Whether the 95%+ unit test coverage claim is current for version 13.2.3.
- Performance characteristics under high-frequency streaming or large option chains.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesanyiohttpx2pandas-market-calendarspydantic |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 89,987 / month, #13,625 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleFramework :: AnyIOFramework :: AsyncIOFramework :: TrioIntended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: tastytrade-13.2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “tastytrade api python sdk”
- tastytradeAn asynchronous Python SDK for Tastytrade's trading API that lets you…
- aliyun-python-sdk-coreProvides core client infrastructure for calling Alibaba Cloud APIs…
- ringcentralPython SDK for accessing RingCentral's cloud communications platform,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also fyers-apiv3 · python-binance · longbridge · growwapi · dhanhq · tdxpy · massive · tradingview-ta · polymarket-client · seeq