From ce6fd387be2be58c0dbce9289741fd07fd3faa53 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 27 Apr 2022 14:29:58 +0800 Subject: [PATCH] remove unused ConvertTrades --- pkg/exchange/binance/convert.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/exchange/binance/convert.go b/pkg/exchange/binance/convert.go index 936dd3f13..1805db858 100644 --- a/pkg/exchange/binance/convert.go +++ b/pkg/exchange/binance/convert.go @@ -583,20 +583,6 @@ func toGlobalFuturesOrderStatus(orderStatus futures.OrderStatusType) types.Order return types.OrderStatus(orderStatus) } -// ConvertTrades converts the binance v3 trade into the global trade type -func ConvertTrades(remoteTrades []*binance.TradeV3) (trades []types.Trade, err error) { - for _, t := range remoteTrades { - trade, err := toGlobalTrade(*t, false) - if err != nil { - return nil, errors.Wrapf(err, "binance v3 trade parse error, trade: %+v", *t) - } - - trades = append(trades, *trade) - } - - return trades, err -} - func convertSubscription(s types.Subscription) string { // binance uses lower case symbol name, // for kline, it's "@kline_"