From 75b61ea285c70d2dbd79bef817c122fe1f3cc874 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 19 Sep 2022 19:25:18 +0800 Subject: [PATCH] bbgo: add NotificationSwitches --- pkg/bbgo/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/bbgo/config.go b/pkg/bbgo/config.go index d0feae563..5f51624b7 100644 --- a/pkg/bbgo/config.go +++ b/pkg/bbgo/config.go @@ -76,9 +76,17 @@ type TelegramNotification struct { Broadcast bool `json:"broadcast" yaml:"broadcast"` } +type NotificationSwitches struct { + Trade bool `json:"trade" yaml:"trade"` + Position bool `json:"position" yaml:"position"` + OrderUpdate bool `json:"orderUpdate" yaml:"orderUpdate"` + SubmitOrder bool `json:"submitOrder" yaml:"submitOrder"` +} + type NotificationConfig struct { Slack *SlackNotification `json:"slack,omitempty" yaml:"slack,omitempty"` Telegram *TelegramNotification `json:"telegram,omitempty" yaml:"telegram,omitempty"` + Switches *NotificationSwitches `json:"switches" yaml:"switches"` } type Session struct {