Administrator
3 days ago 80e9bd1f5a167a5c7c76b2d61919aa163664076d
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -381,7 +381,9 @@
                min = min.multiply(BigDecimal.ONE.subtract(step)).setScale(1, RoundingMode.HALF_UP);
                shortPriceQueue.add(min);
            }
            shortPriceQueue.sort((a, b) -> b.compareTo(a));
            shortPriceQueue.sort(BigDecimal::compareTo);
            log.info("[Gate] 空队列:{}", shortPriceQueue);
        }
        synchronized (longPriceQueue) {
@@ -390,6 +392,8 @@
            while (longPriceQueue.size() > config.getGridQueueSize()) {
                longPriceQueue.remove(longPriceQueue.size() - 1);
            }
            log.info("[Gate] 多队列:{}", shortPriceQueue);
        }
    }
@@ -424,6 +428,8 @@
                longPriceQueue.add(max);
            }
            longPriceQueue.sort(BigDecimal::compareTo);
            log.info("[Gate] 多队列:{}", shortPriceQueue);
        }
        synchronized (shortPriceQueue) {
@@ -432,6 +438,8 @@
            while (shortPriceQueue.size() > config.getGridQueueSize()) {
                shortPriceQueue.remove(shortPriceQueue.size() - 1);
            }
            log.info("[Gate] 空队列:{}", shortPriceQueue);
        }
    }