mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
batch: fix binance query return type
This commit is contained in:
parent
111e435a0a
commit
c6cedde8c9
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue
Block a user