From ce11f7ad67820e6c53a39845b20f60c1ef6b84b7 Mon Sep 17 00:00:00 2001 From: guopengfa Date: Fri, 16 Jan 2026 22:35:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug:=20trade=20time=20is=20valid.=20(?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG=EF=BC=9A=E6=8C=81=E4=BB=93=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=BA=E7=A9=BA=E7=9A=84=E9=97=AE=E9=A2=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend_api_python/app/routes/strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend_api_python/app/routes/strategy.py b/backend_api_python/app/routes/strategy.py index cb614e3..083ee2b 100644 --- a/backend_api_python/app/routes/strategy.py +++ b/backend_api_python/app/routes/strategy.py @@ -471,7 +471,7 @@ def get_equity_curve(): equity += float(r.get('profit') or 0) except Exception: pass - ts = int(r.get('created_at') or time.time()) + ts = int(r.get('created_at').timestamp() or time.time()) curve.append({'time': ts, 'equity': equity}) return jsonify({'code': 1, 'msg': 'success', 'data': curve})