diff --git a/hts/HTS.py b/hts/HTS.py index 0a6467a..dab81cf 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -209,10 +209,10 @@ class HTS: orderNum = objStockOrder.GetHeaderValue(0) if (type == "1"): - self.bot.post(stock_code, stock_code, "SELL", price, count) + self.bot.post(stock_code, stock_code, "SELL", price, count, 0) print ("(SELL", count, price, ")") else: - self.bot.post(stock_code, stock_code, "BUY", price, count) + self.bot.post(stock_code, stock_code, "BUY", price, count, 0) print ("(BUY", count, price, ")") return orderNum diff --git a/stock/util/TelegramBot.py b/stock/util/TelegramBot.py index 9ed69ca..ef4da2a 100644 --- a/stock/util/TelegramBot.py +++ b/stock/util/TelegramBot.py @@ -24,9 +24,9 @@ class TelegramBot: username for the bot: ncue_stock_bot token to access the HTTP API: 6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw """ - self.botname = "coinbot" - self.username = "ncue_coin_bot" - self.token = "6435061393:AAHOh9wB5yGNGUdb3SfCYJrrWTBe7wgConM" + self.botname = "stockbot" + self.username = "ncue_stock_bot" + self.token = "6874078562:AAEHxGDavfc0ssAXPQIaW8JGYmTR7LNUJOw" self.chat_id = '574661323' self.client = telegram.Bot(token=self.token)