mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
commit
91ee48f3fb
|
@ -69,10 +69,10 @@ class JsonDataHandler(IDataHandler):
|
||||||
filename = self._pair_data_filename(self._datadir, pair, timeframe)
|
filename = self._pair_data_filename(self._datadir, pair, timeframe)
|
||||||
if not filename.exists():
|
if not filename.exists():
|
||||||
return DataFrame(columns=self._columns)
|
return DataFrame(columns=self._columns)
|
||||||
pairdata = read_json(filename, orient='values',
|
pairdata = read_json(filename, orient='values')
|
||||||
dtype={'open': 'float', 'high': 'float',
|
|
||||||
'low': 'float', 'close': 'float', 'volume': 'float'})
|
|
||||||
pairdata.columns = self._columns
|
pairdata.columns = self._columns
|
||||||
|
pairdata = pairdata.astype(dtype={'open': 'float', 'high': 'float',
|
||||||
|
'low': 'float', 'close': 'float', 'volume': 'float'})
|
||||||
pairdata['date'] = to_datetime(pairdata['date'],
|
pairdata['date'] = to_datetime(pairdata['date'],
|
||||||
unit='ms',
|
unit='ms',
|
||||||
utc=True,
|
utc=True,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user