Skip to content

Add DateRules.QuarterStart and DateRules.QuarterEnd#9454

Open
AlexCatarino wants to merge 1 commit intoQuantConnect:masterfrom
AlexCatarino:fix-9453-quarter-date-rules
Open

Add DateRules.QuarterStart and DateRules.QuarterEnd#9454
AlexCatarino wants to merge 1 commit intoQuantConnect: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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adds QuarterStart and QuanterEnd Date Rules

1 participant