init
This commit is contained in:
@@ -268,6 +268,9 @@ def monitor_us_stocks():
|
||||
|
||||
if info['buy']:
|
||||
#if info['buy'] or any(info['buy_signals'].values()):
|
||||
if message == "":
|
||||
message = "[US-STOCK]\n"
|
||||
|
||||
message += format_message(info, 'US')
|
||||
except Exception as e:
|
||||
print(f"Error processing data for {symbol}: {str(e)}")
|
||||
@@ -298,6 +301,8 @@ def monitor_kr_stocks():
|
||||
|
||||
if info['buy']:
|
||||
#if info['buy'] or any(info['buy_signals'].values()):
|
||||
if message == "":
|
||||
message = "[KR-STOCK]\n"
|
||||
message += format_message(info, 'KR')
|
||||
|
||||
except Exception as e:
|
||||
@@ -315,7 +320,7 @@ def monitor_kr_stocks():
|
||||
|
||||
|
||||
def monitor_coins():
|
||||
message = "[KRW-Coin]\n"
|
||||
message = ""
|
||||
|
||||
# 코인 모니터링
|
||||
print("KRW Coins {}".format(datetime.now().strftime('%Y-%m-%d %H:%M:%S')))
|
||||
@@ -330,6 +335,8 @@ def monitor_coins():
|
||||
|
||||
if info['buy']:
|
||||
#if info['buy'] or any(info['buy_signals'].values()):
|
||||
if message == "":
|
||||
message = "[KRW-Coin]\n"
|
||||
message += format_message(info, 'KR')
|
||||
except Exception as e:
|
||||
print(f"Error processing data for {symbol}: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user