mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
deposit2transfer: add pin support
This commit is contained in:
parent
41b1991843
commit
ee7beeced6
|
@ -44,6 +44,7 @@ func init() {
|
|||
type SlackAlert struct {
|
||||
Channel string `json:"channel"`
|
||||
Mentions []string `json:"mentions"`
|
||||
Pin bool `json:"pin"`
|
||||
}
|
||||
|
||||
type Strategy struct {
|
||||
|
@ -243,6 +244,7 @@ func (s *Strategy) addWatchingDeposit(deposit types.Deposit) {
|
|||
if s.SlackAlert != nil {
|
||||
bbgo.PostLiveNote(&deposit,
|
||||
livenote.Channel(s.SlackAlert.Channel),
|
||||
livenote.Pin(s.SlackAlert.Pin),
|
||||
livenote.CompareObject(true),
|
||||
livenote.OneTimeMention(s.SlackAlert.Mentions...),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user