feat: add backtest CLI to skills and convert examples to Python#13
Merged
feat: add backtest CLI to skills and convert examples to Python#13
Conversation
- Update skills/SKILL.md with backtest binary, capabilities matrix, JSON command reference, and Workflow 7 (backtesting strategies) - Add backtest to skills/bootstrap.sh binary list and install.md - Convert 4 shell example scripts to Python (stdlib only) following the same patterns as funding_arb/metal_pair/catalyst_hedger - Add examples/backtest/README.md with scenario descriptions and guide for writing custom backtests Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
backtestbinary toskills/SKILL.md— tools table, capabilities matrix, JSON command reference, and new Workflow 7: Backtesting a Trading Strategy for AI agents to validate theses before live tradingbacktesttoskills/bootstrap.shbinary download list andskills/install.mdexamples/backtest/README.mdwith scenario descriptions, usage guide, and custom backtest templateChanges
Skills
skills/SKILL.md— Added backtest binary to tools table, exchange capabilities matrix (with simulated trading, historical quotes, forward PnL, SEC filings), full JSON command reference, Workflow 7, symbol alias note, and tipsskills/bootstrap.sh— Addedbacktestto BINARIES listskills/install.md— Addedbacktestto binary lists in quick and manual install sectionsExamples
examples/backtest/README.md— New README with scenario table, setup, usage, how-it-works, and writing-your-own guideexamples/backtest/*.py— 4 new Python scripts replacing the shell versions (covid_crash_hedge, ftx_crypto_contagion, nvda_earnings_alpha, ukraine_oil_shock)examples/backtest/*.sh— Deleted 4 old shell scriptsTest plan
python3 examples/backtest/covid_crash_hedge.pyruns successfullypython3 examples/backtest/ftx_crypto_contagion.pyruns successfullypython3 examples/backtest/nvda_earnings_alpha.pyruns successfullypython3 examples/backtest/ukraine_oil_shock.pyruns successfully🤖 Generated with Claude Code