A market calendar where holidays are computed, not typed in
说明与用途
自动计算的立陶宛节假日日历,消除过时表格和手动输入错误,为交易系统提供准确数据。
问题
Hardcoded holiday tables become outdated and error-prone, especially for movable feasts like Easter, leading to incorrect market open/close calculations in trading systems.
结果
Computed holiday logic eliminates table exhaustion, reduces manual errors, and ensures accurate market open/close determination for trading systems.
工作流
- Install the package via pip.
- Import the holidays function from aion_lithuanian_market_calendar.
- Call holidays(year) to generate holiday objects for the desired year.
- Iterate over the returned holidays to access date, English name, and Lithuanian name.
- Use the holiday data in trading system logic to determine market open status.
- Update or correct rules via the open-source repository if needed.
证据
Most holiday libraries ship a dictionary of dates. Someone types them in for the next few years, and the package works until it silently does not.
Because the rule is computed, any year works:
The package makes no network calls in normal use.
- 记录日期: 2026-09-07T00:52:44.632Z