From ecd23251055d9e51425329cc8094bb58906e01b7 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 06 Jan 2026 15:56:42 +0800
Subject: [PATCH] feat(coin): 添加DOGE和SUI币种支持

---
 src/main/java/com/xcong/excoin/rabbit/pricequeue/PricePriorityQueue.java |  108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/rabbit/pricequeue/PricePriorityQueue.java b/src/main/java/com/xcong/excoin/rabbit/pricequeue/PricePriorityQueue.java
index 7098376..99e1221 100644
--- a/src/main/java/com/xcong/excoin/rabbit/pricequeue/PricePriorityQueue.java
+++ b/src/main/java/com/xcong/excoin/rabbit/pricequeue/PricePriorityQueue.java
@@ -122,6 +122,48 @@
 
     private static Map<String, List<OrderModel>> BNB_MAP_ASC = null;
 
+    /**
+     * ETC 倒序队列 头元素最大 开多止盈 开空止损 开空爆仓 限价开空
+     */
+    private static PriorityBlockingQueue<DescBigDecimal> SOL_QUEUE_DESC = null;
+
+    private static Map<String, List<OrderModel>> SOL_MAP_DESC = null;
+
+    /**
+     * ETC 正序队列 头元素最小 开多止损 开空止盈 开多爆仓 限价开多
+     */
+    private static PriorityBlockingQueue<AscBigDecimal> SOL_QUEUE_ASC = null;
+
+    private static Map<String, List<OrderModel>> SOL_MAP_ASC = null;
+
+    /**
+     * ETC 倒序队列 头元素最大 开多止盈 开空止损 开空爆仓 限价开空
+     */
+    private static PriorityBlockingQueue<DescBigDecimal> DOGE_QUEUE_DESC = null;
+
+    private static Map<String, List<OrderModel>> DOGE_MAP_DESC = null;
+
+    /**
+     * ETC 正序队列 头元素最小 开多止损 开空止盈 开多爆仓 限价开多
+     */
+    private static PriorityBlockingQueue<AscBigDecimal> DOGE_QUEUE_ASC = null;
+
+    private static Map<String, List<OrderModel>> DOGE_MAP_ASC = null;
+
+    /**
+     * ETC 倒序队列 头元素最大 开多止盈 开空止损 开空爆仓 限价开空
+     */
+    private static PriorityBlockingQueue<DescBigDecimal> SUI_QUEUE_DESC = null;
+
+    private static Map<String, List<OrderModel>> SUI_MAP_DESC = null;
+
+    /**
+     * ETC 正序队列 头元素最小 开多止损 开空止盈 开多爆仓 限价开多
+     */
+    private static PriorityBlockingQueue<AscBigDecimal> SUI_QUEUE_ASC = null;
+
+    private static Map<String, List<OrderModel>> SUI_MAP_ASC = null;
+
 
     // 收到消息队列的方法 即收取到新的止盈止损等
     // 【1:买入委托2:开多3:开空4:平多5:平空6:爆仓平多7:爆仓平空8:撤单9:止盈平多10:止盈平空11:止损平多12:止损平空】
@@ -168,6 +210,21 @@
                         BNB_QUEUE_ASC = new PriorityBlockingQueue<AscBigDecimal>();
                     }
                     return BNB_QUEUE_ASC;
+            case "SOL/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                    if (SOL_QUEUE_ASC == null) {
+                        SOL_QUEUE_ASC = new PriorityBlockingQueue<AscBigDecimal>();
+                    }
+                    return SOL_QUEUE_ASC;
+            case "DOGE/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                    if (DOGE_QUEUE_ASC == null) {
+                        DOGE_QUEUE_ASC = new PriorityBlockingQueue<AscBigDecimal>();
+                    }
+                    return DOGE_QUEUE_ASC;
+            case "SUI/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                    if (SUI_QUEUE_ASC == null) {
+                        SUI_QUEUE_ASC = new PriorityBlockingQueue<AscBigDecimal>();
+                    }
+                    return SUI_QUEUE_ASC;
             default:
                 break;
         }
@@ -217,6 +274,21 @@
                         BNB_QUEUE_DESC = new PriorityBlockingQueue<DescBigDecimal>();
                     }
                     return BNB_QUEUE_DESC;
+            case "SOL/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                    if (SOL_QUEUE_DESC == null) {
+                        SOL_QUEUE_DESC = new PriorityBlockingQueue<DescBigDecimal>();
+                    }
+                    return SOL_QUEUE_DESC;
+            case "DOGE/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                    if (DOGE_QUEUE_DESC == null) {
+                        DOGE_QUEUE_DESC = new PriorityBlockingQueue<DescBigDecimal>();
+                    }
+                    return DOGE_QUEUE_DESC;
+            case "SUI/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                    if (SUI_QUEUE_DESC == null) {
+                        SUI_QUEUE_DESC = new PriorityBlockingQueue<DescBigDecimal>();
+                    }
+                    return SUI_QUEUE_DESC;
             default:
                 break;
         }
@@ -327,6 +399,42 @@
                     }
                     return BNB_MAP_DESC;
                 }
+            case "SOL/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) {
+                    if (SOL_MAP_ASC == null) {
+                        SOL_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>();
+                    }
+                    return SOL_MAP_ASC;
+                } else {
+                    if (SOL_MAP_DESC == null) {
+                        SOL_MAP_DESC = new ConcurrentHashMap<String,List<OrderModel>>();
+                    }
+                    return SOL_MAP_DESC;
+                }
+            case "DOGE/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) {
+                    if (DOGE_MAP_ASC == null) {
+                        DOGE_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>();
+                    }
+                    return DOGE_MAP_ASC;
+                } else {
+                    if (DOGE_MAP_DESC == null) {
+                        DOGE_MAP_DESC = new ConcurrentHashMap<String,List<OrderModel>>();
+                    }
+                    return DOGE_MAP_DESC;
+                }
+            case "SUI/USDT": // 开多止损 开空止盈 开多爆仓 限价开多
+                if (type == 12 || type == 9 || type == 7 || type == 3 || type == 4) {
+                    if (SUI_MAP_ASC == null) {
+                        SUI_MAP_ASC = new ConcurrentHashMap<String,List<OrderModel>>();
+                    }
+                    return SUI_MAP_ASC;
+                } else {
+                    if (SUI_MAP_DESC == null) {
+                        SUI_MAP_DESC = new ConcurrentHashMap<String,List<OrderModel>>();
+                    }
+                    return SUI_MAP_DESC;
+                }
             default:
                 break;
         }

--
Gitblit v1.9.1