fix: orderflow data missing for plotting and other runmodes

This commit is contained in:
Joe Schr 2024-09-10 15:28:53 +02:00
parent c3a00b93c2
commit c9acb1466c

View File

@ -520,7 +520,7 @@ class DataProvider:
return self._exchange.trades( return self._exchange.trades(
(pair, timeframe or self._config["timeframe"], _candle_type), copy=copy (pair, timeframe or self._config["timeframe"], _candle_type), copy=copy
) )
elif self.runmode in (RunMode.BACKTEST, RunMode.HYPEROPT): else:
data_handler = get_datahandler( data_handler = get_datahandler(
self._config["datadir"], data_format=self._config["dataformat_trades"] self._config["datadir"], data_format=self._config["dataformat_trades"]
) )
@ -529,9 +529,6 @@ class DataProvider:
) )
return trades_df return trades_df
else:
return DataFrame()
def market(self, pair: str) -> Optional[Dict[str, Any]]: def market(self, pair: str) -> Optional[Dict[str, Any]]:
""" """
Return market data for the pair Return market data for the pair