feat: subscribe to RabbitMQ trade signals and notify by rules
Consume configurable queues, format signals (including period), share NotifyService with HTTP, and drop duplicate bodies within 1h.
This commit is contained in:
@@ -33,3 +33,26 @@ logbull:
|
||||
project_id: "42a3fef0-2fd6-4ce4-80c5-f6bb6ecc2013"
|
||||
api_key: "lb_60701971723797ed0374aa3896078fe5"
|
||||
log_level: "INFO"
|
||||
|
||||
# 多队列重复消息按 body SHA-256 去重;有 Redis 时跨进程共享
|
||||
subscription_dedup_ttl: 1h
|
||||
|
||||
subscriptions:
|
||||
- name: trade-signal
|
||||
url: "${RABBITMQ_URL}"
|
||||
queue: trade.signal.notify.queue
|
||||
dead_letter_queue: trade.signal.notify.dlq
|
||||
exchange: trade.signal.executor.queue
|
||||
exchange_type: fanout
|
||||
routing_key: ""
|
||||
max_retry: 3
|
||||
source: trade-signal
|
||||
formatter: trade_signal
|
||||
strategy_overrides:
|
||||
BLONG:
|
||||
quantity_multipliers:
|
||||
open: 100
|
||||
add: 100
|
||||
reduce: 100
|
||||
close: 100
|
||||
leverage: 100
|
||||
|
||||
Reference in New Issue
Block a user