Getting Started
Before using this SDK, ensure that you:
- have a Tastytrade account
- have opted into the Tastytrade Open API program
Install
pip install tastytrade-sdk
Use It
from tastytrade_sdk import Tastytrade
tasty = Tastytrade()
tasty.login(
login='trader@email.com',
password='password'
)
tasty.api.post('/sessions/validate')
tasty.logout()
Examples
Streaming Market Data
from tastytrade_sdk import Tastytrade
tasty = Tastytrade().login(login='trader@email.com', password='password')
# Subscribing to symbols across different instrument types
# Please note: The option symbols here are expired. You need to subscribe to an unexpired symbol to receive quote data
symbols = [
'BTC/USD',
'SPY',
'/ESU3',
'SPY 230630C00255000',
'./ESU3 EW2N3 230714C4310'
]
subscription = tasty.market_data.subscribe(
symbols=symbols,
on_quote=print,
on_candle=print,
on_greeks=print
)
# start streaming
subscription.open()
Metadata
Release files for tastytrade-sdk 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tastytrade_sdk-1.2.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tastytrade_sdk-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / tastytrade_sdk-1.2.0.tar.gz
| Download URL | tastytrade_sdk-1.2.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01730473e513e719472efeb69a71762749758d5088408a8bc531ba3b4e5f01cf
|
|
BLAKE2b-256 checksum How to use checksums |
c8461d281f918c844d3bec59d7bed88d76e47d7ff92b2bce2af976c660cb74c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2025.
Transparency logRelease files / tastytrade_sdk-1.2.0-py3-none-any.whl
| Download URL | tastytrade_sdk-1.2.0-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
538dc6318fc22ce33ec177fca6d7c2c9a09db100fcc1f310eba9940aa60e8c20
|
|
BLAKE2b-256 checksum How to use checksums |
12465699afdca18028594bb4b04a71d8451f987d13c158d9a80796bb2510bd87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 20, 2025.
Transparency log