fix(backtest): adopt complete CN calendar pin - #257
Merged
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
cn_chinext_tactical_rotationlifecycle preflight failed on 2023-06-22 because the locked QPK calendar did not include 2023 CN equity closures. The backtest therefore inserted a synthetic market day with no quote and correctly rejected held-asset valuation.Change
4664c2b283e9409a7dae4febf8571260c9f72724, which adds the complete verified 2023 SSE/SZSE closure dates.qsl.toml, lockfile, workflow inputs, and compatibility metadata to that exact QPK revision.The reindex and missing-price protections are unchanged. This PR does not modify quant-monitor, dispatch workflows, collect real market data, or place trades.
Validation
PYTHONPATH=/tmp/qpk-cn-calendar-merged/src:src python3 -m pytest -q tests/test_proxy_backtest.py tests/test_qsl_compat_metadata.py -k 'not research_extra_installs_frozen_sdk_and_consumer_checker'— 36 passed, 1 deselected4664c2b283e9409a7dae4febf8571260c9f72724— passedpython3 -m pip check— passedgit diff --check— passedThe local environment lacks
ai_gateway_client, so the research-extra installation test was left to CI.