Skip to content

fix: implement missing skip-monthly/daily logic in futures markPrice script#446

Open
xdifu wants to merge 1 commit intobinance:masterfrom
xdifu:fix/futures-markprice-skip-flags
Open

fix: implement missing skip-monthly/daily logic in futures markPrice script#446
xdifu wants to merge 1 commit intobinance:masterfrom
xdifu:fix/futures-markprice-skip-flags

Conversation

@xdifu
Copy link

@xdifu xdifu commented Nov 24, 2025

Description

This PR fixes a long-standing bug introduced in commit df27179 (May 2022) where python/download-futures-markPriceKlines.py ignored the -skip-monthly and -skip-daily arguments.

Unlike download-kline.py, this script was unconditionally downloading data types even when explicitly asked to skip them. This PR aligns the behavior of the mark price script with the rest of the codebase.

Changes

  • Wrapped download_monthly_markPriceKlines call with if args.skip_monthly == 0:.
  • Wrapped download_daily_markPriceKlines call with if args.skip_daily == 0:.

Verification

  • Verified that running with -skip-daily 1 now correctly skips the daily download phase.
  • Verified that running with -skip-monthly 1 now correctly skips the monthly download phase.

Related Issue

Closes #445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

python/download-futures-markPriceKlines.py ignores -skip-monthly and -skip-daily flags

1 participant