A python wrapper around the tastytrade open API
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tastytrade_sdk-1.2.0.tar.gz.
File metadata
- Download URL: tastytrade_sdk-1.2.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01730473e513e719472efeb69a71762749758d5088408a8bc531ba3b4e5f01cf
|
|
| MD5 |
856eadb9bec495ee27bf64f55bcc7b72
|
|
| BLAKE2b-256 |
c8461d281f918c844d3bec59d7bed88d76e47d7ff92b2bce2af976c660cb74c8
|
Provenance
The following attestation bundles were made for tastytrade_sdk-1.2.0.tar.gz:
Publisher:
release.yml on tastytrade/tastytrade-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tastytrade_sdk-1.2.0.tar.gz -
Subject digest:
01730473e513e719472efeb69a71762749758d5088408a8bc531ba3b4e5f01cf - Sigstore transparency entry: 215772270
- Sigstore integration time:
-
Permalink:
tastytrade/tastytrade-sdk-python@c5baa3a89ca3cea5b4b52e86f7a7b3f113d32232 -
Branch / Tag:
refs/tags/1.2.0 - Owner: https://github.com/tastytrade
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c5baa3a89ca3cea5b4b52e86f7a7b3f113d32232 -
Trigger Event:
push
-
Statement type:
File details
Details for the file tastytrade_sdk-1.2.0-py3-none-any.whl.
File metadata
- Download URL: tastytrade_sdk-1.2.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
538dc6318fc22ce33ec177fca6d7c2c9a09db100fcc1f310eba9940aa60e8c20
|
|
| MD5 |
b002779ca469e4abf8c3a8641835f181
|
|
| BLAKE2b-256 |
12465699afdca18028594bb4b04a71d8451f987d13c158d9a80796bb2510bd87
|
Provenance
The following attestation bundles were made for tastytrade_sdk-1.2.0-py3-none-any.whl:
Publisher:
release.yml on tastytrade/tastytrade-sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tastytrade_sdk-1.2.0-py3-none-any.whl -
Subject digest:
538dc6318fc22ce33ec177fca6d7c2c9a09db100fcc1f310eba9940aa60e8c20 - Sigstore transparency entry: 215772276
- Sigstore integration time:
-
Permalink:
tastytrade/tastytrade-sdk-python@c5baa3a89ca3cea5b4b52e86f7a7b3f113d32232 -
Branch / Tag:
refs/tags/1.2.0 - Owner: https://github.com/tastytrade
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c5baa3a89ca3cea5b4b52e86f7a7b3f113d32232 -
Trigger Event:
push
-
Statement type: