懒惰的股票。

slothstock的Python项目详细描述


懒虫

PyPI versionPyPI licensePython VersionsDownloads

懒惰的股票。在

用其他语言阅读:English简体中文

入门

安装

pip install -U slothstock

用法

^{pr2}$
$ sloth-sell -h

usage: sloth-sell [-h][--daemon][--interval INTERVAL][--ignore-empty][--output OUTPUT][-V][--check-parent][--ebk EBK][--period PERIOD][--loose][--child {cross,divergence}][--datetime DATETIME][--title TITLE][--token TOKEN][--topic-ids TOPIC_IDS][--uids UIDS]

optional arguments:
  -h, --help            show this help message and exit
  --daemon              Flag of daemon mode, no console output. (default:
                        False)
  --interval INTERVAL   Time interval in seconds between successive requests
                        in providers. (default: 0.1)
  --ignore-empty        Flag for no output or notification when the result is
                        empty. (default: False)
  --output OUTPUT       The output file in ebk format for the results.
                        (default: None)
  -V, --version         show program's version number and exit

Sell:
  --check-parent        Flag to check parent period. (default: False)

SlothStock:
  --ebk EBK             Stock candidates in ebk format file. If not specified,
                        all stocks are processed. Note that multiple of them
                        are supported. (default: [])
  --period PERIOD       Check signal for specific period. Valid choices are
                        `1m`, `5m`, `15m`, `60m`, `day`, `week`, `month`,
                        `quarter`, `year`. (default: day)
  --loose               Flag of loose mode for signal check. (default: False)
  --child {cross,divergence}
                        Child check mode, it should be `cross` or
                        `divergence`. If no specified, child period check will
                        be skipped. (default: None)
  --datetime DATETIME   The datetime compatible with ISO 8601 format (`YY-MM-
                        DD` or `YYYY-MM-DDTHH:MM`)for signal check, mostly
                        for testing purpose. (default: None)

WxPusher:
  --title TITLE         The `title`for the notification. (default: None)
  --token TOKEN         The `token`for the notification. None means no
                        notification (default: None)
  --topic-ids TOPIC_IDS
                        The `topic_ids`for the notification. Note that
                        multiple of them are supported and no notification
                        will be sent if both `topic_ids` and `uids` are None,
                        (default: [])
  --uids UIDS           The `uids`for the notification. Note that multiple of
                        them are supported and no notification will be sent if
                        both `topic_ids` and `uids` are None. (default: [])

运行测试

tox

托多

  • [x] 从雪球那里获取股票信息。在
  • [x] MACD指示灯。在
  • [x] 微信推送通知。在
  • [x] 有阳性病例和结构的基本单元测试。在
  • [x] EBK文件导入和导出。在
  • [x] 守护程序模式。在
  • [x] 购买信号脚本。在
  • [x] 卖信号脚本。在
  • []为频繁获取的数据添加缓存。在
  • []记录器。在
  • []Cronjob指南或类似的东西。在
  • []监控库存管理。在
  • []文档。在
  • []更强大的单元测试。在

贡献

  • 通过github问题提出的意见或建议。在
  • 拉请求是绝对欢迎的。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
尝试连接到Red5服务器时出现java问题   java实现Runnable的类被认为是ExecutorServices的“Runnable任务”?   java struts2类中的多个@validation   java未能应用插件[class'org.gradle.api.plugins.scala.ScalaBasePlugin']:gradle v2。13   如何使用Java流仅收集长度最大的元素?   从spring引导应用程序连接到firestore的java引发空指针异常   java从SQLite插入和获取真实数据类型会为连续插入获取空值吗?   当存在未知数量的空格时,使用java替代正向查找   部署如何为当今的浏览器部署java小程序(小程序、嵌入、对象)?   @OneToMany和@ManyToOne@Formula之间的java双向关系返回null   java为什么在我的例子中,协议缓冲区的性能比JSON差?   如何部署混合C++/Java(JNI)应用程序?   java如何在程序中显示字符串的完整信息。反恐精英?   java在Hibernate中从持久性上下文中分离实体中的实体