From 579e9032affa3493587533fcc1425e2858239696 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Fri, 10 Oct 2025 18:51:41 +0800
Subject: [PATCH] 1

---
 trading-order-huobi/src/main/java/com.yami.trading.huobi/data/AdjustmentValueCache.java |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 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..ecc1964 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
@@ -16,6 +16,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,4 +26,35 @@
 		return delayValue;
 	}
 
+	public static Map<String, BigDecimal> getLastValue() {
+		return lastValue;
+	}
+
+
+
+	//计算已分配次数
+	private static final Map<String, Integer> allocatedCount = new ConcurrentHashMap<>();
+	//初始总值
+	private static final Map<String, BigDecimal> totalValue = new ConcurrentHashMap<>();
+	//更新累计值
+	private static final Map<String, BigDecimal> accumulatedValue = new ConcurrentHashMap<>();
+	//初始次数
+	private static final Map<String, Integer> frequency = new ConcurrentHashMap<>();
+
+	// 相应的getter方法
+	public static Map<String, Integer> getAllocatedCount() {
+		return allocatedCount;
+	}
+
+	public static Map<String, BigDecimal> getTotalValue() {
+		return totalValue;
+	}
+
+	public static Map<String, BigDecimal> getAccumulatedValue() {
+		return accumulatedValue;
+	}
+
+	public static Map<String, Integer> getFrequency() {
+		return frequency;
+	}
 }

--
Gitblit v1.9.3