a little change

This commit is contained in:
blade 2025-08-05 17:08:10 +08:00
parent c6edebe674
commit eb07932a3c
2 changed files with 4 additions and 3 deletions

View File

@ -237,7 +237,7 @@ class MarketData:
count += 1 count += 1
if count > 3: if count > 3:
break break
time.sleep(10) time.sleep(5)
return response return response
def get_data_from_db(self, symbol, bar, db_url): def get_data_from_db(self, symbol, bar, db_url):

View File

@ -285,6 +285,7 @@ def get_long_short_over_buy_sell(
result = {} result = {}
symbol = row["symbol"] symbol = row["symbol"]
bar = row["bar"] bar = row["bar"]
date_time = row["date_time"]
ma_long_short = str(row["ma_long_short"]) ma_long_short = str(row["ma_long_short"])
macd_signal = str(row["macd_signal"]) macd_signal = str(row["macd_signal"])
macd_divergence = str(row["macd_divergence"]) macd_divergence = str(row["macd_divergence"])
@ -294,7 +295,7 @@ def get_long_short_over_buy_sell(
boll_signal = str(row["boll_signal"]) boll_signal = str(row["boll_signal"])
boll_pattern = str(row["boll_pattern"]) boll_pattern = str(row["boll_pattern"])
contents = [] contents = []
contents.append(f"### {symbol} {bar} 对比形态") contents.append(f"### {symbol} {bar} 对比形态 {date_time}")
if ma_long_short in ["", ""]: if ma_long_short in ["", ""]:
contents.append(f"均线形态: {ma_long_short}") contents.append(f"均线形态: {ma_long_short}")
else: else: