From 36f41a614b01928cfd6b64bdcf1a028dba16e75f Mon Sep 17 00:00:00 2001 From: admin <admin@example.com> Date: 星期二, 20 五月 2025 14:18:44 +0800 Subject: [PATCH] 1.首笔计划下单金额的逻辑梳理修改 2.L2板上盯卖的持仓检查代码格式修改 3. --- strategy/selling_strategy.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/strategy/selling_strategy.py b/strategy/selling_strategy.py index 13daffd..a4ac020 100644 --- a/strategy/selling_strategy.py +++ b/strategy/selling_strategy.py @@ -556,12 +556,12 @@ # L2绾ф暟鎹Е鍙戠殑鏉夸笂鐩殑鐐告澘绛栫暐 def explosion_strategy(code): if code not in data_cache.available_symbols_set: - return + return "娌″湪鎸佷粨涓�" current_info = data_cache.current_l1_dict.get(code) if not current_info: - return + return "L1鏁版嵁涓嶅瓨鍦�" # symbol = symbol_code - symbol = basic_methods.format_stock_symbol(code) # 杞寲涓烘帢閲戞暟鎹潵婧愮殑鑲$エ浠g爜 + symbol = basic_methods.format_stock_symbol(code) # 杞寲涓烘帢閲戞暟鎹牸寮忕殑鑲$エ浠g爜 current_price = current_info[2] # 鑾峰彇褰撳墠鏈�鏂颁环 current_volume = current_info[3] # 褰撴棩褰撴椂鐨勬�绘垚浜ら噺 current_quotes_sell = current_info[6] # 鍗�5妗f暟鎹� @@ -573,10 +573,10 @@ index = i break if not position_info: - return + return "鏃犳寔浠撴暟鎹�" position_volume_yesterday = position_info['availablePosition'] # 鑲′唤鍙敤 (鍙敤鑲′唤鏁伴噺) # 鏄ㄦ棩鎸佷粨閲忥紙鍙敤鎸佷粨閲忥級 - # 璇ヨ偂鍔犲叆鍒版澘涓婄洴鍗栫殑闆嗗悎涓� 鎵�浠ヨ瀹氬崠鍑哄叏浠� - if symbol in data_cache.LIMIT_UP_SELL_CODES: + # 璇ヨ偂鍔犲叆鍒版澘涓婄洴鍗栫殑闆嗗悎涓� 鎵�浠ヨ瀹氬崠鍑哄叏浠� data_cache.LIMIT_UP_SELL_CODES 鏄崕閼牸寮忕殑浠g爜 + if code in data_cache.LIMIT_UP_SELL_CODES: logger_info(f"鏉夸笂鐩崠 |寮�鍚瘄 杩涘叆鍗栫エ鍐崇瓥") if current_volume < k_line_data[0]['volume'] * 0.6: logger_info( -- Gitblit v1.8.0