Skip to content

Commit

Permalink
股票封板监控 重构
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockyzsu committed Jun 7, 2022
1 parent 05dc8b9 commit 7b48300
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@

*fund/ 基金相关的分析部分*

*futu/ 富途牛牛接口的基本用法 *

*hk_stock/ 港股部分*

*k-line/ K线技术形态部分*

*machine_learning/ 机器学习预测*

*trader/ 交易部分*

*ptrade/ ptrade量化交易实盘代码*
*ptrade/ ptrade自动交易实盘代码*

*log/* 存放日志

Expand Down Expand Up @@ -57,6 +63,7 @@
* datahub/public_private_fund_members.py 公墓私募基金成员数据
* datahub/jucao_ammouncement.py 巨潮公告批量获取+PDF下载
* datahub/bond_industry_info.py 可转债行业分布
* datahub/ceiling_break.py 涨停板封榜监控

## k-line (K线技术形态识别)
* k-line/recognize_form.py 通过talib识别常见形态,如三只乌鸦等
Expand Down
8 changes: 4 additions & 4 deletions ceiling_break.py → monitor/ceiling_break.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Contact: weigesysu@qq.com
'''

# 重构
# 股票封板监控

import time
import datetime
Expand Down Expand Up @@ -50,7 +50,7 @@ def break_ceil(self, code):
while 1:

# 交易时间
if trading_time() != 0:
if self.trading_time() != 0:
break

try:
Expand All @@ -65,7 +65,7 @@ def break_ceil(self, code):
if self.percent(float(df.iloc[0]['price']), float(df.iloc[0]['pre_close'])) < 9:
if self.send == True:
title = f'{code}已经板了'
notify(title)
self.notify(title)
break

if v <= 1000:
Expand All @@ -74,7 +74,7 @@ def break_ceil(self, code):
print(self.bases[self.bases['code'] == code]['name'].values[0])
if self.send == True:
title = f'{code}开板了'
notify(title)
self.notify(title)

time.sleep(10)

Expand Down

0 comments on commit 7b48300

Please sign in to comment.