Skip to content

Add DateRules.QuarterStart and DateRules.QuarterEnd#9454

Merged
Martin-Molinero merged 1 commit into
QuantConnect:masterfrom
AlexCatarino:fix-9453-quarter-date-rules
May 6, 2026
Merged

Add DateRules.QuarterStart and DateRules.QuarterEnd#9454
Martin-Molinero merged 1 commit into
QuantConnect:masterfrom
AlexCatarino:fix-9453-quarter-date-rules

Conversation

@AlexCatarino
Copy link
Copy Markdown
Member

@AlexCatarino AlexCatarino commented May 5, 2026

Summary

  • Adds DateRules.QuarterStart and DateRules.QuarterEnd (no-symbol, string symbol, and Symbol overloads), mirroring the existing MonthStart/MonthEnd and YearStart/YearEnd API.
  • Introduces QuarterIterator helper using BaseIterator so behaviour (offsets, boundaries, extended market hours, holidays) matches the existing month/year rules.
  • Tests covering no-symbol, no-symbol with offset, no-symbol mid-quarter start, with symbol, end-of-quarter (with and without offset), and offset-out-of-range validation for both methods.

Closes #9453

Test plan

  • dotnet test Tests/QuantConnect.Tests.csproj --filter FullyQualifiedName~DateRulesTests (45 passed)

Closes QuantConnect#9453

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@Martin-Molinero Martin-Molinero merged commit 6035c1c into QuantConnect:master May 6, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adds QuarterStart and QuanterEnd Date Rules

2 participants