Skip to content

An unofficial Python SDK for Tastytrade!

License

Notifications You must be signed in to change notification settings

peter-oroszvari/ttt_fork

 
 

Repository files navigation

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.

About

An unofficial Python SDK for Tastytrade!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Makefile 0.4%