From cb70c5378a28b50e94d0094e0904bf2cb5e0af97 Mon Sep 17 00:00:00 2001 From: zhiyong Date: Tue, 29 Apr 2025 01:10:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8get=5Ftoday=5Ftrades=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E4=B8=AD=E6=B7=BB=E5=8A=A0=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E6=96=B9=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/xt_trader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xt_trader.py b/src/xt_trader.py index 4843a8b..8a14295 100644 --- a/src/xt_trader.py +++ b/src/xt_trader.py @@ -127,7 +127,8 @@ class XtTrader: "traded_time": t.traded_time, "traded_price": t.traded_price, "traded_volume": t.traded_volume, - "traded_amount": t.traded_amount + "traded_amount": t.traded_amount, + "trade_type": "buy" if t.order_type == xtconstant.STOCK_BUY else "sell" } for t in trades ] return []