Skip to main content

Stock for Sloth.

Project description

SlothStock

PyPI version PyPI license Python Versions Downloads

Stock for Sloth.

Read this in other languages: English, 简体中文.

Getting Started

Installation

pip install -U slothstock

Usage

$ sloth-buy -h

usage: sloth-buy [-h] [--reserve-st] [--reserve-suspend]
                 [--check-great-great-grandparent] [--daemon]
                 [--interval INTERVAL] [--ignore-empty] [--output OUTPUT] [-V]
                 [--ebk EBK] [--period PERIOD] [--loose] [--skip-child]
                 [--title TITLE] [--token TOKEN] [--topic-ids TOPIC_IDS]
                 [--uids UIDS]

optional arguments:
  -h, --help            show this help message and exit
  --daemon
  --interval INTERVAL
  --ignore-empty
  --output OUTPUT
  -V, --version         show program's version number and exit

Buy:
  --reserve-st
  --reserve-suspend
  --check-great-great-grandparent

SlothStock:
  --ebk EBK
  --period PERIOD
  --loose
  --skip-child

WxPusher:
  --title TITLE
  --token TOKEN
  --topic-ids TOPIC_IDS
  --uids UIDS
$ sloth-sell -h

usage: sloth-sell [-h] [--daemon] [--interval INTERVAL] [--ignore-empty]
                  [--output OUTPUT] [-V] [--ebk EBK] [--period PERIOD]
                  [--loose] [--skip-child] [--title TITLE] [--token TOKEN]
                  [--topic-ids TOPIC_IDS] [--uids UIDS]

optional arguments:
  -h, --help            show this help message and exit
  --daemon
  --interval INTERVAL
  --ignore-empty
  --output OUTPUT
  -V, --version         show program's version number and exit

SlothStock:
  --ebk EBK
  --period PERIOD
  --loose
  --skip-child

WxPusher:
  --title TITLE
  --token TOKEN
  --topic-ids TOPIC_IDS
  --uids UIDS

Running the tests

tox

TODO

  • Fetch stock information from XueQiu.
  • MACD indicators.
  • Wechat push notification.
  • Basic unittest with positive cases and structure.
  • EBK file import and export.
  • Daemon mode.
  • Buy signal script.
  • Sell signal script.
  • Add cache for frequent fetched data.
  • logger.
  • Cronjob guide or something similar.
  • Monitored stocks management.
  • Documentation.
  • More robust unittest.

Contribution

  • Comments or suggestions via github issues.
  • Pull requests are welcome absolutely.

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

slothstock-0.2.2.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

slothstock-0.2.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file slothstock-0.2.2.tar.gz.

File metadata

  • Download URL: slothstock-0.2.2.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for slothstock-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7542a290438a3ffd51fb2b44ffa2107e565f193da3a0b0ceaa75dee755f6e1be
MD5 b9863c426a7b6a88ffe7ebfd1520d2d4
BLAKE2b-256 48b109a87f1b3b8ee6ce1425bacf113bf70bc8bb5539dc4fc4037e1420d27cce

See more details on using hashes here.

File details

Details for the file slothstock-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: slothstock-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.1

File hashes

Hashes for slothstock-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eca4106e03eaf7cd79b856de64b735f2e8e25d06900313e307724e1fbce8afe3
MD5 cbcc53ecf93efe61b0243236ad38b074
BLAKE2b-256 9fa07733353fa41340a80f0030c5f5593f21c4695d94345acdfdfed3f3d5cf71

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page