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

Aperta Adatta ai principianti
#10,191 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, json

Direzione di ricerca

Inizia da Data/market-hours/market-hours-database.json e ispeziona le voci Future-eurex-[*] e Index-eurex-[*] relative al 2003, confrontandole con quelle di altri anni. Trova i test esistenti sugli orari di mercato per le date festive e aggiungi controlli che verifichino che le cinque date indicate del 2003 siano chiuse. Il lavoro è completato quando entrambe le voci Eurex includono queste chiusure e i test le verificano.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
22.5k
Fork
5.4k
Merge medio
13h 11m
PR unite (30g)
104

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di QuantConnect/Lean

Tutte le issue di QuantConnect/Lean

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.