mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
okex: fix order detail segmentation
This commit is contained in:
parent
2a5ef30135
commit
64b9c78a5b
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user