init
This commit is contained in:
@@ -1067,7 +1067,7 @@ class HTS:
|
|||||||
self.cancelOrderList()
|
self.cancelOrderList()
|
||||||
# 현재까지 매입금액이 7백만원 이하일 때만 매수를 한다.
|
# 현재까지 매입금액이 7백만원 이하일 때만 매수를 한다.
|
||||||
self.requestOrder("2", stock_code, BUY_COUNT , bs_buy_price)
|
self.requestOrder("2", stock_code, BUY_COUNT , bs_buy_price)
|
||||||
print("BUY", second, bs_buy_price)
|
print("BUY", second, BUY_COUNT, bs_buy_price)
|
||||||
|
|
||||||
if bs_sell_price > 0:
|
if bs_sell_price > 0:
|
||||||
# 매도 가격을 가져온다.
|
# 매도 가격을 가져온다.
|
||||||
@@ -1075,6 +1075,7 @@ class HTS:
|
|||||||
# 분석되 가격으로 매도 요청한다.
|
# 분석되 가격으로 매도 요청한다.
|
||||||
if selling_count != 0 and selling_price != 0:
|
if selling_count != 0 and selling_price != 0:
|
||||||
self.requestOrder("1", stock_code, selling_count, selling_price)
|
self.requestOrder("1", stock_code, selling_count, selling_price)
|
||||||
|
print("SELL", second, selling_count, selling_price)
|
||||||
|
|
||||||
timecheck[second] = True
|
timecheck[second] = True
|
||||||
|
|
||||||
@@ -1086,6 +1087,7 @@ class HTS:
|
|||||||
# 분석되 가격으로 매도 요청한다.
|
# 분석되 가격으로 매도 요청한다.
|
||||||
if selling_count != 0 and selling_price !=0:
|
if selling_count != 0 and selling_price !=0:
|
||||||
self.requestOrder("1", stock_code, selling_count, selling_price)
|
self.requestOrder("1", stock_code, selling_count, selling_price)
|
||||||
|
print("SELL", second, selling_count, selling_price)
|
||||||
|
|
||||||
break
|
break
|
||||||
time.sleep(0.9)
|
time.sleep(0.9)
|
||||||
|
|||||||
Reference in New Issue
Block a user