Skip to content

Fix SZSE trading calendar fetch for historical years (2000-2004)#2142

Open
universeplayer wants to merge 1 commit intomicrosoft:mainfrom
universeplayer:fix/szse-calendar-fetch
Open

Fix SZSE trading calendar fetch for historical years (2000-2004)#2142
universeplayer wants to merge 1 commit intomicrosoft:mainfrom
universeplayer:fix/szse-calendar-fetch

Conversation

@universeplayer
Copy link

Summary

  • Remove dead SZSE_CALENDAR_URL constant left behind after the akshare refactor in refactor(data_collector): use akshare to build unified trade calendar #2093
  • Remove debug print statements that created unnecessary Ticker network requests and printed raw objects to stdout
  • Add error handling around the akshare calendar fetch (ak.tool_trade_date_hist_sina()) to provide clear error messages when akshare is not installed or the Sina API is unavailable

Test plan

  • Verify get_calendar_list("ALL") works correctly with akshare installed
  • Verify a clear ImportError message is shown when akshare is not installed
  • Verify other calendar codes (CSI300, US_ALL, etc.) still work as expected

Fixes #2088

🤖 Generated with Claude Code

Remove dead SZSE_CALENDAR_URL constant left behind after the akshare
refactor. Remove debug print statements that created unnecessary
Ticker network requests. Add error handling around the akshare
calendar fetch to provide clear error messages when akshare is not
installed or the Sina API is unavailable.

Fixes microsoft#2088

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant