From 1a88826e499fb4cc9f8510b879330dbe6e4f26c9 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Sat, 18 Oct 2025 18:29:20 +0800
Subject: [PATCH] 1
---
trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java b/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java
index f28539c..620ebff 100644
--- a/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java
+++ b/trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java
@@ -3,6 +3,7 @@
import com.yami.trading.huobi.data.model.AdjustmentValue;
import java.math.BigDecimal;
+import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@@ -24,4 +25,34 @@
return delayValue;
}
+
+
+ //初始次数
+ private static final Map<String, Integer> frequency = new ConcurrentHashMap<>();
+
+ //存储预生成的随机分配值列表
+ private static final Map<String, List<BigDecimal>> preAllocationList = new ConcurrentHashMap<>();
+
+ //记录当前分配到第几个值
+ private static final Map<String, Integer> currentAllocationIndex = new ConcurrentHashMap<>();
+
+ //记录前一个值的波动方向
+ private static final Map<String, List<Boolean>> upDownTrend = new ConcurrentHashMap<>();
+
+ public static Map<String, Integer> getFrequency() {
+ return frequency;
+ }
+
+ public static Map<String, List<BigDecimal>> getPreAllocationList() {
+ return preAllocationList;
+ }
+
+ public static Map<String, Integer> getCurrentAllocationIndex() {
+ return currentAllocationIndex;
+ }
+
+ public static Map<String, List<Boolean>> getUpDownTrend() {
+ return upDownTrend;
+ }
+
}
--
Gitblit v1.9.3