From 74e5a0efcda0eff0f23037c3439ef5405bafe922 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Sun, 08 Mar 2026 17:41:26 +0800
Subject: [PATCH] 1

---
 trading-order-huobi/src/main/java/com.yami.trading.huobi/hobi/internal/HobiDataServiceImpl.java |   36 ++++++++++++++++++------------------
 1 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/trading-order-huobi/src/main/java/com.yami.trading.huobi/hobi/internal/HobiDataServiceImpl.java b/trading-order-huobi/src/main/java/com.yami.trading.huobi/hobi/internal/HobiDataServiceImpl.java
index 27cff5c..9d92628 100644
--- a/trading-order-huobi/src/main/java/com.yami.trading.huobi/hobi/internal/HobiDataServiceImpl.java
+++ b/trading-order-huobi/src/main/java/com.yami.trading.huobi/hobi/internal/HobiDataServiceImpl.java
@@ -153,29 +153,29 @@
                         param.put("size", 1440);
                     }
                     if (Kline.PERIOD_5MIN.equals(period)) {
-                        param.put("size", 576);
+                        param.put("size", 2000);
                     }
                     if (Kline.PERIOD_15MIN.equals(period)) {
-                        param.put("size", 576);
+                        param.put("size", 2000);
                     }
                     if (Kline.PERIOD_30MIN.equals(period)) {
-                        param.put("size", 576);
+                        param.put("size", 2000);
                     }
                     if (Kline.PERIOD_60MIN.equals(period)) {
-                        param.put("size", 576);
+                        param.put("size", 2000);
                     }
 
                     if (Kline.PERIOD_4HOUR.equals(period)) {
-                        param.put("size", 576);
+                        param.put("size", 200);
                     }
                     if (Kline.PERIOD_1DAY.equals(period)) {
-                        param.put("size", 500);
+                        param.put("size", 2000);
                     }
                     if (Kline.PERIOD_1MON.equals(period)) {
-                        param.put("size", 500);
+                        param.put("size", 2000);
                     }
                     if (Kline.PERIOD_1WEEK.equals(period)) {
-                        param.put("size", 500);
+                        param.put("size", 2000);
                     }
 
                 } else {
@@ -237,29 +237,29 @@
                     param.put("size", 1440);
                 }
                 if (Kline.PERIOD_5MIN.equals(period)) {
-                    param.put("size", 576);
+                    param.put("size", 2000);
                 }
                 if (Kline.PERIOD_15MIN.equals(period)) {
-                    param.put("size", 576);
+                    param.put("size", 2000);
                 }
                 if (Kline.PERIOD_30MIN.equals(period)) {
-                    param.put("size", 576);
+                    param.put("size", 2000);
                 }
                 if (Kline.PERIOD_60MIN.equals(period)) {
-                    param.put("size", 576);
+                    param.put("size", 2000);
                 }
 
                 if (Kline.PERIOD_4HOUR.equals(period)) {
                     param.put("size", 576);
                 }
                 if (Kline.PERIOD_1DAY.equals(period)) {
-                    param.put("size", 500);
+                    param.put("size", 2000);
                 }
                 if (Kline.PERIOD_1MON.equals(period)) {
-                    param.put("size", 500);
+                    param.put("size", 2000);
                 }
                 if (Kline.PERIOD_1WEEK.equals(period)) {
-                    param.put("size", 500);
+                    param.put("size", 2000);
                 }
 
             } else {
@@ -307,7 +307,7 @@
         if ((depth == null || item.getAdjustmentValue() == null || item.getAdjustmentValue().intValue() == 0) && (item.getMultiple().intValue() == 0 || item.getMultiple().intValue() == 1)) {
             return depth;
         }
-        if(CollectionUtil.isNotEmpty(depth.getAsks()) ){
+        if(depth != null && CollectionUtil.isNotEmpty(depth.getAsks()) ){
             List<DepthEntry> asks = depth.getAsks();
             for (int i = 0; i < asks.size(); i++) {
                 DepthEntry depthEntry = asks.get(i);
@@ -324,7 +324,7 @@
             }
         }
 
-        if(CollectionUtil.isNotEmpty(depth.getBids())){
+        if(depth != null && CollectionUtil.isNotEmpty(depth.getBids())){
             List<DepthEntry> bids = depth.getBids();
             for (int i = 0; i < bids.size(); i++) {
                 DepthEntry depthEntry = bids.get(i);
@@ -452,7 +452,7 @@
         if ((trade == null || item.getAdjustmentValue() == null || item.getAdjustmentValue().doubleValue() == 0) && (item.getMultiple().doubleValue() == 0 || item.getMultiple().doubleValue() == 1)) {
             return trade;
         }
-        if(CollectionUtil.isNotEmpty(trade.getData())){
+        if(trade != null && CollectionUtil.isNotEmpty(trade.getData())){
             List<TradeEntry> data = trade.getData();
             for (int i = 0; i < data.size(); i++) {
                 TradeEntry tradeEntry = data.get(i);

--
Gitblit v1.9.3