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