-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbatch.py
More file actions
41 lines (33 loc) · 1.03 KB
/
Copy pathbatch.py
File metadata and controls
41 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""
cli/batch.py
Lightweight single-strategy batch CLI handler.
Responsibility:
Receives already-parsed CLI values from ``run.py`` and delegates the real
orchestration to ``batch_run_service``.
"""
from __future__ import annotations
from typing import Any, Optional, Sequence
from src.backtest_engine.services.batch_run_service import run_batch_backtests
def run(
strategy_names: Sequence[str],
symbols: Sequence[str],
timeframes: Sequence[str],
settings: Any,
max_workers: Optional[int] = None,
) -> None:
"""
Runs the lightweight batch backtest workflow.
Args:
strategy_names: Strategy identifiers or aliases.
symbols: One or many futures symbols.
timeframes: One or many timeframe strings.
settings: BacktestSettings instance.
max_workers: Optional worker override.
"""
run_batch_backtests(
strategy_names=strategy_names,
symbols=symbols,
timeframes=timeframes,
settings=settings,
max_workers=max_workers,
)