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

未关闭 适合新手
#10,191 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
csharp, json

调研方向

从Data/market-hours/market-hours-database.json开始,检查2003年前后的Future-eurex-[*]和Index-eurex-[*]条目,并与其他年份进行比较。找到现有的节假日市场时间测试,并添加检查以确认所列的五个2003年日期均为休市日。完成标准是两个Eurex条目都包含这些休市日期,且测试能够验证它们。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C#
星标
22.5k
派生
5.4k
平均合并
13 小时 11 分钟
30 天内合并 PR
104

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

QuantConnect/Lean 的其他 Issue

查看 QuantConnect/Lean 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。