skeleton: add notification sample

This commit is contained in:
c9s 2022-06-22 23:28:49 +08:00
parent dcbeace40e
commit 2550528f60
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

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