Skip to main content

Stock Trader

Project description

PyPI Python Version License

Read the documentation at https://stock_trader.readthedocs.io/ Tests Codecov

pre-commit Black GitHub issues

Overview

Stock Trader retrieves historical stock data for one or more stocks, runs one or more trading algorithms against the historical data optimizing algorithm settings on each pass, and picks the most profitable way to trade each stock. It then accepts a stream of current information about each of the stocks watching for a buy-in point that has a high probability of profit. It then either alerts the user to buy or, alternatively, can directly send a buy order to a broker’s API. It then continues to monitor the stream of current information about each of the stocks watching for either a drop in the probability of continued profit of the current position or for another stock’s probability of profit to go higher than that of the current position. It will then either alert the user to sell the current position or, alternatively, can directly send a sell order to a broker’s API.

Features

Until version 1.0, this should be considered a work in progress. Not all features exist yet.

Planned features before version 1.0 are:

  • Generic Interface for Historical Stock Data Retrieval with several back ends - TD Ameritrade (via tda-api) - More back ends will be added as time permits

  • Backtesting Interface - Pluggable profit probability functions

  • Generic Broker Interface for placing orders with several back ends - TD Ameritrade (via tda-api) - More back ends will be added as time permits

Dependencies

Python ^3.6.1 Typer ^0.3.2

Colorama ^0.4.4 (optional extra - colorizes command line interface) Shellingham ^1.4.0 (optional extra - detects shell to make adding shell completion easier)

Installation

You can install Stock Trader via pip from PyPI:

$ pip install stock_trader

Usage

Please see the Command-line Reference for details.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Stock Trader is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project’s skeleton was generated from @cjolowicz’s Hypermodern Python Cookiecutter template using Cookiecutter.

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

stock_trader-0.0.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

stock_trader-0.0.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file stock_trader-0.0.4.tar.gz.

File metadata

  • Download URL: stock_trader-0.0.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 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.6

File hashes

Hashes for stock_trader-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9a7cc22622456fd2a6bed0ad605536bf993d7a002f7afcdbfedeb540d27c95a7
MD5 91c6d6a3a50c2c684b492446d93c12b5
BLAKE2b-256 2aee12f722f6bb015574a2be11e5285fff928ecb02a6e0561cfede17b594cb46

See more details on using hashes here.

File details

Details for the file stock_trader-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: stock_trader-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 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.6

File hashes

Hashes for stock_trader-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fd15f844d8aff57b6d5e0e98bb8d93f863d759745a46b428d1cc07b2f51019ea
MD5 3b2f1c9d8ac6576bdf7c015575f0f6c9
BLAKE2b-256 b9b09594ff45296fb6bd2fca899ee0998a6ae1297dd38b8b46e1f2b2195476e6

See more details on using hashes here.

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