Update wording in get_analyzed_dataframe docs
This commit is contained in:
parent
6252ae466e
commit
abe4d32ead
@ -670,13 +670,13 @@ It can also be used in specific callbacks to get the signal that caused the acti
|
|||||||
|
|
||||||
``` python
|
``` python
|
||||||
# fetch current dataframe
|
# fetch current dataframe
|
||||||
if self.dp.runmode.value in ('live', 'dry_run'):
|
|
||||||
dataframe, last_updated = self.dp.get_analyzed_dataframe(pair=metadata['pair'],
|
dataframe, last_updated = self.dp.get_analyzed_dataframe(pair=metadata['pair'],
|
||||||
timeframe=self.timeframe)
|
timeframe=self.timeframe)
|
||||||
```
|
```
|
||||||
|
|
||||||
!!! Note "No data available"
|
!!! Note "No data available"
|
||||||
Returns an empty dataframe if the requested pair was not cached.
|
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.
|
This should not happen when using whitelisted pairs.
|
||||||
|
|
||||||
### *orderbook(pair, maximum)*
|
### *orderbook(pair, maximum)*
|
||||||
|
Loading…
Reference in New Issue
Block a user