mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
Merge pull request #2955 from freqtrade/fix/2948
Load ohlcv data as float
This commit is contained in:
commit
430f53ca11
|
@ -69,7 +69,9 @@ class JsonDataHandler(IDataHandler):
|
|||
filename = self._pair_data_filename(self._datadir, pair, timeframe)
|
||||
if not filename.exists():
|
||||
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['date'] = to_datetime(pairdata['date'],
|
||||
unit='ms',
|
||||
|
|
Loading…
Reference in New Issue
Block a user