diff --git a/pkg/exchange/okex/convert.go b/pkg/exchange/okex/convert.go index e1079c720..24f3d6a2e 100644 --- a/pkg/exchange/okex/convert.go +++ b/pkg/exchange/okex/convert.go @@ -109,9 +109,8 @@ func segmentOrderDetails(orderDetails []okexapi.OrderDetails) (trades, orders [] for _, orderDetail := range orderDetails { if len(orderDetail.LastTradeID) > 0 { trades = append(trades, orderDetail) - } else { - orders = append(orders, orderDetail) } + orders = append(orders, orderDetail) } return trades, orders }