Helius
2020-09-08 3b51e28456fc8c3ca03a27df70645b82c1a1530b
src/main/java/com/xcong/excoin/rabbit/producer/OrderProducer.java
@@ -137,5 +137,28 @@
        }
    }
    /**
     * 发送委托平仓
     *
     * @param content
     */
    public void sendLimitClose(String content) {
        CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
        log.info("发送委托平仓消息:{} == pid:{}", content, correlationData.getId());
        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_A, RabbitMqConfig.ROUTINGKEY_LIMIT_CLOSE, content, correlationData);
    }
    /**
     * 发送全仓爆仓
     *
     * @param content
     */
    public void sendWholeBomb(String content) {
        CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString());
        log.info("发送全仓爆仓消息:{} == pid:{}", content, correlationData.getId());
        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_A, RabbitMqConfig.ROUTINGKEY_WHOLE_BOMB, content, correlationData);
    }
}