This commit is contained in:
dsyoon
2023-01-27 12:30:55 +09:00
parent ae978a6f24
commit 4482c77497
2 changed files with 4 additions and 5 deletions

View File

@@ -132,12 +132,11 @@ class HTS_DAILY (HTS):
# 매수를 주문한다.
orderNum = self.requestOrder(OrderType.buy, stock_code, buy_count, bs_buy_price)
self.orderChecker.add(today, stock_code, 1, orderNum, buy_count, bs_buy_price)
self.orderChecker.add(today, stock_code, 1, buy_count, bs_buy_price, orderNum)
# 로그 출력
print("BUY", THIS_TIME.strftime('%Y%m%d %H%M%S'), orderNum, stock_code, stock_name, bs_buy_price, buy_count)
"""
# 다음 조건이면 매도한다.
if len(data.index) > 10 and max(bsLine['sell'][len(bsLine['sell']) - 1:]) > 0:
last_index = len(bsLine['sell']) - 1
@@ -148,7 +147,7 @@ class HTS_DAILY (HTS):
# 로그 출력
print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), orderNum, stock_code, stock_name, bs_sell_price)
"""
THIS_TIME = datetime.now()
return