From 64b9c78a5be1ddb9adcb5d7e9231e3b86876f5cd Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 29 May 2021 00:27:05 +0800 Subject: [PATCH] okex: fix order detail segmentation --- pkg/exchange/okex/convert.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }