Tastyworks (unofficial) API
Project description
Tastyworks (Unofficial) API
Disclaimer
This is an unofficial, reverse-engineered API for Tastyworks. There is no implied warranty for any actions and results which arise from using it.
Purpose
A simple, async-based, reverse-engineered API for tastyworks. This will allow you to create trading algorithms for whatever strategies you may have.
Please note that this is in the very early stages of development so any and all contributions are welcome. Please submit an issue and/or a pull request.
Installation
pip install tastyworks
✨ 🍰
Since it's an async-based API, please make sure you're familiar with how asynchronous python works (Note: Python 3.6 or higher).
An example use is provided in example.py
in the tastyworks
folder. See for yourself by adding your tastyworks username/password and running:
tasty
Guidelines and caveats
There are a few useful things to know which will help you get the most out of this API and use it in the way it was intended.
- All objects are designed to be independent of each other in their steady-state. That is, unless executing an action, all objects are not bound to each other and have no knowledge of each other's awareness.
- One can have multiple sessions and, due to the inter-object independence, can execute identical actions on identical objects in different sessions.
- Given the above points, this API does not implement state management and synchronization (i.e. are my local object representations identical to the remote [Tastyworks] ones?). This is not an indefinitely closed matter and may be re-evaluated if the need arises.
Contributing
The more hands and brains that can help with this project, the better. It was implemented with the effort of getting something working rather than something beautiful as it is a reverse-engineering effort in progress. I would appreciate any input (be it in the form of issue reporting or code) on how to make this code-base better.
You can find the official GitHub repo at: https://github.com/boyan-soubachov/tastyworks_api
TODO
I would really appreciate any help/contributions with the TODO's scattered all around the codebase. If they're not descriptive enough, I'd be happy to provide more details.
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
File details
Details for the file tastyworks-4.tar.gz
.
File metadata
- Download URL: tastyworks-4.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0a4+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e34c09da4b260b1a3c07e3430ed2ed5c13da3fa6249164d3e27b6b8a7498c51 |
|
MD5 | b66766b9d8202ea286f2efac90eb6cf8 |
|
BLAKE2b-256 | 6b2c78d0c2fff7831ab25d09ee32c1c10297644d6eed5334c9c3b2af8ba8def0 |