Skip to content

query_strategy_runs


function backtide.storage.query_strategy_runs(experiment_id)

Return every per-strategy result for a given experiment.

Parameters

experiment_id : str

The experiment id (as stored in the experiments table).

Returns

list[RunResult]

One result entry per strategy that ran in this experiment.


See Also

run_experiment

Run a backtest experiment with the provided configuration.

query_experiments

Return stored experiments, optionally filtered by id and/or a search string.


Example

>>> from backtide.storage import query_experiments, query_strategy_runs

>>> experiments = query_experiments()
>>> if not experiments.empty:
...     runs = query_strategy_runs(experiments.iloc[0]["id"])
...     print(runs)

[RunResult(id="8317723c155543e7", strategy="BuyAndHold", n_bars=11448, n_trades=2, is_benchmark=false, error=None)]