树懒的股票。
项目描述
树懒股票
树懒的股票。
入门
安装
pip install -U slothstock
用法
$ 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]
[--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
Buy:
--reserve-st Flag to reserve ST stocks. (default: False)
--reserve-suspend Flag to reserve suspended stocks. (default: False)
--check-great-great-grandparent
Flag to check great_great_grandparent 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: [])
$ 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
去做
- 从雪球获取股票信息。
- MACD指标。
- 微信推送通知。
- 具有正面案例和结构的基本单元测试。
- EBK文件导入导出。
- 守护进程模式。
- 购买信号脚本。
- 卖出信号脚本。
- 为频繁获取的数据添加缓存。
- 记录器。
- Cronjob 指南或类似的东西。
- 监控库存管理。
- 文档。
- 更健壮的单元测试。
贡献
- 通过 github 问题发表评论或建议。
- 绝对欢迎拉取请求。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
slothstock-0.3.2.tar.gz
(15.6 kB
查看哈希)
内置分布
slothstock-0.3.2-py3-none-any.whl
(17.1 kB
查看哈希)
关
slothstock -0.3.2.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | b515b14bd46aa48fae5f9d77db70c7db72e28a64227b33ef8f03225fa1e17a6a |
|
| MD5 | a36d8933996ed4f535c548bbf767ede5 |
|
| 布莱克2-256 | d9deea6fbe21239b10a62e39e70dce5834ac63f5392b96ec68b1e27587929284 |
关
slothstock -0.3.2-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 5c2f65044aeedab00da39fbbd6ec414f8272339f1c886c5ad75a6028fb60ad67 |
|
| MD5 | 2d96afef1e4cccd4898f83359707767e |
|
| 布莱克2-256 | 70f94d8da8c10973bad0c54236985f59055e88320f07271a252f42e28090f96f |