This commit is contained in:
dsyoon
2023-01-27 21:33:15 +09:00
parent b1f3baa536
commit b27d436f36
3 changed files with 26 additions and 1 deletions

View File

@@ -15,8 +15,9 @@ class SlackBot:
return
def post_to_slack(self, this_time, stock_code, stock_name, type, price, count):
def post_to_slack(self, stock_code, stock_name, type, price, count):
try:
this_time = datetime.now()
text = "DATE TIME:" + this_time.strftime(
'%Y-%m-%d %H:%M:%S') + ", " + "stock_code:" + stock_code + ", " + "stock_name:" + stock_name + ", " + "type:" + type + ", " + "price:" + str(
price) + ", " + "count:" + str(count)