Eurex calendar is missing its 2003 May 1 and year-end holidays

Open Beginner friendly
#10,191 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp, json

Research direction

Start with Data/market-hours/market-hours-database.json and inspect the Future-eurex-[*] and Index-eurex-[*] entries around 2003, comparing them with other years. Find the existing market-hours tests for holiday dates and add checks that the five listed 2003 dates are closed. Done means both Eurex entries include those closures and the tests verify them.

Written by the indexing model from the issue text.

Description

priority:p2
Observed behavior

The Eurex calendar in Data/market-hours/market-hours-database.json (Future-eurex-[*] and Index-eurex-[*]) lists only three holidays for 2003: 1/1/2003, 4/18/2003 and 4/21/2003. Every other year from 2000 to 2030 also lists Labour Day (May 1) and the Christmas and New Year's Eve closures (Dec 24, 25, 26 and 31) when they fall on a weekday. Eurex follows that same schedule every year, so 2003 is missing 5/1/2003, 12/24/2003, 12/25/2003, 12/26/2003 and 12/31/2003.

var symbol = Symbol.Create("FDAX", SecurityType.Future, Market.EUREX);
var hours = MarketHoursDatabase.FromDataFolder().GetExchangeHours(Market.EUREX, symbol, SecurityType.Future);
Console.WriteLine(hours.IsDateOpen(new DateTime(2003, 12, 25))); // True: Christmas Day
Console.WriteLine(hours.IsDateOpen(new DateTime(2004, 12, 24))); // False: other years list it
Impact

Backtests of Eurex futures and indices over 2003 treat those five days as trading days: they fill forward bars, fire scheduled events and accept orders on them.

What a fix must achieve

The Eurex entries list the 2003 Labour Day, Christmas and New Year's Eve closures that the exchange observed, the same as the other years, and a test checks those dates are closed.

Dominant language
C#
Stars
22.6k
Forks
5.4k
Avg merge
11h 39m
Merged PRs (30d)
104

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from QuantConnect/Lean

All issues in QuantConnect/Lean

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.