Skip to content

Commit 394eb8c

Browse files
ZanCorDXsukoneck
andauthored
Backtest build block app for synthetic blocks. (#344)
## 📝 Summary This PR makes backtest-build-block more versatile so the chain used and orders come from an ```OrdersSource``` instead of the hardcoded mainnet we had. The original backtest_build_block behavior is now achieved using the ```OrdersSource``` ```LandedBlockFromDBOrdersSource```. A new ```OrdersSource``` ```SyntheticOrdersSource``` is provided as an example of how to run backtest-build-block with a syntetic chain and synthetic orders. ## 💡 Motivation and Context <!--- (Optional) Why is this change required? What problem does it solve? Remove this section if not applicable. --> --- ## ✅ I have completed the following steps: * [X] Run `make lint` * [X] Run `make test` * [ ] Added tests (if applicable) --------- Co-authored-by: sukoneck <[email protected]>
1 parent 765936b commit 394eb8c

13 files changed

+800
-442
lines changed

crates/rbuilder/src/backtest/backtest_build_block.rs

-398
This file was deleted.

0 commit comments

Comments
 (0)