mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
skeleton: add notification sample
This commit is contained in:
parent
dcbeace40e
commit
2550528f60
|
@ -168,6 +168,9 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("createdOrders: %+v", createdOrders)
|
log.Infof("createdOrders: %+v", createdOrders)
|
||||||
|
|
||||||
|
// send notification to slack or telegram if you have configured it
|
||||||
|
bbgo.Notify("order created")
|
||||||
}
|
}
|
||||||
|
|
||||||
// register our kline event handler
|
// register our kline event handler
|
||||||
|
|
Loading…
Reference in New Issue
Block a user