init
This commit is contained in:
@@ -632,7 +632,7 @@ class HTS:
|
|||||||
"high": [],
|
"high": [],
|
||||||
"low": [],
|
"low": [],
|
||||||
"vol": []}
|
"vol": []}
|
||||||
|
price = 0
|
||||||
while datetime.strptime(given_day + " 083000", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(given_day + " 151500", '%Y%m%d %H%M%S'):
|
while datetime.strptime(given_day + " 083000", '%Y%m%d %H%M%S') < datetime.now() < datetime.strptime(given_day + " 151500", '%Y%m%d %H%M%S'):
|
||||||
second = datetime.now().strftime('%Y%m%d %H%M%S')
|
second = datetime.now().strftime('%Y%m%d %H%M%S')
|
||||||
|
|
||||||
@@ -679,7 +679,8 @@ class HTS:
|
|||||||
jangoDic = self.requstJango()
|
jangoDic = self.requstJango()
|
||||||
if len(jangoDic) > 0:
|
if len(jangoDic) > 0:
|
||||||
for code in jangoDic:
|
for code in jangoDic:
|
||||||
self.requestOrder("1", stock_code, jangoDic[code]['잔고수량'], jangoDic[code]['장부가'] + 5)
|
#self.requestOrder("1", stock_code, jangoDic[code]['잔고수량'], jangoDic[code]['장부가'] + 5)
|
||||||
|
self.requestOrder("1", stock_code, jangoDic[code]['잔고수량'], price + 5)
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user