Administrator
4 days ago 86392fa6e18fa7dac20d3c03864cecf2abe4f7b3
src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -337,6 +337,8 @@
            shortPriceQueue.add(shortBaseEntryPrice.subtract(step.multiply(BigDecimal.valueOf(i))).setScale(1, RoundingMode.HALF_UP));
        }
        shortPriceQueue.sort((a, b) -> b.compareTo(a));
        //输出队列:shortPriceQueue;
        log.info("[Gate] 空队列:{}", shortPriceQueue);
    }
    private void generateLongQueue() {
@@ -346,6 +348,7 @@
            longPriceQueue.add(longBaseEntryPrice.add(step.multiply(BigDecimal.valueOf(i))).setScale(1, RoundingMode.HALF_UP));
        }
        longPriceQueue.sort(BigDecimal::compareTo);
        log.info("[Gate] 多队列:{}", longPriceQueue);
    }
    private void processShortGrid(BigDecimal currentPrice) {