From 6bbfbbb16d792f7737ec86cabdba5c0e98dcf4b4 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 29 八月 2025 17:41:29 +0800
Subject: [PATCH] 有涨停买撤单要触发撤单计算

---
 utils/trade_util.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/utils/trade_util.py b/utils/trade_util.py
index 2ce444e..502b0ee 100644
--- a/utils/trade_util.py
+++ b/utils/trade_util.py
@@ -10,3 +10,14 @@
     if state == trade_constant.TRADE_STATE_BUY_DELEGATED or state == trade_constant.TRADE_STATE_BUY_PLACE_ORDER or state == trade_constant.TRADE_STATE_BUY_SUCCESS:
         return False
     return True
+
+
+def is_delegated(state):
+    """
+    鏄惁澶勪簬濮旀墭鐘舵��
+    @param state:
+    @return:
+    """
+    if state == trade_constant.TRADE_STATE_BUY_DELEGATED or state == trade_constant.TRADE_STATE_BUY_PLACE_ORDER:
+        return True
+    return False

--
Gitblit v1.8.0