This commit is contained in:
dsyoon
2023-01-28 22:32:23 +09:00
parent af152209a8
commit 4f2966991d

View File

@@ -11,7 +11,7 @@ from hts.BuySellChecker import BuySellChecker
from hts.OrderChecker import OrderChecker
from stock.util.SlackBot import SlackBot
class HTS_DAILY (HTS):
class HTS_Stocks (HTS):
RESOURCE_PATH = None
orderChecker = None
@@ -127,9 +127,6 @@ class HTS_DAILY (HTS):
if bsLine['buy'][last_index] > 0:
bs_buy_price = bsLine['buy'][last_index]
bs_buy_weight = bsLine['buy_weight'][last_index]
if stock_code == "252670" or stock_code == "122630":
buy_count = int(5000000 / bs_buy_price)
else:
buy_count = int(self.MAX_BUY_PRICE / bs_buy_price)
# 매수를 주문한다.
@@ -170,7 +167,7 @@ if __name__ == "__main__":
PROJECT_HOME = os.getcwd()
RESOURCE_PATH = os.path.join(PROJECT_HOME, "resources")
hts = HTS_DAILY(RESOURCE_PATH)
hts = HTS_Stocks(RESOURCE_PATH)
today_str = today.strftime('%Y%m%d')
hts.buyRealTime(today_str)