{"id":46583,"library":"tastytrade","title":"tastytrade","description":"An unofficial, typed, asynchronous Python SDK for Tastytrade (tastytrade.com). Current version 12.4.1, requires Python >=3.11. Active development with monthly releases.","status":"active","version":"12.4.1","language":"python","source_language":"en","source_url":"https://github.com/tastyware/tastytrade","tags":["tastytrade","trading","sdk","async"],"install":[{"cmd":"pip install tastytrade","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from tastytrade import Tastytrade","symbol":"Session","correct":"from tastytrade import Session"},{"symbol":"Account","correct":"from tastytrade import Account"},{"symbol":"DXLinkStreamer","correct":"from tastytrade import DXLinkStreamer"}],"quickstart":{"code":"import asyncio\nimport os\nfrom tastytrade import Tastytrade\n\nasync def main():\n    client = await Tastytrade.create(\n        login=os.environ.get('TASTYTRADE_USERNAME', ''),\n        password=os.environ.get('TASTYTRADE_PASSWORD', '')\n    )\n    print('Connected!')\n    await client.close()\n\nasyncio.run(main())","lang":"python","description":"Initialize the async client with credentials from environment variables."},"warnings":[{"fix":"Use async `Tastytrade.create()` and await all API calls.","message":"Version 12.0.0 introduced breaking changes: removed synchronous client, requires async/await. Old code using `tastytrade.Client` must be rewritten.","severity":"breaking","affected_versions":">=12.0.0"},{"fix":"Use `client.get_accounts()` which returns a list.","message":"Method `get_account` is deprecated in favor of `get_accounts`.","severity":"deprecated","affected_versions":">=11.0.0"},{"fix":"Always use try/finally or async context manager: `async with Tastytrade.create(...) as client:`","message":"The client must be explicitly closed to free resources; forgetting to call `close()` may cause memory leaks or hanging connections.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'12.4.1':13 '3.11':16 'activ':17 'async':25 'asynchron':5 'current':11 'develop':18 'month':20 'python':6,15 'releas':21 'requir':14 'sdk':7,24 'tastytrad':1,9,22 'tastytrade.com':10 'trade':23 'type':4 'unoffici':3 'version':12","created_at":"2026-06-07T13:00:38.267848+00:00","updated_at":"2026-06-07T13:00:38.267848+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tastyware/tastytrade","github":"https://github.com/tastyware/tastytrade","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["finance"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}