From f3948fa31158c7b7dea3b038e01c43ce54c55a1c Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 14 Apr 2021 11:09:57 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java b/src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java
index 39ddc25..d1f0637 100644
--- a/src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java
+++ b/src/main/java/com/xcong/excoin/quartz/job/NewestPriceUpdateJob.java
@@ -1,5 +1,6 @@
 package com.xcong.excoin.quartz.job;
 
+import com.alibaba.fastjson.JSONObject;
 import com.huobi.client.SubscriptionClient;
 import com.huobi.client.SubscriptionOptions;
 import com.huobi.client.model.Candlestick;
@@ -54,17 +55,15 @@
                 // 比较
                 websocketPriceService.comparePriceAsc(symbol, price);
                 websocketPriceService.comparePriceDesc(symbol, price);
+                websocketPriceService.wholeBomb();
                 //System.out.println("比较完毕:"+symbol+"-"+price);
 
             }
 
         });
-
-
-        subscriptionClient.subscribeCandlestickEvent("btcusdt,ethusdt,eosusdt,etcusdt,ltcusdt,bchusdt,xrpusdt", CandlestickInterval.DAY1, (candlestickEvent) -> {
-            Candlestick data = candlestickEvent.getData();
-            redisUtils.set(CoinTypeConvert.convert(candlestickEvent.getSymbol()), data);
-        });
-
+//        subscriptionClient.subscribeCandlestickEvent("btcusdt,ethusdt,eosusdt,etcusdt,ltcusdt,bchusdt,xrpusdt", CandlestickInterval.DAY1, (candlestickEvent) -> {
+//            Candlestick data = candlestickEvent.getData();
+//            redisUtils.set(CoinTypeConvert.convert(candlestickEvent.getSymbol()), data);
+//        });
     }
 }

--
Gitblit v1.9.1