Documentation ¶
Index ¶
- type AsyncTimeRangedBatchQuery
- type BinanceFuturesIncomeBatchQuery
- type BinanceFuturesIncomeHistoryService
- type ClosedOrderBatchQuery
- type DepositBatchQuery
- type KLineBatchQuery
- type MarginInterestBatchQuery
- type MarginLiquidationBatchQuery
- type MarginLoanBatchQuery
- type MarginRepayBatchQuery
- type Option
- type RewardBatchQuery
- type TradeBatchQuery
- type WithdrawBatchQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncTimeRangedBatchQuery ¶
type AsyncTimeRangedBatchQuery struct { // Type is the object type of the result Type interface{} // Limiter is the rate limiter for each query Limiter *rate.Limiter // Q is the remote query function Q func(startTime, endTime time.Time) (interface{}, error) // T function returns time of an object T func(obj interface{}) time.Time // ID returns the ID of the object ID func(obj interface{}) string // JumpIfEmpty jump the startTime + duration when the result is empty JumpIfEmpty time.Duration }
type BinanceFuturesIncomeBatchQuery ¶
type BinanceFuturesIncomeBatchQuery struct {
BinanceFuturesIncomeHistoryService
}
func (*BinanceFuturesIncomeBatchQuery) Query ¶
func (e *BinanceFuturesIncomeBatchQuery) Query(ctx context.Context, symbol string, incomeType binanceapi.FuturesIncomeType, startTime, endTime time.Time) (c chan binanceapi.FuturesIncome, errC chan error)
type BinanceFuturesIncomeHistoryService ¶
type BinanceFuturesIncomeHistoryService interface {
QueryFuturesIncomeHistory(ctx context.Context, symbol string, incomeType binanceapi.FuturesIncomeType, startTime, endTime *time.Time) ([]binanceapi.FuturesIncome, error)
}
type ClosedOrderBatchQuery ¶
type ClosedOrderBatchQuery struct {
types.ExchangeTradeHistoryService
}
type DepositBatchQuery ¶
type DepositBatchQuery struct {
types.ExchangeTransferService
}
type KLineBatchQuery ¶
type MarginInterestBatchQuery ¶
type MarginInterestBatchQuery struct {
types.MarginHistoryService
}
type MarginLiquidationBatchQuery ¶
type MarginLiquidationBatchQuery struct {
types.MarginHistoryService
}
func (*MarginLiquidationBatchQuery) Query ¶
func (e *MarginLiquidationBatchQuery) Query(ctx context.Context, startTime, endTime time.Time) (c chan types.MarginLiquidation, errC chan error)
type MarginLoanBatchQuery ¶
type MarginLoanBatchQuery struct {
types.MarginHistoryService
}
type MarginRepayBatchQuery ¶
type MarginRepayBatchQuery struct {
types.MarginHistoryService
}
type Option ¶
type Option func(query *AsyncTimeRangedBatchQuery)
func JumpIfEmpty ¶
JumpIfEmpty jump the startTime + duration when the result is empty
type RewardBatchQuery ¶
type RewardBatchQuery struct {
Service types.ExchangeRewardService
}
type TradeBatchQuery ¶
type TradeBatchQuery struct {
types.ExchangeTradeHistoryService
}
type WithdrawBatchQuery ¶
type WithdrawBatchQuery struct {
types.ExchangeTransferService
}
Click to show internal directories.
Click to hide internal directories.