Skip to content

Commit

Permalink
readcb()
Browse files Browse the repository at this point in the history
  • Loading branch information
winsert committed Mar 27, 2020
1 parent 7805912 commit 35115d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions an.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@
from datetime import datetime

from cbond.readcb import readCB #读出 code!= 0 的可转债,可交换债的所有信息
from cbond.readcb import readCB3 #读出 code=3(持仓) 可转债,可交换债的所有信息
from cbond.cxcb import getCB #进行高价折扣和三线分析的模块
from cbond.cxqs import getQS #强赎模块
from cbond.cxindex import getIndex #指数模块

if __name__ == '__main__':

# 持仓的转债列表
list3 = readCB3()
list3 = readCB(3)

#要查询的指数代码
index = {
Expand Down Expand Up @@ -114,6 +113,7 @@
i = i +1

time.sleep(100) # 延时查询的秒数,120即延时2分钟查询一次。
print time.asctime(time.localtime(time.time())) #显示查询时间

# 查询指数收盘的涨跌情况
for k in index.keys():
Expand All @@ -123,8 +123,8 @@
print index_msg
itchat.send(index_msg, toUserName = userName)

# code!= 0 的转债列表(非强赎转债)
listCB = readCB()
# code!= -1 的转债列表(非强赎转债)
listCB = readCB(-1)
#计算转债的强赎天数,更新最高价和最低价:
qsMsgList = getQS(listCB)
if len(qsMsgList) > 0:
Expand All @@ -136,4 +136,4 @@
itchat.send(endMsg, toUserName='filehelper')
itchat.send(endMsg, toUserName = userName)
itchat.logout()
exit()
exit()

0 comments on commit 35115d3

Please sign in to comment.