Skip to content

Commit

Permalink
Merge pull request #2957 from hroff-1902/fix/2948-2
Browse files Browse the repository at this point in the history
Fix #2948
  • Loading branch information
xmatthias committed Feb 22, 2020
2 parents 430f53c + e2e6b94 commit 91ee48f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions freqtrade/data/history/jsondatahandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def _ohlcv_load(self, pair: str, timeframe: str,
filename = self._pair_data_filename(self._datadir, pair, timeframe)
if not filename.exists():
return DataFrame(columns=self._columns)
pairdata = read_json(filename, orient='values',
dtype={'open': 'float', 'high': 'float',
'low': 'float', 'close': 'float', 'volume': 'float'})
pairdata = read_json(filename, orient='values')
pairdata.columns = self._columns
pairdata = pairdata.astype(dtype={'open': 'float', 'high': 'float',
'low': 'float', 'close': 'float', 'volume': 'float'})
pairdata['date'] = to_datetime(pairdata['date'],
unit='ms',
utc=True,
Expand Down

0 comments on commit 91ee48f

Please sign in to comment.