Fix --export trades in backtesting

fixes #535 -
TypeError: Object of type 'Timestamp' is not JSON serializable
This commit is contained in:
Matthias Voppichler 2018-03-12 22:29:31 +01:00
parent de454924a3
commit a845630749

View File

@ -62,7 +62,7 @@ def common_datearray(dfs):
def file_dump_json(filename, data) -> None: def file_dump_json(filename, data) -> None:
with open(filename, 'w') as fp: with open(filename, 'w') as fp:
json.dump(data, fp) json.dump(data, fp, default=str)
@synchronized @synchronized