Include data start and end date in dataframe api

This commit is contained in:
Matthias
2020-07-13 21:06:10 +02:00
parent b93ad8840a
commit bf0e75e2a5
2 changed files with 17 additions and 5 deletions

View File

@@ -676,6 +676,10 @@ class RPC:
'length': len(dataframe),
'last_analyzed': last_analyzed,
'last_analyzed_ts': int(last_analyzed.timestamp()),
'data_start': str(dataframe.iloc[0]['date']),
'data_start_ts': int(dataframe.iloc[0]['__date_ts']),
'data_stop': str(dataframe.iloc[-1]['date']),
'data_stop_ts': int(dataframe.iloc[-1]['__date_ts']),
}
def _analysed_dataframe(self, pair: str, timeframe: str, limit: int) -> Dict[str, Any]: