diff --git a/src/static/daily_snap_em.py b/src/static/daily_snap_em.py index edb1ddb..3897dfe 100644 --- a/src/static/daily_snap_em.py +++ b/src/static/daily_snap_em.py @@ -245,6 +245,9 @@ def main(list, args_debug, notify): if not trading_date: logging.error(f"无法获取 {market_id} 市场的交易日期") continue + if trading_date != current_date and not debug: + logging.info(f"非交易日,不处理 {market_id} 市场,当前交易日期: {trading_date}, 当前日期: {current_date}") + continue # 获取快照数据 snap_data = fetch_snap_all(market_id, trading_date)