mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
bbgo: add NotificationSwitches
This commit is contained in:
parent
b067d67eab
commit
75b61ea285
|
@ -76,9 +76,17 @@ type TelegramNotification struct {
|
||||||
Broadcast bool `json:"broadcast" yaml:"broadcast"`
|
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 {
|
type NotificationConfig struct {
|
||||||
Slack *SlackNotification `json:"slack,omitempty" yaml:"slack,omitempty"`
|
Slack *SlackNotification `json:"slack,omitempty" yaml:"slack,omitempty"`
|
||||||
Telegram *TelegramNotification `json:"telegram,omitempty" yaml:"telegram,omitempty"`
|
Telegram *TelegramNotification `json:"telegram,omitempty" yaml:"telegram,omitempty"`
|
||||||
|
Switches *NotificationSwitches `json:"switches" yaml:"switches"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user