From c6cedde8c936559843c3f796f98f4f31a7dcef97 Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 26 Mar 2023 00:56:24 +0800 Subject: [PATCH] batch: fix binance query return type --- pkg/exchange/batch/funding_fee.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exchange/batch/funding_fee.go b/pkg/exchange/batch/funding_fee.go index 98c1453f0..3d9941894 100644 --- a/pkg/exchange/batch/funding_fee.go +++ b/pkg/exchange/batch/funding_fee.go @@ -18,7 +18,7 @@ type BinanceFuturesIncomeBatchQuery struct { BinanceFuturesIncomeHistoryService } -func (e *BinanceFuturesIncomeBatchQuery) Query(ctx context.Context, symbol string, incomeType binanceapi.FuturesIncomeType, startTime, endTime time.Time) (c chan types.MarginInterest, errC chan error) { +func (e *BinanceFuturesIncomeBatchQuery) Query(ctx context.Context, symbol string, incomeType binanceapi.FuturesIncomeType, startTime, endTime time.Time) (c chan binanceapi.FuturesIncome, errC chan error) { query := &AsyncTimeRangedBatchQuery{ Type: types.MarginInterest{}, Limiter: rate.NewLimiter(rate.Every(3*time.Second), 1),