You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled Exception is thrown - maximum date time must be less than or equal to the minimum. Details below:
Unhandled Exception: System.ArgumentException: The maximum date time must be less than or equal to the minimum date time specified at QuantConnect.ToolBox.RandomDataGenerator.RandomValueGenerator.NextDate (System.DateTime minDateTime, System.DateTime maxDateTime, System.Nullable1[T] dayOfWeek) [0x0001c] in <2c66f80613ff41adb34692107bcbb7d4>:0
at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.GenerateRandomData (QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorSettings settings, QuantConnect.ToolBox.RandomDataGenerator.ConsoleLeveledOutput output) [0x00122] in <2c66f80613ff41adb34692107bcbb7d4>:0
at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.RandomDataGenerator (System.String startDateString, System.String endDateString, System.String symbolCountString, System.String market, System.String securityTypeString, System.String resolutionString, System.String dataDensityString, System.String includeCoarseString, System.String quoteTradeRatioString, System.String randomSeed, System.String hasIpoPercentageString, System.String hasRenamePercentageString, System.String hasSplitsPercentageString, System.String hasDividendsPercentageString, System.String dividendEveryQuarterPercentageString) [0x00028] in <2c66f80613ff41adb34692107bcbb7d4>:0
at QuantConnect.ToolBox.Program.Main (System.String[] args) [0x010d3] in <2c66f80613ff41adb34692107bcbb7d4>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The maximum date time must be less than or equal to the minimum date time specified
at QuantConnect.ToolBox.RandomDataGenerator.RandomValueGenerator.NextDate (System.DateTime minDateTime, System.DateTime maxDateTime, System.Nullable1[T] dayOfWeek) [0x0001c] in <2c66f80613ff41adb34692107bcbb7d4>:0 at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.GenerateRandomData (QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorSettings settings, QuantConnect.ToolBox.RandomDataGenerator.ConsoleLeveledOutput output) [0x00122] in <2c66f80613ff41adb34692107bcbb7d4>:0 at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.RandomDataGenerator (System.String startDateString, System.String endDateString, System.String symbolCountString, System.String market, System.String securityTypeString, System.String resolutionString, System.String dataDensityString, System.String includeCoarseString, System.String quoteTradeRatioString, System.String randomSeed, System.String hasIpoPercentageString, System.String hasRenamePercentageString, System.String hasSplitsPercentageString, System.String hasDividendsPercentageString, System.String dividendEveryQuarterPercentageString) [0x00028] in <2c66f80613ff41adb34692107bcbb7d4>:0 at QuantConnect.ToolBox.Program.Main (System.String[] args) [0x010d3] in <2c66f80613ff41adb34692107bcbb7d4>:0
* Update RandomDataGeneratorProgram.cs
Replaced AddMonths(6) with a Datetime value half way between settings.Start and settings.End.
* Update RandomDataGeneratorProgram.cs
* Update to bug-5030-CFDdatanotoworking
* Added midpoint unit test
* Minor test assert improvement
Co-authored-by: Martin Molinero <martin.molinero1@gmail.com>
Hey!
This is working in current Lean master, must of been fixed in recent random data generator refactoring to support options. Will close the issue for now. Please re open if still having issues
Expected Behavior
Expected the creation of random data for CFDs.
Actual Behavior
Unhandled Exception is thrown - maximum date time must be less than or equal to the minimum. Details below:
Unhandled Exception: System.ArgumentException: The maximum date time must be less than or equal to the minimum date time specified at QuantConnect.ToolBox.RandomDataGenerator.RandomValueGenerator.NextDate (System.DateTime minDateTime, System.DateTime maxDateTime, System.Nullable
1[T] dayOfWeek) [0x0001c] in <2c66f80613ff41adb34692107bcbb7d4>:0at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.GenerateRandomData (QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorSettings settings, QuantConnect.ToolBox.RandomDataGenerator.ConsoleLeveledOutput output) [0x00122] in <2c66f80613ff41adb34692107bcbb7d4>:0
at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.RandomDataGenerator (System.String startDateString, System.String endDateString, System.String symbolCountString, System.String market, System.String securityTypeString, System.String resolutionString, System.String dataDensityString, System.String includeCoarseString, System.String quoteTradeRatioString, System.String randomSeed, System.String hasIpoPercentageString, System.String hasRenamePercentageString, System.String hasSplitsPercentageString, System.String hasDividendsPercentageString, System.String dividendEveryQuarterPercentageString) [0x00028] in <2c66f80613ff41adb34692107bcbb7d4>:0
at QuantConnect.ToolBox.Program.Main (System.String[] args) [0x010d3] in <2c66f80613ff41adb34692107bcbb7d4>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The maximum date time must be less than or equal to the minimum date time specified
at QuantConnect.ToolBox.RandomDataGenerator.RandomValueGenerator.NextDate (System.DateTime minDateTime, System.DateTime maxDateTime, System.Nullable
1[T] dayOfWeek) [0x0001c] in <2c66f80613ff41adb34692107bcbb7d4>:0 at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.GenerateRandomData (QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorSettings settings, QuantConnect.ToolBox.RandomDataGenerator.ConsoleLeveledOutput output) [0x00122] in <2c66f80613ff41adb34692107bcbb7d4>:0 at QuantConnect.ToolBox.RandomDataGenerator.RandomDataGeneratorProgram.RandomDataGenerator (System.String startDateString, System.String endDateString, System.String symbolCountString, System.String market, System.String securityTypeString, System.String resolutionString, System.String dataDensityString, System.String includeCoarseString, System.String quoteTradeRatioString, System.String randomSeed, System.String hasIpoPercentageString, System.String hasRenamePercentageString, System.String hasSplitsPercentageString, System.String hasDividendsPercentageString, System.String dividendEveryQuarterPercentageString) [0x00028] in <2c66f80613ff41adb34692107bcbb7d4>:0 at QuantConnect.ToolBox.Program.Main (System.String[] args) [0x010d3] in <2c66f80613ff41adb34692107bcbb7d4>:0
Reproducing the Problem
mono QuantConnect.ToolBox.exe --app=rdg --security-type=cfd --start=20200101 --end=20200201 --symbol-count=1 --market=oanda
System Information
Ubuntu 20.04.1 LTS, everything installed as stated in the docs.
Checklist
master
branchThe text was updated successfully, but these errors were encountered: