mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Ensure only relevant columns are stored
This commit is contained in:
parent
26c89d89e4
commit
f69a776305
|
@ -92,7 +92,7 @@ class FeatherDataHandler(IDataHandler):
|
|||
filename = self._pair_trades_filename(self._datadir, pair)
|
||||
self.create_dir_if_needed(filename)
|
||||
|
||||
data.to_feather(filename, compression_level=9, compression='lz4')
|
||||
data[DEFAULT_TRADES_COLUMNS].to_feather(filename, compression_level=9, compression='lz4')
|
||||
|
||||
def trades_append(self, pair: str, data: DataFrame):
|
||||
"""
|
||||
|
|
|
@ -109,7 +109,7 @@ class HDF5DataHandler(IDataHandler):
|
|||
"""
|
||||
key = self._pair_trades_key(pair)
|
||||
|
||||
data.to_hdf(
|
||||
data[DEFAULT_TRADES_COLUMNS].to_hdf(
|
||||
self._pair_trades_filename(self._datadir, pair), key,
|
||||
mode='a', complevel=9, complib='blosc',
|
||||
format='table', data_columns=['timestamp']
|
||||
|
|
Loading…
Reference in New Issue
Block a user