From a8456307491425f7acac9d30050cf30f4da1ea55 Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Mon, 12 Mar 2018 22:29:31 +0100 Subject: [PATCH] Fix --export trades in backtesting fixes #535 - TypeError: Object of type 'Timestamp' is not JSON serializable --- freqtrade/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/misc.py b/freqtrade/misc.py index b5e8ad070..555d49e1c 100644 --- a/freqtrade/misc.py +++ b/freqtrade/misc.py @@ -62,7 +62,7 @@ def common_datearray(dfs): def file_dump_json(filename, data) -> None: with open(filename, 'w') as fp: - json.dump(data, fp) + json.dump(data, fp, default=str) @synchronized