From 865567fbd35e07dd122a958604d4becd9b0fdb5f Mon Sep 17 00:00:00 2001 From: dekun Date: Mon, 29 Jun 2026 20:55:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20add=5Fkey=20=E5=85=81=E8=AE=B8=E7=AA=81?= =?UTF-8?q?=E7=A0=B4=E8=A7=A6=E4=BB=B7=E5=BC=80=E4=BB=93=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E7=99=BD=E5=90=8D=E5=8D=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- crypto_monitor_binance/app.py | 2 +- crypto_monitor_gate/app.py | 2 +- crypto_monitor_gate_bot/app.py | 2 +- crypto_monitor_okx/app.py | 2 +- tests/test_trigger_entry_key_monitor_lib.py | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/crypto_monitor_binance/app.py b/crypto_monitor_binance/app.py index 6b9015a..71522d1 100644 --- a/crypto_monitor_binance/app.py +++ b/crypto_monitor_binance/app.py @@ -7881,7 +7881,7 @@ def add_key(): + tuple(KEY_MONITOR_ALERT_ONLY_TYPES) + tuple(FIB_KEY_MONITOR_TYPES) + (FALSE_BREAKOUT_MONITOR_TYPE,) - + (TRIGGER_ENTRY_MONITOR_TYPE,) + + tuple(TRIGGER_ENTRY_MONITOR_TYPES) ) if mt not in allowed_types: flash("监控类型无效") diff --git a/crypto_monitor_gate/app.py b/crypto_monitor_gate/app.py index 2bf772e..e7fcb9d 100644 --- a/crypto_monitor_gate/app.py +++ b/crypto_monitor_gate/app.py @@ -7781,7 +7781,7 @@ def add_key(): + tuple(KEY_MONITOR_ALERT_ONLY_TYPES) + tuple(FIB_KEY_MONITOR_TYPES) + (FALSE_BREAKOUT_MONITOR_TYPE,) - + (TRIGGER_ENTRY_MONITOR_TYPE,) + + tuple(TRIGGER_ENTRY_MONITOR_TYPES) ) if mt not in allowed_types: flash("监控类型无效") diff --git a/crypto_monitor_gate_bot/app.py b/crypto_monitor_gate_bot/app.py index daf3039..5dc4723 100644 --- a/crypto_monitor_gate_bot/app.py +++ b/crypto_monitor_gate_bot/app.py @@ -7777,7 +7777,7 @@ def add_key(): + tuple(KEY_MONITOR_ALERT_ONLY_TYPES) + tuple(FIB_KEY_MONITOR_TYPES) + (FALSE_BREAKOUT_MONITOR_TYPE,) - + (TRIGGER_ENTRY_MONITOR_TYPE,) + + tuple(TRIGGER_ENTRY_MONITOR_TYPES) ) if mt not in allowed_types: flash("监控类型无效") diff --git a/crypto_monitor_okx/app.py b/crypto_monitor_okx/app.py index 07c3cbb..88db93b 100644 --- a/crypto_monitor_okx/app.py +++ b/crypto_monitor_okx/app.py @@ -7331,7 +7331,7 @@ def add_key(): + tuple(KEY_MONITOR_ALERT_ONLY_TYPES) + tuple(FIB_KEY_MONITOR_TYPES) + (FALSE_BREAKOUT_MONITOR_TYPE,) - + (TRIGGER_ENTRY_MONITOR_TYPE,) + + tuple(TRIGGER_ENTRY_MONITOR_TYPES) ) if mt not in allowed_types: flash("监控类型无效") diff --git a/tests/test_trigger_entry_key_monitor_lib.py b/tests/test_trigger_entry_key_monitor_lib.py index 2f19afd..28f4ed9 100644 --- a/tests/test_trigger_entry_key_monitor_lib.py +++ b/tests/test_trigger_entry_key_monitor_lib.py @@ -81,4 +81,5 @@ def test_type_names(): assert is_trigger_entry_key_monitor_type(LEGACY_TRIGGER_ENTRY_MONITOR_TYPE) assert is_breakout_trigger_entry_key_monitor_type(BREAKOUT_TRIGGER_ENTRY_MONITOR_TYPE) assert CALLBACK_TRIGGER_ENTRY_MONITOR_TYPE in TRIGGER_ENTRY_MONITOR_TYPES + assert BREAKOUT_TRIGGER_ENTRY_MONITOR_TYPE in TRIGGER_ENTRY_MONITOR_TYPES assert TRIGGER_ENTRY_VALIDITY_HOURS == 24