init
This commit is contained in:
@@ -161,9 +161,6 @@ class HTS_etf(HTS):
|
||||
orderNum = self.requestOrder(OrderType.buy, stock_code, buy_count, bs_buy_price)
|
||||
self.orderChecker.buy(today, "A" + stock_code, buy_count, bs_buy_price, orderNum)
|
||||
|
||||
# slackbot에 메시지를 보냄
|
||||
self.slackBot.post_to_slack(stock_code, stock_code, "BUY", bsLine['buy'][len(bsLine['buy']) - 1], buy_count)
|
||||
|
||||
# 로그 출력
|
||||
print("BUY", THIS_TIME.strftime('%Y%m%d %H%M%S'), orderNum, stock_code, bs_buy_price, buy_count)
|
||||
|
||||
@@ -171,8 +168,6 @@ class HTS_etf(HTS):
|
||||
check = self.sellStocks(stock_code, bs_sell_price)
|
||||
|
||||
if check:
|
||||
# slackbot에 메시지를 보냄
|
||||
self.slackBot.post_to_slack(stock_code, stock_code, "SELL", bs_sell_price, 'ALL')
|
||||
|
||||
# 로그 출력
|
||||
print("SELL", THIS_TIME.strftime('%Y%m%d %H%M%S'), stock_code, stock_code, bs_sell_price)
|
||||
|
||||
Reference in New Issue
Block a user