Non-US Interactive Brokers index CFDs inherit the US holiday and early-close calendar
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start with the Cfd-interactivebrokers-[*] entry in the market-hours database JSON and with MarketHoursDatabaseJsonConverter, which always merges the [*] holidays into each entry. Run the snippet in the issue to confirm IsDateOpen returns False for 2025-01-20 on IBDE40. Done means the non-US index CFDs keep their own market's calendar, while IBUS500, IBUS30, IBUST100 and the metals still match the current US calendar.
索引モデルが issue の本文から書いたものです。
説明
Observed behavior
The Cfd-interactivebrokers-[*] market-hours entry (America/New_York) defines the US equity calendar: US holidays such as Martin Luther King Jr. Day, Juneteenth, Thanksgiving, and 13:00 early closes such as 2025-11-28. The non-US index CFDs under it (IBDE40, IBGB100, IBEU50, IBFR40, IBES35, IBNL25, IBCH20, IBJP225, IBHK50, IBAU200) define no holidays or early closes of their own, so they inherit the whole US calendar:
var symbol = Symbol.Create("IBDE40", SecurityType.Cfd, Market.InteractiveBrokers);
var hours = MarketHoursDatabase.FromDataFolder().GetExchangeHours(Market.InteractiveBrokers, symbol, SecurityType.Cfd);
Console.WriteLine(hours.IsDateOpen(new DateTime(2025, 1, 20))); // False: MLK Day, but the DAX trades
Console.WriteLine(hours.IsDateOpen(new DateTime(2025, 11, 27))); // False: Thanksgiving
Console.WriteLine(hours.GetLastDailyMarketClose(new DateTime(2025, 11, 28), false)); // early close, not the 21:00 UTC close
Impact
Those CFDs are treated as closed on US holidays and closed early on US half days, even though their underlying markets trade a full session. Algorithms trading them lose those sessions, and orders on those days are rejected or wait for the next open.
What a fix must achieve
Each non-US index CFD gets its own market's holidays and early closes, or explicitly none, instead of the US calendar. The US index CFDs (IBUS500, IBUS30, IBUST100) and the metals keep the current calendar. Note that an entry's own holidays don't replace the market-wide ones: MarketHoursDatabaseJsonConverter always adds the [*] holidays to them. A suggestion is to move the US calendar from [*] to the US entries that need it, and give the non-US entries their own.
- 主要言語
- C#
- スター
- 22.6k
- フォーク
- 5.4k
- 平均マージ
- 11時間 39分
- マージ済み PR(30日)
- 104
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
QuantConnect/Lean のほかの issue
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
QuantConnect/Lean#10216 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10206 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
QuantConnect/Lean#10199 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
QuantConnect/Lean#10198 ·
メンテナーはふだん 1 日以内に返信
-
priority:p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
QuantConnect/Lean#10197 ·
メンテナーはふだん 1 日以内に返信
QuantConnect/Lean の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dotnet-outdated/dotnet-outdated#871 ·
メンテナーはふだん 1 日以内に返信
-
triage/untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
unoplatform/uno#26676 ·
メンテナーはふだん 1 日以内に返信
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jhaizhou-ops/S2Arm#2177 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
area-CodeGen-coreclr untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/runtime#138181 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信