Documentation ¶
Overview ¶
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 interface{}, arg1 ...interface{}) *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 interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryAccountBalances(arg0 interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryKLines(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryMarkets(arg0 interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryOpenOrders(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryTicker(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) QueryTickers(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockExchangeMockRecorder) SubmitOrder(arg0, arg1 interface{}) *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 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 ¶ added in v1.40.3
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 interface{}, arg1 ...interface{}) *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 interface{}) *gomock.Call
QueryAccount indicates an expected call of QueryAccount.
func (*MockExchangeMockRecorder) QueryAccountBalances ¶
func (mr *MockExchangeMockRecorder) QueryAccountBalances(arg0 interface{}) *gomock.Call
QueryAccountBalances indicates an expected call of QueryAccountBalances.
func (*MockExchangeMockRecorder) QueryKLines ¶
func (mr *MockExchangeMockRecorder) QueryKLines(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
QueryKLines indicates an expected call of QueryKLines.
func (*MockExchangeMockRecorder) QueryMarkets ¶
func (mr *MockExchangeMockRecorder) QueryMarkets(arg0 interface{}) *gomock.Call
QueryMarkets indicates an expected call of QueryMarkets.
func (*MockExchangeMockRecorder) QueryOpenOrders ¶
func (mr *MockExchangeMockRecorder) QueryOpenOrders(arg0, arg1 interface{}) *gomock.Call
QueryOpenOrders indicates an expected call of QueryOpenOrders.
func (*MockExchangeMockRecorder) QueryTicker ¶
func (mr *MockExchangeMockRecorder) QueryTicker(arg0, arg1 interface{}) *gomock.Call
QueryTicker indicates an expected call of QueryTicker.
func (*MockExchangeMockRecorder) QueryTickers ¶
func (mr *MockExchangeMockRecorder) QueryTickers(arg0 interface{}, arg1 ...interface{}) *gomock.Call
QueryTickers indicates an expected call of QueryTickers.
func (*MockExchangeMockRecorder) SubmitOrder ¶ added in v1.40.3
func (mr *MockExchangeMockRecorder) SubmitOrder(arg0, arg1 interface{}) *gomock.Call
SubmitOrder indicates an expected call of SubmitOrder.
type MockExchangeOrderQueryService ¶ added in v1.43.0
type MockExchangeOrderQueryService struct {
// contains filtered or unexported fields
}
MockExchangeOrderQueryService is a mock of ExchangeOrderQueryService interface.
func NewMockExchangeOrderQueryService ¶ added in v1.43.0
func NewMockExchangeOrderQueryService(ctrl *gomock.Controller) *MockExchangeOrderQueryService
NewMockExchangeOrderQueryService creates a new mock instance.
func (*MockExchangeOrderQueryService) EXPECT ¶ added in v1.43.0
func (m *MockExchangeOrderQueryService) EXPECT() *MockExchangeOrderQueryServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchangeOrderQueryService) QueryOrder ¶ added in v1.43.0
func (m *MockExchangeOrderQueryService) QueryOrder(arg0 context.Context, arg1 types.OrderQuery) (*types.Order, error)
QueryOrder mocks base method.
func (*MockExchangeOrderQueryService) QueryOrderTrades ¶ added in v1.43.0
func (m *MockExchangeOrderQueryService) QueryOrderTrades(arg0 context.Context, arg1 types.OrderQuery) ([]types.Trade, error)
QueryOrderTrades mocks base method.
type MockExchangeOrderQueryServiceMockRecorder ¶ added in v1.43.0
type MockExchangeOrderQueryServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangeOrderQueryServiceMockRecorder is the mock recorder for MockExchangeOrderQueryService.
func (*MockExchangeOrderQueryServiceMockRecorder) QueryOrder ¶ added in v1.43.0
func (mr *MockExchangeOrderQueryServiceMockRecorder) QueryOrder(arg0, arg1 interface{}) *gomock.Call
QueryOrder indicates an expected call of QueryOrder.
func (*MockExchangeOrderQueryServiceMockRecorder) QueryOrderTrades ¶ added in v1.43.0
func (mr *MockExchangeOrderQueryServiceMockRecorder) QueryOrderTrades(arg0, arg1 interface{}) *gomock.Call
QueryOrderTrades indicates an expected call of QueryOrderTrades.
type MockExchangeTradeHistoryService ¶ added in v1.47.0
type MockExchangeTradeHistoryService struct {
// contains filtered or unexported fields
}
MockExchangeTradeHistoryService is a mock of ExchangeTradeHistoryService interface.
func NewMockExchangeTradeHistoryService ¶ added in v1.47.0
func NewMockExchangeTradeHistoryService(ctrl *gomock.Controller) *MockExchangeTradeHistoryService
NewMockExchangeTradeHistoryService creates a new mock instance.
func (*MockExchangeTradeHistoryService) EXPECT ¶ added in v1.47.0
func (m *MockExchangeTradeHistoryService) EXPECT() *MockExchangeTradeHistoryServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExchangeTradeHistoryService) QueryClosedOrders ¶ added in v1.47.0
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 ¶ added in v1.47.0
func (m *MockExchangeTradeHistoryService) QueryTrades(arg0 context.Context, arg1 string, arg2 *types.TradeQueryOptions) ([]types.Trade, error)
QueryTrades mocks base method.
type MockExchangeTradeHistoryServiceMockRecorder ¶ added in v1.47.0
type MockExchangeTradeHistoryServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExchangeTradeHistoryServiceMockRecorder is the mock recorder for MockExchangeTradeHistoryService.
func (*MockExchangeTradeHistoryServiceMockRecorder) QueryClosedOrders ¶ added in v1.47.0
func (mr *MockExchangeTradeHistoryServiceMockRecorder) QueryClosedOrders(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
QueryClosedOrders indicates an expected call of QueryClosedOrders.
func (*MockExchangeTradeHistoryServiceMockRecorder) QueryTrades ¶ added in v1.47.0
func (mr *MockExchangeTradeHistoryServiceMockRecorder) QueryTrades(arg0, arg1, arg2 interface{}) *gomock.Call
QueryTrades indicates an expected call of QueryTrades.