From d0ae7aaed97300f4cbefb9542f041f0c72d5edf3 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 04 Mar 2021 11:27:39 +0800 Subject: [PATCH] Merge branch 'whole_new' of http://120.27.238.55:7000/r/exchange into whole_new --- src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java b/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java index 6d6c947..b8a2da2 100644 --- a/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java +++ b/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java @@ -76,6 +76,9 @@ // 全仓爆仓 public static final String QUEUE_WHOLE_BOMB = "QUEUE_WHOLE_BOMB_NEW"; + // 全仓价格操作 + public static final String QUEUE_WHOLE_PRICE = "QUEUE_WHOLE_PRCE"; + // 开多止盈路由键 public static final String ROUTINGKEY_MOREPRO = "ROUTINGKEY_MOREPRO"; @@ -102,6 +105,9 @@ // 全仓爆仓 public static final String ROUTINGKEY_WHOLE_BOMB = "ROUTINGKEY_WHOLE_BOMB"; + + // 全仓价格操作 + public static final String ROUTINGKEY_WHOLE_PRICE = "ROUTINGKEY_WHOLE_PRICE"; @Resource private ConnectionFactory connectionFactory; @@ -276,6 +282,10 @@ return new Queue(QUEUE_CLOSETRADE, true); } + @Bean + public Queue queueWholePrice() { + return new Queue(QUEUE_WHOLE_PRICE, true); + } /** * 全仓爆仓 * @return @@ -285,6 +295,12 @@ return new Queue(QUEUE_WHOLE_BOMB, true); } + + @Bean + public Binding bindingWholePrice() { + return BindingBuilder.bind(queueWholePrice()).to(orderExchange()).with(RabbitMqConfig.ROUTINGKEY_WHOLE_PRICE); + } + /** * 开多止盈 * -- Gitblit v1.9.1