From a51aa2ae35b45f070511e42b53f01daccb455016 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 11 May 2021 17:42:33 +0800 Subject: [PATCH] Merge branch 'yunding' of http://120.27.238.55:7000/r/exchange into yunding --- 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