Implement jsondatahandler file store

This commit is contained in:
Matthias 2019-12-25 10:37:31 +01:00
parent 8f214aec89
commit c6d6dbfdb1

View File

@ -29,7 +29,8 @@ class JsonDataHandler(IDataHandler):
"""
Store data
"""
raise NotImplementedError()
filename = JsonDataHandler._pair_data_filename(self._datadir, self._pair, timeframe)
misc.file_dump_json(filename, data, is_zip=self._use_zip)
def ohlcv_append(self, timeframe: str, data: DataFrame) -> None:
"""