Registry / finance / tastytrade

tastytrade

JSON →
library12.4.1pypypi✓ verified 84d ago

An unofficial, typed, asynchronous Python SDK for Tastytrade (tastytrade.com). Current version 12.4.1, requires Python >=3.11. Active development with monthly releases.

pip install tastytrade
INSTALL
IMPORT
SIG · TASTYTRADE
T
tastytrade
financepythonv12.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Session
✓ from tastytrade import Session
✗ from tastytrade import Tastytrade
Account
✓ from tastytrade import Account
DXLinkStreamer
✓ from tastytrade import DXLinkStreamer

Initialize the async client with credentials from environment variables.

import asyncio import os from tastytrade import Tastytrade async def main(): client = await Tastytrade.create( login=os.environ.get('TASTYTRADE_USERNAME', ''), password=os.environ.get('TASTYTRADE_PASSWORD', '') ) print('Connected!') await client.close() asyncio.run(main())
Debug
Known issues
breakingVersion 12.0.0 introduced breaking changes: removed synchronous client, requires async/await. Old code using `tastytrade.Client` must be rewritten.
fix
Use async `Tastytrade.create()` and await all API calls.
affects: >=12.0.0
deprecatedMethod `get_account` is deprecated in favor of `get_accounts`.
fix
Use `client.get_accounts()` which returns a list.
affects: >=11.0.0
gotchaThe client must be explicitly closed to free resources; forgetting to call `close()` may cause memory leaks or hanging connections.
fix
Always use try/finally or async context manager: `async with Tastytrade.create(...) as client:`
affects: all
Upgrade
Version history
12.4.1latest on PyPI · released May 1, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
32
Anthropic
1
Resources
tastytrade — pip install tastytrade · libregistry