init
This commit is contained in:
@@ -142,6 +142,10 @@ class HTS_etf(HTS):
|
|||||||
LAST_DATA = self.getLastData(self.stock_code, today)
|
LAST_DATA = self.getLastData(self.stock_code, today)
|
||||||
|
|
||||||
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
||||||
|
if THIS_TIME < datetime.strptime(today + " 085500", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("wait... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 090100", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("start... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
|
||||||
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
||||||
|
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ class HTS_etf(HTS):
|
|||||||
LAST_DATA = self.getLastData(self.stock_code, today)
|
LAST_DATA = self.getLastData(self.stock_code, today)
|
||||||
|
|
||||||
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
||||||
|
if THIS_TIME < datetime.strptime(today + " 085500", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("wait... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 090100", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("start... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
|
||||||
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'):
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'):
|
||||||
|
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ class HTS_etf(HTS):
|
|||||||
LAST_DATA = self.getLastData(self.stock_code, today)
|
LAST_DATA = self.getLastData(self.stock_code, today)
|
||||||
|
|
||||||
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
||||||
|
if THIS_TIME < datetime.strptime(today + " 085500", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("wait... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 090100", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("start... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
|
||||||
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
||||||
|
|
||||||
|
|||||||
@@ -143,6 +143,10 @@ class HTS_etf(HTS):
|
|||||||
LAST_DATA = self.getLastData(self.stock_code, today)
|
LAST_DATA = self.getLastData(self.stock_code, today)
|
||||||
|
|
||||||
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
while datetime.strptime(today + " 063000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100",'%Y%m%d %H%M%S'):
|
||||||
|
if THIS_TIME < datetime.strptime(today + " 085500", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("wait... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 090100", '%Y%m%d %H%M%S'):
|
||||||
|
self.slackBot.sendMsg("start... {} ({}) RSI: {}".format(self.stock_code, self.stock_name, rsi))
|
||||||
|
|
||||||
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
if datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 151500", '%Y%m%d %H%M%S'):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user