mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
show symbol name in the order submit message
This commit is contained in:
parent
cb2ee2d502
commit
0fffc379fc
|
@ -279,11 +279,11 @@ func (trader *Trader) ReportPnL() {
|
|||
}
|
||||
|
||||
func (trader *Trader) SubmitOrder(ctx context.Context, order *types.Order) {
|
||||
trader.Notifier.Notify(":memo: Submitting %s order on side %s with volume: %s", order.Type, order.Side, order.VolumeStr, order.SlackAttachment())
|
||||
trader.Notifier.Notify(":memo: Submitting %s %s %s order with quantity: %s", order.Symbol, order.Type, order.Side, order.VolumeStr, order)
|
||||
|
||||
err := trader.Exchange.SubmitOrder(ctx, order)
|
||||
if err != nil {
|
||||
log.WithError(err).Errorf("order create error: side %s volume: %s", order.Side, order.VolumeStr)
|
||||
log.WithError(err).Errorf("order create error: side %s quantity: %s", order.Side, order.VolumeStr)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user