Reduce amount of variables for API backtesting

This commit is contained in:
Matthias
2023-02-22 07:15:50 +01:00
parent ff1258fd20
commit 18bbfa10e5
2 changed files with 41 additions and 37 deletions

View File

@@ -36,10 +36,12 @@ class ApiServer(RPCHandler):
_rpc: RPC
# Backtesting type: Backtesting
_bt = None
_bt_data = None
_bt_timerange = None
_bt_last_config: Config = {}
_bt: Dict[str, Any] = {
'bt': None,
'data': None,
'timerange': None,
'last_config': {},
}
_has_rpc: bool = False
_bgtask_running: bool = False
_config: Config = {}