From e04de66a40430e14d5b7f274e9b4ea33ac20f7ed Mon Sep 17 00:00:00 2001 From: xdifu <79061190+xdifu@users.noreply.github.com> Date: Tue, 25 Nov 2025 06:58:06 +0800 Subject: [PATCH] fix: respect skip-monthly and skip-daily flags in futures markPrice script --- python/download-futures-markPriceKlines.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/download-futures-markPriceKlines.py b/python/download-futures-markPriceKlines.py index d1a2bf3..b19ff50 100644 --- a/python/download-futures-markPriceKlines.py +++ b/python/download-futures-markPriceKlines.py @@ -118,7 +118,9 @@ def download_daily_markPriceKlines(trading_type, symbols, num_symbols, intervals period = convert_to_date_object(datetime.today().strftime('%Y-%m-%d')) - convert_to_date_object(PERIOD_START_DATE) dates = pd.date_range(end=datetime.today(), periods=period.days + 1).to_pydatetime().tolist() dates = [date.strftime("%Y-%m-%d") for date in dates] - download_monthly_markPriceKlines(args.type, symbols, num_symbols, args.intervals, args.years, args.months, + if args.skip_monthly == 0: + download_monthly_markPriceKlines(args.type, symbols, num_symbols, args.intervals, args.years, args.months, args.startDate, args.endDate, args.folder, args.checksum) - download_daily_markPriceKlines(args.type, symbols, num_symbols, args.intervals, dates, args.startDate, + if args.skip_daily == 0: + download_daily_markPriceKlines(args.type, symbols, num_symbols, args.intervals, dates, args.startDate, args.endDate, args.folder, args.checksum)