From 0ca7bf5c850eaef852a6b49d4b94e8366deedb29 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 26 May 2021 15:03:51 +0800 Subject: [PATCH] 20210525 申诉 --- 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