Executes the v0.1.0 EOD pulse loop against a DuckDB database preloaded with
instruments and bars, writing derived outputs back to the same database.
Usage
ledgr_backtest_run(config, run_id = NULL)
Arguments
- config
A config list (or JSON string) matching the v0.1.0 config contract.
- run_id
Optional run identifier to resume or reuse.
Value
A list with run_id and db_path.
Details
This is a low-level internal runner. Most users should call
ledgr_backtest(), which builds the config and then delegates here. Direct
use is not recommended; the example is illustrative only.
Examples
if (FALSE) {
# Most users should call ledgr_backtest(); it builds this config and calls
# ledgr_backtest_run() internally.
result <- ledgr_backtest_run(config, run_id = "manual-run")
}