From 4cac5eeb80f0edde32f462d46b2a665d3bc71934 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Tue, 21 Oct 2025 10:46:29 +0800
Subject: [PATCH] 1
---
trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 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 620ebff..46887b7 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
@@ -17,6 +17,8 @@
*/
private static volatile Map<String, AdjustmentValue> delayValue = new ConcurrentHashMap();
+ private static volatile Map<String, BigDecimal> lastValue = new ConcurrentHashMap();
+
public static Map<String, BigDecimal> getCurrentValue() {
return currentValue;
}
@@ -24,6 +26,11 @@
public static Map<String, AdjustmentValue> getDelayValue() {
return delayValue;
}
+
+ public static Map<String, BigDecimal> getLastValue() {
+ return lastValue;
+ }
+
@@ -36,23 +43,20 @@
//记录当前分配到第几个值
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() {
+ public static Map<String, List<BigDecimal>> getPreAllocatedAdjustments() {
return preAllocationList;
}
- public static Map<String, Integer> getCurrentAllocationIndex() {
+
+ public static Map<String, Integer> getCurrentAdjustmentIndex() {
return currentAllocationIndex;
}
- public static Map<String, List<Boolean>> getUpDownTrend() {
- return upDownTrend;
- }
+
+
}
--
Gitblit v1.9.3