Skip to content

Fix QuantBook start/end date validation in research#9386

Open
aiSynergy37 wants to merge 1 commit intoQuantConnect:masterfrom
aiSynergy37:fix/issue-6593-quantbook-date-range
Open

Fix QuantBook start/end date validation in research#9386
aiSynergy37 wants to merge 1 commit intoQuantConnect:masterfrom
aiSynergy37:fix/issue-6593-quantbook-date-range

Conversation

@aiSynergy37
Copy link
Copy Markdown
Contributor

What\n- add QuantBook-specific SetStartDate/SetEndDate wrappers that validate date bounds after each assignment\n- throw ArgumentException when EndDate < StartDate with the expected user-facing message\n- add regression tests for both DateTime and integer overloads\n\n## Why\nIssue #6593 reports that research notebooks accept incompatible start/end dates without raising an error. This can lead to confusing behavior when users configure date ranges in the wrong order.\n\n## How\n- hide the base date setter methods in QuantBook using

ew overloads and delegate to �ase setters\n- call a shared private validator after each setter to enforce a valid range\n- assert the exact exception message in QuantBookTests for both overload paths\n\nCloses #6593

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.

2 participants