mocks

package
v0.0.0-...-9024510 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marketdata

type Marketdata struct {
	mock.Mock
}

Marketdata is an autogenerated mock type for the Marketdata type

func NewMarketdata

func NewMarketdata(t mockConstructorTestingTNewMarketdata) *Marketdata

NewMarketdata creates a new instance of Marketdata. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Marketdata) GetAsset

func (_m *Marketdata) GetAsset(symbol string) (*entity.Asset, error)

GetAsset provides a mock function with given fields: symbol

func (*Marketdata) GetOHLC

func (_m *Marketdata) GetOHLC(symbol string, start time.Time, end time.Time) (*[]entity.OHLC, error)

GetOHLC provides a mock function with given fields: symbol, start, end

type Trading

type Trading struct {
	mock.Mock
}

Trading is an autogenerated mock type for the Trading type

func NewTrading

func NewTrading(t mockConstructorTestingTNewTrading) *Trading

NewTrading creates a new instance of Trading. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Trading) GetOrders

func (_m *Trading) GetOrders() ([]*entity.Order, error)

GetOrders provides a mock function with given fields:

func (*Trading) GetPortfolio

func (_m *Trading) GetPortfolio() (*entity.Portfolio, error)

GetPortfolio provides a mock function with given fields:

Jump to

Keyboard shortcuts

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