init
This commit is contained in:
@@ -151,6 +151,7 @@ class HTS_Stocks (HTS):
|
||||
bs_buy_weight = bsLine['buy_weight'][last_index]
|
||||
buy_count = int(self.MAX_BUY_PRICE / bs_buy_price)
|
||||
|
||||
if buy_count > 0:
|
||||
# 매수를 주문한다.
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user