mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
pkg/exhcange: return err on max queryClosedOrdersByLastOrderID
This commit is contained in:
parent
270283d027
commit
f25ab567eb
|
@ -305,8 +305,10 @@ func (e *Exchange) queryClosedOrdersByLastOrderID(ctx context.Context, symbol st
|
|||
orders = append(orders, *order)
|
||||
}
|
||||
|
||||
orders = types.SortOrdersAscending(orders)
|
||||
return orders, nil
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return types.SortOrdersAscending(orders), nil
|
||||
}
|
||||
|
||||
func (e *Exchange) CancelAllOrders(ctx context.Context) ([]types.Order, error) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user