bbgo: add NotificationSwitches

This commit is contained in:
c9s 2022-09-19 19:25:18 +08:00
parent b067d67eab
commit 75b61ea285
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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 {