Skip to content

fix(calendar): cover 2023 CN equity holidays - #603

Merged
Pigbibi merged 1 commit into
mainfrom
fix/cn-calendar-20260914
Sep 14, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/cn-calendar-20260914

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Problem

The CN proxy backtest reconstructs CN trading days for historical windows beginning in 2023, but the pinned calendar only covered weekday holidays from 2024 onward. The first 2023 holiday was inserted as a trading day with no quotes, so a held asset correctly failed closed during valuation and the CN lifecycle artifact was not produced.

Change

  • Add the complete 2023 SSE/SZSE weekday closure dates to the existing CN equity calendar.
  • Add regression coverage for all 2023 weekday closures and representative post-holiday trading days.

The change keeps missing-price rejection and valuation fail-closed behavior unchanged and does not modify any other year.

Validation

  • PYTHONPATH=src python3 -m pytest -q tests/test_cn_equity_calendar.py — 9 passed, 24 subtests passed
  • git diff --check

Co-Authored-By: Codex <noreply@openai.com>
@Pigbibi
Pigbibi merged commit 4664c2b into main Sep 14, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/cn-calendar-20260914 branch September 14, 2026 12:41
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.

1 participant