init
This commit is contained in:
@@ -128,7 +128,7 @@ class HTS_etf (HTS):
|
|||||||
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'):
|
||||||
|
|
||||||
# 매도를 체크한다.
|
# 매도를 체크한다.
|
||||||
###self.sellStocks()
|
self.sellStocks()
|
||||||
|
|
||||||
for stock in stocks:
|
for stock in stocks:
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class HTS_Stocks (HTS):
|
|||||||
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'):
|
||||||
|
|
||||||
# 매도를 체크한다.
|
# 매도를 체크한다.
|
||||||
###self.sellStocks()
|
self.sellStocks()
|
||||||
|
|
||||||
for idx, item in enumerate(all_stocks):
|
for idx, item in enumerate(all_stocks):
|
||||||
if THIS_TIME < datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') or datetime.strptime(today + " 151500", '%Y%m%d %H%M%S') < THIS_TIME:
|
if THIS_TIME < datetime.strptime(today + " 090000", '%Y%m%d %H%M%S') or datetime.strptime(today + " 151500", '%Y%m%d %H%M%S') < THIS_TIME:
|
||||||
|
|||||||
Reference in New Issue
Block a user