mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +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 = append(orders, *order)
|
||||||
}
|
}
|
||||||
|
|
||||||
orders = types.SortOrdersAscending(orders)
|
if err != nil {
|
||||||
return orders, nil
|
return nil, err
|
||||||
|
}
|
||||||
|
return types.SortOrdersAscending(orders), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Exchange) CancelAllOrders(ctx context.Context) ([]types.Order, error) {
|
func (e *Exchange) CancelAllOrders(ctx context.Context) ([]types.Order, error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user