Generate daily option universe files in RandomDataGenerator - #9740
Open
hsm207 wants to merge 3 commits into
Open
Generate daily option universe files in RandomDataGenerator#9740hsm207 wants to merge 3 commits into
hsm207 wants to merge 3 commits into
Conversation
…nect#8854) - Automatically generate daily option universe CSV files when generating synthetic options data - Add standalone data provider fallback to InterestRateProvider - Add OptionUniverseWriter unit test suite
…s adhering to SRP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When running
RandomDataGeneratorwith--security-type Option, LEAN previously generated option tick and pricing zip files (data/option/usa/minute/<ticker>/<date>_trade_american.zip), but omitted the daily option universe selection CSV metadata (data/option/usa/universes/<ticker>/<date>.csv). As a result, algorithms attempting to run coarse option chain universe selection against synthetic data would fail to discover option chains.This PR introduces
OptionUniverseWriterinToolBox/RandomDataGeneratorwhich:BaseChainUniverseData.GetUniverseFullFilePath).,,,open,high,low,close,volume,...) and contract rows usingOptionUniverse.ToCsv.InterestRateProviderso the generator can run in standalone offline mode.Related Issue
Closes #8854
Motivation and Context
Allows developers and quantitative researchers to generate synthetic options data locally and run universe selection backtests completely offline without requiring cloud data downloads.
Requires Documentation Change
No.
How Has This Been Tested?
OptionUniverseWriterTests(Tests/ToolBox/RandomDataGenerator/OptionUniverseWriterTests.cs) verifying deterministic universe file path generation, CSV headers, underlying equity OHLCV row formatting, and option contract row serialization.RandomDataGenerator(tick generation, symbol generators, price model estimators, dividend/split map generators) andInterestRateProviderTestsviadotnet test(Passed 100%, 62/62 in 7 s).QuantConnect.Lean.slnsucceeded with 0 compiler warnings and 0 errors.Types of changes
Checklist:
feature-8854-option-universe-generator