Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockExchange
- func (m *MockExchange) CancelOrders(arg0 context.Context, arg1 ...types.Order) error
- func (m *MockExchange) EXPECT() *MockExchangeMockRecorder
- func (m *MockExchange) Name() types.ExchangeName
- func (m *MockExchange) NewStream() types.Stream
- func (m *MockExchange) PlatformFeeCurrency() string
- func (m *MockExchange) QueryAccount(arg0 context.Context) (*types.Account, error)
- func (m *MockExchange) QueryAccountBalances(arg0 context.Context) (types.BalanceMap, error)
- func (m *MockExchange) QueryKLines(arg0 context.Context, arg1 string, arg2 types.Interval, ...) ([]types.KLine, error)
- func (m *MockExchange) QueryMarkets(arg0 context.Context) (types.MarketMap, error)
- func (m *MockExchange) QueryOpenOrders(arg0 context.Context, arg1 string) ([]types.Order, error)
- func (m *MockExchange) QueryTicker(arg0 context.Context, arg1 string) (*types.Ticker, error)
- func (m *MockExchange) QueryTickers(arg0 context.Context, arg1 ...string) (map[string]types.Ticker, error)
- func (m *MockExchange) SubmitOrder(arg0 context.Context, arg1 types.SubmitOrder) (*types.Order, error)
- type MockExchangeMockRecorder
- func (mr *MockExchangeMockRecorder) CancelOrders(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockExchangeMockRecorder) Name() *gomock.Call
- func (mr *MockExchangeMockRecorder) NewStream() *gomock.Call
- func (mr *MockExchangeMockRecorder) PlatformFeeCurrency() *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryAccount(arg0 any) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryAccountBalances(arg0 any) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryKLines(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryMarkets(arg0 any) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryOpenOrders(arg0, arg1 any) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryTicker(arg0, arg1 any) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryTickers(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockExchangeMockRecorder) SubmitOrder(arg0, arg1 any) *gomock.Call
- type MockExchangeOrderQueryService
- func (m *MockExchangeOrderQueryService) EXPECT() *MockExchangeOrderQueryServiceMockRecorder
- func (m *MockExchangeOrderQueryService) QueryOrder(arg0 context.Context, arg1 types.OrderQuery) (*types.Order, error)
- func (m *MockExchangeOrderQueryService) QueryOrderTrades(arg0 context.Context, arg1 types.OrderQuery) ([]types.Trade, error)
- type MockExchangeOrderQueryServiceMockRecorder
- type MockExchangePublic
- func (m *MockExchangePublic) EXPECT() *MockExchangePublicMockRecorder
- func (m *MockExchangePublic) Name() types.ExchangeName
- func (m *MockExchangePublic) NewStream() types.Stream
- func (m *MockExchangePublic) PlatformFeeCurrency() string
- func (m *MockExchangePublic) QueryKLines(arg0 context.Context, arg1 string, arg2 types.Interval, ...) ([]types.KLine, error)
- func (m *MockExchangePublic) QueryMarkets(arg0 context.Context) (types.MarketMap, error)
- func (m *MockExchangePublic) QueryTicker(arg0 context.Context, arg1 string) (*types.Ticker, error)
- func (m *MockExchangePublic) QueryTickers(arg0 context.Context, arg1 ...string) (map[string]types.Ticker, error)
- type MockExchangePublicMockRecorder
- func (mr *MockExchangePublicMockRecorder) Name() *gomock.Call
- func (mr *MockExchangePublicMockRecorder) NewStream() *gomock.Call
- func (mr *MockExchangePublicMockRecorder) PlatformFeeCurrency() *gomock.Call
- func (mr *MockExchangePublicMockRecorder) QueryKLines(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockExchangePublicMockRecorder) QueryMarkets(arg0 any) *gomock.Call
- func (mr *MockExchangePublicMockRecorder) QueryTicker(arg0, arg1 any) *gomock.Call
- func (mr *MockExchangePublicMockRecorder) QueryTickers(arg0 any, arg1 ...any) *gomock.Call
- type MockExchangeTradeHistoryService
- func (m *MockExchangeTradeHistoryService) EXPECT() *MockExchangeTradeHistoryServiceMockRecorder
- func (m *MockExchangeTradeHistoryService) QueryClosedOrders(arg0 context.Context, arg1 string, arg2, arg3 time.Time, arg4 uint64) ([]types.Order, error)
- func (m *MockExchangeTradeHistoryService) QueryTrades(arg0 context.Context, arg1 string, arg2 *types.TradeQueryOptions) ([]types.Trade, error)
- type MockExchangeTradeHistoryServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExchange ¶
type MockExchange struct {
// contains filtered or unexported fields
}
MockExchange is a mock of Exchange interface.
func NewMockExchange ¶
func NewMockExchange(ctrl *gomock.Controller) *MockExchange
NewMockExchange creates a new mock instance.
func (*MockExchange) CancelOrders ¶
CancelOrders mocks base method.
func (*MockExchange) EXPECT ¶
func (m *MockExchange) EXPECT() *MockExchangeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchange) Name ¶
func (m *MockExchange) Name() types.ExchangeName
Name mocks base method.
func (*MockExchange) NewStream ¶
func (m *MockExchange) NewStream() types.Stream
NewStream mocks base method.
func (*MockExchange) PlatformFeeCurrency ¶
func (m *MockExchange) PlatformFeeCurrency() string
PlatformFeeCurrency mocks base method.
func (*MockExchange) QueryAccount ¶
QueryAccount mocks base method.
func (*MockExchange) QueryAccountBalances ¶
func (m *MockExchange) QueryAccountBalances(arg0 context.Context) (types.BalanceMap, error)
QueryAccountBalances mocks base method.
func (*MockExchange) QueryKLines ¶
func (m *MockExchange) QueryKLines(arg0 context.Context, arg1 string, arg2 types.Interval, arg3 types.KLineQueryOptions) ([]types.KLine, error)
QueryKLines mocks base method.
func (*MockExchange) QueryMarkets ¶
QueryMarkets mocks base method.
func (*MockExchange) QueryOpenOrders ¶
QueryOpenOrders mocks base method.
func (*MockExchange) QueryTicker ¶
QueryTicker mocks base method.
func (*MockExchange) QueryTickers ¶
func (m *MockExchange) QueryTickers(arg0 context.Context, arg1 ...string) (map[string]types.Ticker, error)
QueryTickers mocks base method.
func (*MockExchange) SubmitOrder ¶
func (m *MockExchange) SubmitOrder(arg0 context.Context, arg1 types.SubmitOrder) (*types.Order, error)
SubmitOrder mocks base method.
type MockExchangeMockRecorder ¶
type MockExchangeMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangeMockRecorder is the mock recorder for MockExchange.
func (*MockExchangeMockRecorder) CancelOrders ¶
func (mr *MockExchangeMockRecorder) CancelOrders(arg0 any, arg1 ...any) *gomock.Call
CancelOrders indicates an expected call of CancelOrders.
func (*MockExchangeMockRecorder) Name ¶
func (mr *MockExchangeMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockExchangeMockRecorder) NewStream ¶
func (mr *MockExchangeMockRecorder) NewStream() *gomock.Call
NewStream indicates an expected call of NewStream.
func (*MockExchangeMockRecorder) PlatformFeeCurrency ¶
func (mr *MockExchangeMockRecorder) PlatformFeeCurrency() *gomock.Call
PlatformFeeCurrency indicates an expected call of PlatformFeeCurrency.
func (*MockExchangeMockRecorder) QueryAccount ¶
func (mr *MockExchangeMockRecorder) QueryAccount(arg0 any) *gomock.Call
QueryAccount indicates an expected call of QueryAccount.
func (*MockExchangeMockRecorder) QueryAccountBalances ¶
func (mr *MockExchangeMockRecorder) QueryAccountBalances(arg0 any) *gomock.Call
QueryAccountBalances indicates an expected call of QueryAccountBalances.
func (*MockExchangeMockRecorder) QueryKLines ¶
func (mr *MockExchangeMockRecorder) QueryKLines(arg0, arg1, arg2, arg3 any) *gomock.Call
QueryKLines indicates an expected call of QueryKLines.
func (*MockExchangeMockRecorder) QueryMarkets ¶
func (mr *MockExchangeMockRecorder) QueryMarkets(arg0 any) *gomock.Call
QueryMarkets indicates an expected call of QueryMarkets.
func (*MockExchangeMockRecorder) QueryOpenOrders ¶
func (mr *MockExchangeMockRecorder) QueryOpenOrders(arg0, arg1 any) *gomock.Call
QueryOpenOrders indicates an expected call of QueryOpenOrders.
func (*MockExchangeMockRecorder) QueryTicker ¶
func (mr *MockExchangeMockRecorder) QueryTicker(arg0, arg1 any) *gomock.Call
QueryTicker indicates an expected call of QueryTicker.
func (*MockExchangeMockRecorder) QueryTickers ¶
func (mr *MockExchangeMockRecorder) QueryTickers(arg0 any, arg1 ...any) *gomock.Call
QueryTickers indicates an expected call of QueryTickers.
func (*MockExchangeMockRecorder) SubmitOrder ¶
func (mr *MockExchangeMockRecorder) SubmitOrder(arg0, arg1 any) *gomock.Call
SubmitOrder indicates an expected call of SubmitOrder.
type MockExchangeOrderQueryService ¶
type MockExchangeOrderQueryService struct {
// contains filtered or unexported fields
}
MockExchangeOrderQueryService is a mock of ExchangeOrderQueryService interface.
func NewMockExchangeOrderQueryService ¶
func NewMockExchangeOrderQueryService(ctrl *gomock.Controller) *MockExchangeOrderQueryService
NewMockExchangeOrderQueryService creates a new mock instance.
func (*MockExchangeOrderQueryService) EXPECT ¶
func (m *MockExchangeOrderQueryService) EXPECT() *MockExchangeOrderQueryServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchangeOrderQueryService) QueryOrder ¶
func (m *MockExchangeOrderQueryService) QueryOrder(arg0 context.Context, arg1 types.OrderQuery) (*types.Order, error)
QueryOrder mocks base method.
func (*MockExchangeOrderQueryService) QueryOrderTrades ¶
func (m *MockExchangeOrderQueryService) QueryOrderTrades(arg0 context.Context, arg1 types.OrderQuery) ([]types.Trade, error)
QueryOrderTrades mocks base method.
type MockExchangeOrderQueryServiceMockRecorder ¶
type MockExchangeOrderQueryServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangeOrderQueryServiceMockRecorder is the mock recorder for MockExchangeOrderQueryService.
func (*MockExchangeOrderQueryServiceMockRecorder) QueryOrder ¶
func (mr *MockExchangeOrderQueryServiceMockRecorder) QueryOrder(arg0, arg1 any) *gomock.Call
QueryOrder indicates an expected call of QueryOrder.
func (*MockExchangeOrderQueryServiceMockRecorder) QueryOrderTrades ¶
func (mr *MockExchangeOrderQueryServiceMockRecorder) QueryOrderTrades(arg0, arg1 any) *gomock.Call
QueryOrderTrades indicates an expected call of QueryOrderTrades.
type MockExchangePublic ¶
type MockExchangePublic struct {
// contains filtered or unexported fields
}
MockExchangePublic is a mock of ExchangePublic interface.
func NewMockExchangePublic ¶
func NewMockExchangePublic(ctrl *gomock.Controller) *MockExchangePublic
NewMockExchangePublic creates a new mock instance.
func (*MockExchangePublic) EXPECT ¶
func (m *MockExchangePublic) EXPECT() *MockExchangePublicMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchangePublic) Name ¶
func (m *MockExchangePublic) Name() types.ExchangeName
Name mocks base method.
func (*MockExchangePublic) NewStream ¶
func (m *MockExchangePublic) NewStream() types.Stream
NewStream mocks base method.
func (*MockExchangePublic) PlatformFeeCurrency ¶
func (m *MockExchangePublic) PlatformFeeCurrency() string
PlatformFeeCurrency mocks base method.
func (*MockExchangePublic) QueryKLines ¶
func (m *MockExchangePublic) QueryKLines(arg0 context.Context, arg1 string, arg2 types.Interval, arg3 types.KLineQueryOptions) ([]types.KLine, error)
QueryKLines mocks base method.
func (*MockExchangePublic) QueryMarkets ¶
QueryMarkets mocks base method.
func (*MockExchangePublic) QueryTicker ¶
QueryTicker mocks base method.
func (*MockExchangePublic) QueryTickers ¶
func (m *MockExchangePublic) QueryTickers(arg0 context.Context, arg1 ...string) (map[string]types.Ticker, error)
QueryTickers mocks base method.
type MockExchangePublicMockRecorder ¶
type MockExchangePublicMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangePublicMockRecorder is the mock recorder for MockExchangePublic.
func (*MockExchangePublicMockRecorder) Name ¶
func (mr *MockExchangePublicMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockExchangePublicMockRecorder) NewStream ¶
func (mr *MockExchangePublicMockRecorder) NewStream() *gomock.Call
NewStream indicates an expected call of NewStream.
func (*MockExchangePublicMockRecorder) PlatformFeeCurrency ¶
func (mr *MockExchangePublicMockRecorder) PlatformFeeCurrency() *gomock.Call
PlatformFeeCurrency indicates an expected call of PlatformFeeCurrency.
func (*MockExchangePublicMockRecorder) QueryKLines ¶
func (mr *MockExchangePublicMockRecorder) QueryKLines(arg0, arg1, arg2, arg3 any) *gomock.Call
QueryKLines indicates an expected call of QueryKLines.
func (*MockExchangePublicMockRecorder) QueryMarkets ¶
func (mr *MockExchangePublicMockRecorder) QueryMarkets(arg0 any) *gomock.Call
QueryMarkets indicates an expected call of QueryMarkets.
func (*MockExchangePublicMockRecorder) QueryTicker ¶
func (mr *MockExchangePublicMockRecorder) QueryTicker(arg0, arg1 any) *gomock.Call
QueryTicker indicates an expected call of QueryTicker.
func (*MockExchangePublicMockRecorder) QueryTickers ¶
func (mr *MockExchangePublicMockRecorder) QueryTickers(arg0 any, arg1 ...any) *gomock.Call
QueryTickers indicates an expected call of QueryTickers.
type MockExchangeTradeHistoryService ¶
type MockExchangeTradeHistoryService struct {
// contains filtered or unexported fields
}
MockExchangeTradeHistoryService is a mock of ExchangeTradeHistoryService interface.
func NewMockExchangeTradeHistoryService ¶
func NewMockExchangeTradeHistoryService(ctrl *gomock.Controller) *MockExchangeTradeHistoryService
NewMockExchangeTradeHistoryService creates a new mock instance.
func (*MockExchangeTradeHistoryService) EXPECT ¶
func (m *MockExchangeTradeHistoryService) EXPECT() *MockExchangeTradeHistoryServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchangeTradeHistoryService) QueryClosedOrders ¶
func (m *MockExchangeTradeHistoryService) QueryClosedOrders(arg0 context.Context, arg1 string, arg2, arg3 time.Time, arg4 uint64) ([]types.Order, error)
QueryClosedOrders mocks base method.
func (*MockExchangeTradeHistoryService) QueryTrades ¶
func (m *MockExchangeTradeHistoryService) QueryTrades(arg0 context.Context, arg1 string, arg2 *types.TradeQueryOptions) ([]types.Trade, error)
QueryTrades mocks base method.
type MockExchangeTradeHistoryServiceMockRecorder ¶
type MockExchangeTradeHistoryServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangeTradeHistoryServiceMockRecorder is the mock recorder for MockExchangeTradeHistoryService.
func (*MockExchangeTradeHistoryServiceMockRecorder) QueryClosedOrders ¶
func (mr *MockExchangeTradeHistoryServiceMockRecorder) QueryClosedOrders(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
QueryClosedOrders indicates an expected call of QueryClosedOrders.
func (*MockExchangeTradeHistoryServiceMockRecorder) QueryTrades ¶
func (mr *MockExchangeTradeHistoryServiceMockRecorder) QueryTrades(arg0, arg1, arg2 any) *gomock.Call
QueryTrades indicates an expected call of QueryTrades.