init
This commit is contained in:
@@ -477,7 +477,7 @@ class HTS_etf(HTS):
|
|||||||
BUY_LIST[stock_code]['buy_avg'] = 0
|
BUY_LIST[stock_code]['buy_avg'] = 0
|
||||||
BUY_LIST[stock_code]['buy_count'] = 0
|
BUY_LIST[stock_code]['buy_count'] = 0
|
||||||
BUY_LIST[stock_code]['buy_list'].clear()
|
BUY_LIST[stock_code]['buy_list'].clear()
|
||||||
self.bot.sendMsg( "Profit {:.2f}, {} ({})".format(profit, stock_code, stock_name))
|
self.bot.sendMsg( "[SELL] Profit {:.2f}, {} ({})".format(profit, stock_code, stock_name))
|
||||||
|
|
||||||
if 'buy_price' in bsLine1:
|
if 'buy_price' in bsLine1:
|
||||||
buy_price = bsLine1['buy_price'][-1]
|
buy_price = bsLine1['buy_price'][-1]
|
||||||
|
|||||||
@@ -208,12 +208,14 @@ class HTS:
|
|||||||
|
|
||||||
orderNum = objStockOrder.GetHeaderValue(0)
|
orderNum = objStockOrder.GetHeaderValue(0)
|
||||||
|
|
||||||
|
"""
|
||||||
if (type == "1"):
|
if (type == "1"):
|
||||||
self.bot.post(stock_code, stock_code, "SELL", price, count, 0)
|
self.bot.post(stock_code, stock_code, "SELL", price, count, 0)
|
||||||
print ("(SELL", count, price, ")")
|
print ("(SELL", count, price, ")")
|
||||||
else:
|
else:
|
||||||
self.bot.post(stock_code, stock_code, "BUY", price, count, 0)
|
self.bot.post(stock_code, stock_code, "BUY", price, count, 0)
|
||||||
print ("(BUY", count, price, ")")
|
print ("(BUY", count, price, ")")
|
||||||
|
"""
|
||||||
return orderNum
|
return orderNum
|
||||||
|
|
||||||
# 계좌 잔고 확인
|
# 계좌 잔고 확인
|
||||||
|
|||||||
Reference in New Issue
Block a user