From ed51eff2423b9b564883b58b140d2d3940a6dfe5 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 4 Sep 2024 14:59:10 +0800 Subject: [PATCH] max: drop unused function --- pkg/exchange/max/convert.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/pkg/exchange/max/convert.go b/pkg/exchange/max/convert.go index 7c23f9b69..85cab17e4 100644 --- a/pkg/exchange/max/convert.go +++ b/pkg/exchange/max/convert.go @@ -247,29 +247,6 @@ func toGlobalTradeV3(t v3.Trade) ([]types.Trade, error) { return trades, nil } -func toGlobalTradeV2(t max.Trade) (*types.Trade, error) { - isMargin := t.WalletType == max.WalletTypeMargin - side := toGlobalSideType(t.Side) - return &types.Trade{ - ID: t.ID, - OrderID: t.OrderID, - Price: t.Price, - Symbol: toGlobalSymbol(t.Market), - Exchange: types.ExchangeMax, - Quantity: t.Volume, - Side: side, - IsBuyer: t.IsBuyer(), - IsMaker: t.IsMaker(), - Fee: t.Fee, - FeeCurrency: toGlobalCurrency(t.FeeCurrency), - QuoteQuantity: t.Funds, - Time: types.Time(t.CreatedAt), - IsMargin: isMargin, - IsIsolated: false, - IsFutures: false, - }, nil -} - func toGlobalDepositStatus(a max.DepositState) types.DepositStatus { switch a {