mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
Load ohlcv data as float
This commit is contained in:
parent
43add0b159
commit
7ecc56fa44
|
@ -69,7 +69,7 @@ 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='float64')
|
||||||
pairdata.columns = self._columns
|
pairdata.columns = self._columns
|
||||||
pairdata['date'] = to_datetime(pairdata['date'],
|
pairdata['date'] = to_datetime(pairdata['date'],
|
||||||
unit='ms',
|
unit='ms',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user