Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

feat(cli): add strategy backtest command (#182)#184

Merged
crrow merged 1 commit intomainfrom
issue-182-backtest-cli
Apr 1, 2026
Merged

feat(cli): add strategy backtest command (#182)#184
crrow merged 1 commit intomainfrom
issue-182-backtest-cli

Conversation

@crrow
Copy link
Copy Markdown
Collaborator

@crrow crrow commented Apr 1, 2026

Summary

  • Add rara strategy backtest <name> --contract <symbol> --timeframe <tf> CLI command
  • Loads WASM from promoted directory, runs through BarterBacktester
  • Outputs JSON: PnL, Sharpe, drawdown, win rate, trade count

Tested: strategy backtest btc-momentum --contract BTCUSDT --timeframe 1h runs successfully.

Closes #182

Test plan

  • cargo check / cargo clippy / cargo +nightly fmt --check pass
  • Manual test: backtest runs against BTCUSDT 1h data (130K candles)

…182)

Add `rara strategy backtest <name> --contract BTCUSDT --timeframe 1h`
that loads a fetched WASM strategy and runs it through BarterBacktester
against historical candle data.

Closes #182
@crrow crrow added the enhancement New feature or request label Apr 1, 2026
@crrow crrow merged commit dd679af into main Apr 1, 2026
6 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): add strategy backtest command for fetched WASM strategies

1 participant