From 9eac1d2e10a8478673e23cbbe1d6f3b057dda0ff Mon Sep 17 00:00:00 2001 From: yanweidong Date: Mon, 14 Sep 2026 16:28:56 +0800 Subject: [PATCH] fix bug --- py-client/libs/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-client/libs/state.py b/py-client/libs/state.py index 89e82b2..11a3fce 100644 --- a/py-client/libs/state.py +++ b/py-client/libs/state.py @@ -198,7 +198,7 @@ class State: 此接口不会标记成交。已有库存对应的卖出须先归档,再传入 清仓快照,以免删除归档所需的库存。 """ - created_at = datetime.now().isoformat(timespec='seconds') + created_at = datetime.now().isoformat(sep=' ', timespec='seconds') holdings = {item.stock_code: item for item in positions if item.volume > 0} with closing(self._connect()) as db, db: db.execute('BEGIN IMMEDIATE')