From 4842e42a0a592dcab7cec6aa9fa6c27bff249330 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 14 Jul 2020 17:53:36 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java b/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
index 6186ea7..0da4642 100644
--- a/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
+++ b/src/main/java/com/xcong/excoin/rabbit/pricequeue/WebsocketPriceService.java
@@ -37,11 +37,13 @@
// 可以操作
System.out.println("当前价格:" + price + "---正序---" + "队列价格:" + b.getValue().toPlainString() + " time:" + new Date());
while (queue.peek() != null && queue.peek().compareTo(now) <= 0) {
+ log.info("------->");
// 可以发送消息操作
list.add(queue.remove());
}
}
+ log.info("---->{}", JSONObject.toJSONString(list));
if (CollectionUtils.isNotEmpty(list)) {
dealAscPriceOrderAndSenMq(list, symbol);
}
@@ -58,7 +60,6 @@
List<DescBigDecimal> list = new ArrayList<DescBigDecimal>();
// 找到比当前价格还大的就是需要操作的 开多止损
// 即最大的币当前价大 那么需要开多止损
- log.info("---->{}, now:{}", b, now);
if (b != null && b.compareTo(now) <= 0) {
// 可以操作
System.out.println("当前价格:" + price + "---倒序操作---" + "队列:" + b.getValue().toPlainString() + " time:" + new Date());
@@ -93,6 +94,7 @@
}
}
+ log.info("------>{}", JSONObject.toJSONString(orderModelList));
if (CollectionUtils.isEmpty(orderModelList)) {
return;
}
--
Gitblit v1.9.1