An easy-to-use command line interface for Tastyworks!
Project description
tastyworks-cli
An easy-to-use command line interface for Tastyworks!
Installation
$ pip install tastyworks-cli
Usage
Obtaining a CSV file: On the Tastyworks desktop app, go to the History tab. Under transactions (not YTD), pick a custom start date before the creation of your account. Scroll down until all of your transactions have loaded, then click "CSV" in the top right to export all the transactions. You must export your entire transaction history, even if you only want to plot a more recent time period.
Available commands:
tw plot chart your portfolio's net liquidity or profit/loss over time
tw quant mathematical and statistical analysis
tw pairs analyze and size pairs trades
Unavailable commands pending development:
tw order view, replace, and cancel orders
tw watchlist view current prices and other data for symbols in your watchlists
tw portfolio view statistics and risk metrics for your portfolio
tw crypto buy, sell, and analyze cryptocurrencies
tw future buy, sell, and analyze futures
tw stock buy, sell, and analyze stock
tw option buy, sell, and analyze options
For more options, run tw --help
or tw <subcommand> --help
.
Development/Contributing
This project includes a number of helpers in the Makefile
to streamline common development tasks.
Creating a virtualenv for development:
$ make venv
$ source env/bin/activate
...after building the environment, will need to install the package:
pip install .
It's usually a good idea to make sure you're passing tests locally before submitting a PR:
$ make test
If you have a feature suggestion, find a bug, or would like to contribute, feel free to open an issue or create a pull request.
Disclaimer
tastyworks and tastytrade are not affiliated with the makers of this program and do not endorse this product. This program does not provide investment, tax, or legal advice. Stock trading involves risk and is not suitable for all investors. Options involve risk and are not suitable for all investors as the special risks inherent to options trading may expose investors to potentially significant losses. Futures and futures options trading is speculative and is not suitable for all investors. Cryptocurrency trading is speculative and is not suitable for all investors.
Project details
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
File details
Details for the file tastyworks-cli-0.2.0.tar.gz
.
File metadata
- Download URL: tastyworks-cli-0.2.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c45fd1207d9beda632655e6d7a85ab91440046459f262cb279c0e437ddab7e23 |
|
MD5 | 37cdcc99532b68864037aa29892df58c |
|
BLAKE2b-256 | 33dc4505415c0854cdfad8312416db2e3420ad050e8470098b0c659bca8287a7 |
File details
Details for the file tastyworks_cli-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: tastyworks_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d08ae41f78e9030751439378b618663962a1c727db42cb22bea98b52e91d10d |
|
MD5 | 7ef1a95a3036d4a8392ee660eca18aa4 |
|
BLAKE2b-256 | 7c12abf409b20a81bb6e66906dc06509fa8b34a0f603dbd4ddb5b30b4527c417 |