feat(gateApi): 添加网格交易价格队列日志输出功能
- 在generateShortQueue方法中添加shortPriceQueue队列的日志输出
- 在generateLongQueue方法中添加longPriceQueue队列的日志输出
- 便于调试和监控网格交易的价格队列状态
| | |
| | | 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() { |
| | |
| | | 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) { |