mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
bbgo: add telegram config
This commit is contained in:
parent
a2c29f4519
commit
2b0793ee49
|
@ -65,9 +65,15 @@ type SlackNotificationRouting struct {
|
||||||
PnL string `json:"pnL,omitempty" yaml:"pnL,omitempty"`
|
PnL string `json:"pnL,omitempty" yaml:"pnL,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TelegramNotification struct {
|
||||||
|
Broadcast bool `json:"broadcast" yaml:"broadcast"`
|
||||||
|
}
|
||||||
|
|
||||||
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"`
|
||||||
|
|
||||||
SymbolChannels map[string]string `json:"symbolChannels,omitempty" yaml:"symbolChannels,omitempty"`
|
SymbolChannels map[string]string `json:"symbolChannels,omitempty" yaml:"symbolChannels,omitempty"`
|
||||||
SessionChannels map[string]string `json:"sessionChannels,omitempty" yaml:"sessionChannels,omitempty"`
|
SessionChannels map[string]string `json:"sessionChannels,omitempty" yaml:"sessionChannels,omitempty"`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user