Skip to content

Working Examples of Hyperliquid Backtester – Summary Report

Alxy Savin edited this page Oct 21, 2025 · 1 revision

Welcome to the hyperliquid-backtest wiki!

Project Status ✅ The project is successfully set up and running!

Working Examples (3 out of 32)

  1. simple_example ✅ Description: Basic example with core functionality Demonstrates: Position creation, orders, risk management, funding payments Status: Fully functional Run: cargo run --example simple_example
  2. mode_reporting_example ✅ Description: Example of working with the risk manager and reporting Demonstrates: Order validation, generation of stop‑loss/take‑profit Status: Fully functional Run: cargo run --example mode_reporting_example
  3. unified_data_example ✅ Description: Stand‑alone example of data structures Demonstrates: Positions, orders, market data, configuration -Status**: Fully functional (with warnings) Run: cargo run --example unified_data_example Disabled Examples (29 out of 32) All other examples are disabled because they require modules that are not implemented in the current minimal version of the library:

basic_backtest – requires backtesting modules comprehensive_example – requires full functionality csv_export_example – requires an export module funding_* examples – require funding‑rates modules live_trading_* examples – require live‑trading modules strategy_* examples – require strategy modules risk_management_configuration_example – requires advanced risk management …and others. Current Library Functionality The library contains only the basic modules:

backtest – basic structures for backtesting risk_manager – simple risk‑management unified_data – unified data structures Recommendations For learning: Start with simple_example For risk management: Study mode_reporting_example For data structures: Look at unified_data_example For full functionality: Consider extending the library or using alternative solutions Commands to Run

Build all working examples

cargo build --examples

Run the basic example

cargo run --example simple_example

Run the risk‑management example

cargo run --example mode_reporting_example

Run the data‑structures example

cargo run --example unified_data_example Conclusion The project is successfully set up with 3 working examples out of 32. The remaining examples are disabled because they require additional library modules. The current examples demonstrate the core functionality and can serve as a starting point for further development of the project.

Clone this wiki locally