Skip to content

Commit

Permalink
Backtest build block app for synthetic blocks. (#344)
Browse files Browse the repository at this point in the history
## 📝 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]>
  • Loading branch information
ZanCorDX and sukoneck authored Jan 15, 2025
1 parent 765936b commit 394eb8c
Show file tree
Hide file tree
Showing 13 changed files with 800 additions and 442 deletions.
398 changes: 0 additions & 398 deletions crates/rbuilder/src/backtest/backtest_build_block.rs

This file was deleted.

Loading

0 comments on commit 394eb8c

Please sign in to comment.