This commit is contained in:
dsyoon
2023-01-26 20:44:47 +09:00
parent 9f76a00dc7
commit 4b54803d09
2 changed files with 29 additions and 21 deletions

View File

@@ -79,7 +79,6 @@ class HTS_DAILY (HTS):
THIS_TIME = datetime.now()
valid_company = self.valid_company()
self.orderChecker.read(today)
while datetime.strptime(today + " 070000", '%Y%m%d %H%M%S') < THIS_TIME < datetime.strptime(today + " 153100", '%Y%m%d %H%M%S'):
@@ -121,7 +120,7 @@ class HTS_DAILY (HTS):
# 다음 조건이면 매수한다.
if len(data.index) > 10 and max(bsLine['buy'][len(bsLine['buy']) - 1:]) > 1000:
if not self.orderChecker.exist(stock_code):
if not self.orderChecker.exist(today, stock_code):
last_index = len(bsLine['buy'])-1
if bsLine['buy'][last_index] > 0:
bs_buy_price = bsLine['buy'][last_index]