From 6ce4bf099fa38fe66e44722eccc111c8b33e7f96 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 29 Jun 2026 10:27:34 +0800
Subject: [PATCH] 假设多仓止损挂单位置: gridId=-5, -6, -7, -8 第一个止损位置: firstLongSlId = -5(最近的)
---
src/test/java/com/xcong/excoin/RabbitMqTest.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/test/java/com/xcong/excoin/RabbitMqTest.java b/src/test/java/com/xcong/excoin/RabbitMqTest.java
index 82b668b..32f820e 100644
--- a/src/test/java/com/xcong/excoin/RabbitMqTest.java
+++ b/src/test/java/com/xcong/excoin/RabbitMqTest.java
@@ -1,5 +1,6 @@
package com.xcong.excoin;
+import com.xcong.excoin.rabbit.pricequeue.WebsocketPriceService;
import com.xcong.excoin.rabbit.producer.TestProducer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -16,9 +17,17 @@
@Autowired
private TestProducer testProducer;
+ @Resource
+ private WebsocketPriceService websocketPriceService;
@Test
public void sendTestMsg() {
testProducer.sendTestMsg("this is test msg");
}
+
+ @Test
+ public void bombTest() {
+
+ websocketPriceService.comparePriceDesc("BTC/USDT", "9608");
+ }
}
--
Gitblit v1.9.1