Add BacktestMetadataType

This commit is contained in:
Matthias 2023-07-31 20:22:55 +02:00
parent f546ee6569
commit 5c68b0d38e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,5 @@
# flake8: noqa: F401
from freqtrade.types.backtest_result_type import BacktestResultType, get_BacktestResultType_default
from freqtrade.types.backtest_result_type import (BacktestHistoryEntryType, BacktestMetadataType,
BacktestResultType,
get_BacktestResultType_default)
from freqtrade.types.valid_exchanges_type import ValidExchangesType

View File

@ -3,8 +3,13 @@ from typing import Any, Dict, List
from typing_extensions import TypedDict
class BacktestMetadataType(TypedDict):
run_id: str
backtest_start_time: int
class BacktestResultType(TypedDict):
metadata: Dict[str, Any]
metadata: Dict[str, Any] # BacktestMetadataType
strategy: Dict[str, Any]
strategy_comparison: List[Any]