/ttt_fork

An unofficial Python SDK for Tastytrade!

Primary LanguagePythonMIT LicenseMIT

Docs PyPI Downloads

Tastytrade Python SDK

A simple, async-based, reverse-engineered SDK for Tastytrade built on their (mostly) public API. This will allow you to create trading algorithms for whatever strategies you may have quickly and painlessly in Python.

Installation

$ pip install tastytrade

Getting Started

Here's a simple example to get you started. For more information, check out the documentation.

from tastytrade.dxfeed.event import EventType
from tastytrade.session import Session
from tastytrade.streamer import Streamer

session = Session('username', 'password')
streamer = await Streamer.create(session)

tickers = ['SPX', 'GLD']
quotes = await streamer.oneshot(EventType.QUOTE, tickers)
print(quotes)

Disclaimer

This is an unofficial SDK for Tastytrade. There is no implied warranty for any actions and results which arise from using it.