-
Notifications
You must be signed in to change notification settings - Fork 1
WORKING_EXAMPLES
Alxy Savin edited this page Oct 21, 2025
·
1 revision
This file contains information about the working examples in the project.
Demonstrates the core functionality of the library:
- Creation of positions and orders
- Use of the risk manager
- Simulation of order execution
- Handling of funding payments
- Generation of risk‑management orders
Run:
cargo run --example simple_exampleDemonstrates:
- Order validation through the risk manager
- Generation of stop‑loss and take‑profit orders
- Checking order triggers based on price
Run:
cargo run --example mode_reporting_exampleDemonstrates:
- Creation and management of positions
- Working with orders (market and limit)
- Creation of market data
- Configuration of trading parameters
- Order validation
Run:
cargo run --example unified_data_exampleMost examples in the examples/ folder are disabled because they require modules that are not implemented in the current minimal version of the library. These examples are commented out in Cargo.toml and include:
-
basic_backtest– requires back‑testing 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 - And many others…
The library contains only the basic modules:
-
backtest– basic structures for back‑testing -
risk_manager– risk‑management -
unified_data– unified data structures
- Start with
simple_exampleto understand the basic functionality. - Study
mode_reporting_exampleto grasp risk‑management. - If full functionality is needed, consider extending the library or using alternative solutions.