Documentation ¶
Overview ¶
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) SubmitOrders(arg0 context.Context, arg1 ...types.SubmitOrder) (types.OrderSlice, 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) SubmitOrders(arg0 interface{}, arg1 ...interface{}) *gomock.Call
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) SubmitOrders ¶
func (m *MockExchange) SubmitOrders(arg0 context.Context, arg1 ...types.SubmitOrder) (types.OrderSlice, error)
SubmitOrders 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) SubmitOrders ¶
func (mr *MockExchangeMockRecorder) SubmitOrders(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SubmitOrders indicates an expected call of SubmitOrders.