From abe4d32eadc28fddfdc091fe3ad1691ac672581f Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 17 Oct 2022 07:19:24 +0200 Subject: [PATCH] Update wording in get_analyzed_dataframe docs --- docs/strategy-customization.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/strategy-customization.md b/docs/strategy-customization.md index b97bd6d23..e886491b5 100644 --- a/docs/strategy-customization.md +++ b/docs/strategy-customization.md @@ -670,13 +670,13 @@ It can also be used in specific callbacks to get the signal that caused the acti ``` python # fetch current dataframe -if self.dp.runmode.value in ('live', 'dry_run'): - dataframe, last_updated = self.dp.get_analyzed_dataframe(pair=metadata['pair'], - timeframe=self.timeframe) +dataframe, last_updated = self.dp.get_analyzed_dataframe(pair=metadata['pair'], + timeframe=self.timeframe) ``` !!! Note "No data available" Returns an empty dataframe if the requested pair was not cached. + You can check for this with `if dataframe.empty:` and handle this case accordingly. This should not happen when using whitelisted pairs. ### *orderbook(pair, maximum)*