Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockOrderExecutor
- func (m *MockOrderExecutor) ActiveMakerOrders() *bbgo.ActiveOrderBook
- func (m *MockOrderExecutor) ClosePosition(arg0 context.Context, arg1 fixedpoint.Value, arg2 ...string) error
- func (m *MockOrderExecutor) EXPECT() *MockOrderExecutorMockRecorder
- func (m *MockOrderExecutor) GracefulCancel(arg0 context.Context, arg1 ...types.Order) error
- func (m *MockOrderExecutor) SubmitOrders(arg0 context.Context, arg1 ...types.SubmitOrder) (types.OrderSlice, error)
- type MockOrderExecutorMockRecorder
- func (mr *MockOrderExecutorMockRecorder) ActiveMakerOrders() *gomock.Call
- func (mr *MockOrderExecutorMockRecorder) ClosePosition(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockOrderExecutorMockRecorder) GracefulCancel(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockOrderExecutorMockRecorder) SubmitOrders(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockOrderExecutor ¶
type MockOrderExecutor struct {
// contains filtered or unexported fields
}
MockOrderExecutor is a mock of OrderExecutor interface.
func NewMockOrderExecutor ¶
func NewMockOrderExecutor(ctrl *gomock.Controller) *MockOrderExecutor
NewMockOrderExecutor creates a new mock instance.
func (*MockOrderExecutor) ActiveMakerOrders ¶ added in v1.43.1
func (m *MockOrderExecutor) ActiveMakerOrders() *bbgo.ActiveOrderBook
ActiveMakerOrders mocks base method.
func (*MockOrderExecutor) ClosePosition ¶
func (m *MockOrderExecutor) ClosePosition(arg0 context.Context, arg1 fixedpoint.Value, arg2 ...string) error
ClosePosition mocks base method.
func (*MockOrderExecutor) EXPECT ¶
func (m *MockOrderExecutor) EXPECT() *MockOrderExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderExecutor) GracefulCancel ¶
GracefulCancel mocks base method.
func (*MockOrderExecutor) SubmitOrders ¶
func (m *MockOrderExecutor) SubmitOrders(arg0 context.Context, arg1 ...types.SubmitOrder) (types.OrderSlice, error)
SubmitOrders mocks base method.
type MockOrderExecutorMockRecorder ¶
type MockOrderExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderExecutorMockRecorder is the mock recorder for MockOrderExecutor.
func (*MockOrderExecutorMockRecorder) ActiveMakerOrders ¶ added in v1.43.1
func (mr *MockOrderExecutorMockRecorder) ActiveMakerOrders() *gomock.Call
ActiveMakerOrders indicates an expected call of ActiveMakerOrders.
func (*MockOrderExecutorMockRecorder) ClosePosition ¶
func (mr *MockOrderExecutorMockRecorder) ClosePosition(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ClosePosition indicates an expected call of ClosePosition.
func (*MockOrderExecutorMockRecorder) GracefulCancel ¶
func (mr *MockOrderExecutorMockRecorder) GracefulCancel(arg0 interface{}, arg1 ...interface{}) *gomock.Call
GracefulCancel indicates an expected call of GracefulCancel.
func (*MockOrderExecutorMockRecorder) SubmitOrders ¶
func (mr *MockOrderExecutorMockRecorder) SubmitOrders(arg0 interface{}, arg1 ...interface{}) *gomock.Call
SubmitOrders indicates an expected call of SubmitOrders.