init
This commit is contained in:
@@ -125,7 +125,10 @@ class HTS_DAILY (HTS):
|
|||||||
if bsLine['buy'][last_index] > 0:
|
if bsLine['buy'][last_index] > 0:
|
||||||
bs_buy_price = bsLine['buy'][last_index]
|
bs_buy_price = bsLine['buy'][last_index]
|
||||||
bs_buy_weight = bsLine['buy_weight'][last_index]
|
bs_buy_weight = bsLine['buy_weight'][last_index]
|
||||||
buy_count = int((self.MAX_BUY_PRICE*bs_buy_weight) / bs_buy_price)
|
if stock_code == "252670":
|
||||||
|
buy_count = int(1000000 / bs_buy_price)
|
||||||
|
else:
|
||||||
|
buy_count = int((self.MAX_BUY_PRICE*bs_buy_weight) / bs_buy_price)
|
||||||
|
|
||||||
# 매수를 주문한다.
|
# 매수를 주문한다.
|
||||||
orderNum = self.requestOrder(OrderType.buy, stock_code, buy_count, bs_buy_price)
|
orderNum = self.requestOrder(OrderType.buy, stock_code, buy_count, bs_buy_price)
|
||||||
|
|||||||
Reference in New Issue
Block a user