modify scripts

This commit is contained in:
2025-08-12 11:20:41 +08:00
parent 5a4cbb5b16
commit 59f0960726

View File

@ -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)