init
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user