mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: add order status to the error message
This commit is contained in:
parent
97422f26e7
commit
b56c800e12
|
@ -580,10 +580,11 @@ func (e *Exchange) CancelOrders(ctx context.Context, orders ...types.Order) (err
|
|||
_, err2 := req.Do(ctx)
|
||||
if err2 != nil {
|
||||
err = multierr.Append(err, errors.Wrapf(
|
||||
err2, "can not cancel %s order. orderID: %d clientOrderID: %s",
|
||||
err2, "can not cancel %s order. orderID: %d clientOrderID: %s status: %s",
|
||||
o.Symbol,
|
||||
o.OrderID,
|
||||
o.ClientOrderID))
|
||||
o.ClientOrderID,
|
||||
o.Status))
|
||||
}
|
||||
} else {
|
||||
// SPOT
|
||||
|
@ -604,10 +605,11 @@ func (e *Exchange) CancelOrders(ctx context.Context, orders ...types.Order) (err
|
|||
_, err2 := req.Do(ctx)
|
||||
if err2 != nil {
|
||||
err = multierr.Append(err, errors.Wrapf(
|
||||
err2, "can not cancel %s order. orderID: %d clientOrderID: %s",
|
||||
err2, "can not cancel %s order. orderID: %d clientOrderID: %s status: %s",
|
||||
o.Symbol,
|
||||
o.OrderID,
|
||||
o.ClientOrderID))
|
||||
o.ClientOrderID,
|
||||
o.Status))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user