fix convert to ohlcv
This commit is contained in:
@@ -264,7 +264,11 @@ def _download_trades_history(exchange: Exchange,
|
||||
# TradesList columns are defined in constants.DEFAULT_TRADES_COLUMNS
|
||||
# DEFAULT_TRADES_COLUMNS: 0 -> timestamp
|
||||
# DEFAULT_TRADES_COLUMNS: 1 -> id
|
||||
|
||||
from_id = trades[-1][1] if trades else None
|
||||
if trades and since < trades[-1][0]:
|
||||
# Reset since to the last available point
|
||||
since = trades[-1][0]
|
||||
|
||||
logger.debug("Current Start: %s", trades[0][0] if trades else 'None')
|
||||
logger.debug("Current End: %s", trades[-1][0] if trades else 'None')
|
||||
|
@@ -9,7 +9,7 @@ from pandas import DataFrame, read_json, to_datetime
|
||||
from freqtrade import misc
|
||||
from freqtrade.configuration import TimeRange
|
||||
from freqtrade.constants import DEFAULT_DATAFRAME_COLUMNS
|
||||
from freqtrade.converter import trades_dict_to_list
|
||||
from freqtrade.data.converter import trades_dict_to_list
|
||||
|
||||
from .idatahandler import IDataHandler, TradeList
|
||||
|
||||
|
Reference in New Issue
Block a user