1
zyy
2026-03-16 7ff42a6a92785f26a2b973323443e2eed1e460c2
1
2 files modified
7 ■■■■ changed files
trading-order-huobi/src/main/java/com/yami/trading/huobi/data/NezhaHandleRealTime.java 3 ●●●●● patch | view | raw | blame | history
trading-order-huobi/src/main/java/com/yami/trading/huobi/tradingview/api/TradingViewAPI.java 4 ●●●● patch | view | raw | blame | history
trading-order-huobi/src/main/java/com/yami/trading/huobi/data/NezhaHandleRealTime.java
@@ -166,6 +166,9 @@
            symbol =  itemService.getSymbolByRemarks(symbol);
            Integer decimal = itemService.getDecimal(symbol);
            Item item = this.itemService.findBySymbol(symbol);
            if (item == null) {
                return;
            }
            //更新行情中的symbol [要不然后续取不到缓存]
            realtime.setSymbol(item.getSymbol());
trading-order-huobi/src/main/java/com/yami/trading/huobi/tradingview/api/TradingViewAPI.java
@@ -232,12 +232,12 @@
        if (data.has("ch"))
            tickerData.setChange(data.get("ch").asDouble());
        else
            tickerData.setChange(cache.getIfPresent(proName).getChange());
            tickerData.setChange(cache.getIfPresent(proName).getChange() == null ? 0 : cache.getIfPresent(proName).getChange());
        if (data.has("chp"))
            tickerData.setChangePercent(data.get("chp").asDouble());
        else
            tickerData.setChangePercent(cache.getIfPresent(proName).getChangePercent());
            tickerData.setChangePercent(cache.getIfPresent(proName).getChangePercent() == null ? 0 : cache.getIfPresent(proName).getChangePercent());
        if (data.has("volume"))
            tickerData.setVolume(data.get("volume").asLong());