init
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user