mocks

package
v1.39.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

func (m *MockExchange) CancelOrders(arg0 context.Context, arg1 ...types.Order) error

CancelOrders mocks base method.

func (*MockExchange) EXPECT

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

func (m *MockExchange) QueryAccount(arg0 context.Context) (*types.Account, error)

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

func (m *MockExchange) QueryMarkets(arg0 context.Context) (types.MarketMap, error)

QueryMarkets mocks base method.

func (*MockExchange) QueryOpenOrders

func (m *MockExchange) QueryOpenOrders(arg0 context.Context, arg1 string) ([]types.Order, error)

QueryOpenOrders mocks base method.

func (*MockExchange) QueryTicker

func (m *MockExchange) QueryTicker(arg0 context.Context, arg1 string) (*types.Ticker, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL