feat(backtest): add selectable stock pool presets - #441
Merged
Conversation
- add versioned 30-symbol stock, fund, and mixed rosters to Run Backtest - resolve and freeze backend pool selections across API, worker, CLI, and engine boundaries - persist universe provenance and batch larger Alpaca requests - cover selection, validation, compatibility, and frontend submission behavior
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Adds configurable stock-universe selection to Run Backtest.
Users can now choose from three versioned 30-symbol universes:
as well as the original choices.
The selected universe is previewed in the UI and resolved by the backend before the run starts. Its exact symbols and provenance are frozen and passed through the API, worker, CLI, and backtesting engine, ensuring queued runs remain reproducible even if the source catalog changes.
This change also updates LLM prompts to support non-DJIA universes, batches larger Alpaca data requests, and preserves existing DJIA, Magnificent 7, custom-asset, and iFinD behavior.
Purpose
Different stock universes can favor different trading strategies. A strategy that performs well on individual stocks may behave differently when applied to funds, ETFs, or a mixed universe.
These selectable pools make it possible to test and reproduce an agent’s strategy under consistent market scopes, compare its behavior across different universes, and identify which types of assets the strategy is most effective for.
Validation