Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockApiClient
- func (m *MockApiClient) EXPECT() *MockApiClientMockRecorder
- func (m *MockApiClient) GetAccounts() ([]*domain.Account, error)
- func (m *MockApiClient) GetCandles(figi string, from, to time.Time, interval domain.CandleInterval) ([]*domain.HistoricCandle, error)
- func (m *MockApiClient) GetLastPrices() ([]*domain.LastPrice, error)
- func (m *MockApiClient) GetOrders(accountId string) ([]*domain.OrderState, error)
- func (m *MockApiClient) GetPortfolio(accountId string) ([]*domain.PortfolioPosition, error)
- func (m *MockApiClient) GetSandboxAccounts() ([]*domain.Account, error)
- func (m *MockApiClient) GetSandboxOrders(accountId string) ([]*domain.OrderState, error)
- func (m *MockApiClient) GetSandboxPortfolio(accountId string) ([]*domain.PortfolioPosition, error)
- func (m *MockApiClient) GetSandboxPositions(accountId string) (*domain.PositionsResponse, error)
- func (m *MockApiClient) GetShares() ([]*domain.Share, error)
- func (m *MockApiClient) OpenSandboxAccount() (string, error)
- func (m *MockApiClient) PostOrder(figi string, lots int64, price decimal.Decimal, ...) (*domain.PostOrderResponse, error)
- func (m *MockApiClient) PostSandboxOrder(figi string, lots int64, price decimal.Decimal, ...) (*domain.PostOrderResponse, error)
- func (m *MockApiClient) SandboxPayIn(accountId string, amount *domain.MoneyValue) error
- type MockApiClientMockRecorder
- func (mr *MockApiClientMockRecorder) GetAccounts() *gomock.Call
- func (mr *MockApiClientMockRecorder) GetCandles(figi, from, to, interval interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetLastPrices() *gomock.Call
- func (mr *MockApiClientMockRecorder) GetOrders(accountId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetPortfolio(accountId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSandboxAccounts() *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSandboxOrders(accountId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSandboxPortfolio(accountId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetSandboxPositions(accountId interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) GetShares() *gomock.Call
- func (mr *MockApiClientMockRecorder) OpenSandboxAccount() *gomock.Call
- func (mr *MockApiClientMockRecorder) PostOrder(figi, lots, price, direction, accountId, orderType interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) PostSandboxOrder(figi, lots, price, direction, accountId, orderType interface{}) *gomock.Call
- func (mr *MockApiClientMockRecorder) SandboxPayIn(accountId, amount interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApiClient ¶
type MockApiClient struct {
// contains filtered or unexported fields
}
MockApiClient is a mock of ApiClient interface.
func NewMockApiClient ¶
func NewMockApiClient(ctrl *gomock.Controller) *MockApiClient
NewMockApiClient creates a new mock instance.
func (*MockApiClient) EXPECT ¶
func (m *MockApiClient) EXPECT() *MockApiClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockApiClient) GetAccounts ¶
func (m *MockApiClient) GetAccounts() ([]*domain.Account, error)
GetAccounts mocks base method.
func (*MockApiClient) GetCandles ¶
func (m *MockApiClient) GetCandles(figi string, from, to time.Time, interval domain.CandleInterval) ([]*domain.HistoricCandle, error)
GetCandles mocks base method.
func (*MockApiClient) GetLastPrices ¶
func (m *MockApiClient) GetLastPrices() ([]*domain.LastPrice, error)
GetLastPrices mocks base method.
func (*MockApiClient) GetOrders ¶
func (m *MockApiClient) GetOrders(accountId string) ([]*domain.OrderState, error)
GetOrders mocks base method.
func (*MockApiClient) GetPortfolio ¶
func (m *MockApiClient) GetPortfolio(accountId string) ([]*domain.PortfolioPosition, error)
GetPortfolio mocks base method.
func (*MockApiClient) GetSandboxAccounts ¶
func (m *MockApiClient) GetSandboxAccounts() ([]*domain.Account, error)
GetSandboxAccounts mocks base method.
func (*MockApiClient) GetSandboxOrders ¶
func (m *MockApiClient) GetSandboxOrders(accountId string) ([]*domain.OrderState, error)
GetSandboxOrders mocks base method.
func (*MockApiClient) GetSandboxPortfolio ¶
func (m *MockApiClient) GetSandboxPortfolio(accountId string) ([]*domain.PortfolioPosition, error)
GetSandboxPortfolio mocks base method.
func (*MockApiClient) GetSandboxPositions ¶
func (m *MockApiClient) GetSandboxPositions(accountId string) (*domain.PositionsResponse, error)
GetSandboxPositions mocks base method.
func (*MockApiClient) GetShares ¶
func (m *MockApiClient) GetShares() ([]*domain.Share, error)
GetShares mocks base method.
func (*MockApiClient) OpenSandboxAccount ¶
func (m *MockApiClient) OpenSandboxAccount() (string, error)
OpenSandboxAccount mocks base method.
func (*MockApiClient) PostOrder ¶
func (m *MockApiClient) PostOrder(figi string, lots int64, price decimal.Decimal, direction domain.OrderDirection, accountId string, orderType domain.OrderType) (*domain.PostOrderResponse, error)
PostOrder mocks base method.
func (*MockApiClient) PostSandboxOrder ¶
func (m *MockApiClient) PostSandboxOrder(figi string, lots int64, price decimal.Decimal, direction domain.OrderDirection, accountId string, orderType domain.OrderType) (*domain.PostOrderResponse, error)
PostSandboxOrder mocks base method.
func (*MockApiClient) SandboxPayIn ¶
func (m *MockApiClient) SandboxPayIn(accountId string, amount *domain.MoneyValue) error
SandboxPayIn mocks base method.
type MockApiClientMockRecorder ¶
type MockApiClientMockRecorder struct {
// contains filtered or unexported fields
}
MockApiClientMockRecorder is the mock recorder for MockApiClient.
func (*MockApiClientMockRecorder) GetAccounts ¶
func (mr *MockApiClientMockRecorder) GetAccounts() *gomock.Call
GetAccounts indicates an expected call of GetAccounts.
func (*MockApiClientMockRecorder) GetCandles ¶
func (mr *MockApiClientMockRecorder) GetCandles(figi, from, to, interval interface{}) *gomock.Call
GetCandles indicates an expected call of GetCandles.
func (*MockApiClientMockRecorder) GetLastPrices ¶
func (mr *MockApiClientMockRecorder) GetLastPrices() *gomock.Call
GetLastPrices indicates an expected call of GetLastPrices.
func (*MockApiClientMockRecorder) GetOrders ¶
func (mr *MockApiClientMockRecorder) GetOrders(accountId interface{}) *gomock.Call
GetOrders indicates an expected call of GetOrders.
func (*MockApiClientMockRecorder) GetPortfolio ¶
func (mr *MockApiClientMockRecorder) GetPortfolio(accountId interface{}) *gomock.Call
GetPortfolio indicates an expected call of GetPortfolio.
func (*MockApiClientMockRecorder) GetSandboxAccounts ¶
func (mr *MockApiClientMockRecorder) GetSandboxAccounts() *gomock.Call
GetSandboxAccounts indicates an expected call of GetSandboxAccounts.
func (*MockApiClientMockRecorder) GetSandboxOrders ¶
func (mr *MockApiClientMockRecorder) GetSandboxOrders(accountId interface{}) *gomock.Call
GetSandboxOrders indicates an expected call of GetSandboxOrders.
func (*MockApiClientMockRecorder) GetSandboxPortfolio ¶
func (mr *MockApiClientMockRecorder) GetSandboxPortfolio(accountId interface{}) *gomock.Call
GetSandboxPortfolio indicates an expected call of GetSandboxPortfolio.
func (*MockApiClientMockRecorder) GetSandboxPositions ¶
func (mr *MockApiClientMockRecorder) GetSandboxPositions(accountId interface{}) *gomock.Call
GetSandboxPositions indicates an expected call of GetSandboxPositions.
func (*MockApiClientMockRecorder) GetShares ¶
func (mr *MockApiClientMockRecorder) GetShares() *gomock.Call
GetShares indicates an expected call of GetShares.
func (*MockApiClientMockRecorder) OpenSandboxAccount ¶
func (mr *MockApiClientMockRecorder) OpenSandboxAccount() *gomock.Call
OpenSandboxAccount indicates an expected call of OpenSandboxAccount.
func (*MockApiClientMockRecorder) PostOrder ¶
func (mr *MockApiClientMockRecorder) PostOrder(figi, lots, price, direction, accountId, orderType interface{}) *gomock.Call
PostOrder indicates an expected call of PostOrder.
func (*MockApiClientMockRecorder) PostSandboxOrder ¶
func (mr *MockApiClientMockRecorder) PostSandboxOrder(figi, lots, price, direction, accountId, orderType interface{}) *gomock.Call
PostSandboxOrder indicates an expected call of PostSandboxOrder.
func (*MockApiClientMockRecorder) SandboxPayIn ¶
func (mr *MockApiClientMockRecorder) SandboxPayIn(accountId, amount interface{}) *gomock.Call
SandboxPayIn indicates an expected call of SandboxPayIn.