Skip to main content

PyPI GitHub Discussions GitHub issues

Getting Started

Before using this SDK, ensure that you:

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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tastytrade_sdk-1.2.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tastytrade_sdk-1.2.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

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

Hashes for tastytrade_sdk-1.2.0.tar.gz
Algorithm Hash digest
SHA256 01730473e513e719472efeb69a71762749758d5088408a8bc531ba3b4e5f01cf
MD5 856eadb9bec495ee27bf64f55bcc7b72
BLAKE2b-256 c8461d281f918c844d3bec59d7bed88d76e47d7ff92b2bce2af976c660cb74c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for tastytrade_sdk-1.2.0.tar.gz:

Publisher: release.yml on tastytrade/tastytrade-sdk-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for tastytrade_sdk-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 538dc6318fc22ce33ec177fca6d7c2c9a09db100fcc1f310eba9940aa60e8c20
MD5 b002779ca469e4abf8c3a8641835f181
BLAKE2b-256 12465699afdca18028594bb4b04a71d8451f987d13c158d9a80796bb2510bd87

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page