mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-08 23:16:54 +00:00
(CLI) Fix getorders command currency pair filtering (#400)
* add currency pair filtering to getorders * long live the Queen * fixed wording on tests
This commit is contained in:
@@ -621,7 +621,12 @@ func (s *RPCServer) GetOrders(ctx context.Context, r *gctrpc.GetOrdersRequest) (
|
||||
return nil, errors.New("exchange is not loaded/doesn't exist")
|
||||
}
|
||||
|
||||
resp, err := exch.GetActiveOrders(&order.GetOrdersRequest{})
|
||||
resp, err := exch.GetActiveOrders(&order.GetOrdersRequest{
|
||||
Currencies: []currency.Pair{
|
||||
currency.NewPairWithDelimiter(r.Pair.Base,
|
||||
r.Pair.Quote, r.Pair.Delimiter),
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user