internal

package
v4.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIClient

type MockAPIClient struct{}

MockAPIClient is a no-op API client.

func (*MockAPIClient) GetMultiBars added in v4.1.16

func (mac *MockAPIClient) GetMultiBars(symbols []string, opts api.GetBarsParams) (map[string][]api.Bar, error)

GetMultiBars returns an empty api response.

func (*MockAPIClient) GetSnapshots

func (mac *MockAPIClient) GetSnapshots(symbols []string) (map[string]*api.Snapshot, error)

GetSnapshots returns an empty response.

func (*MockAPIClient) ListAssets

func (mac *MockAPIClient) ListAssets(status *string) ([]v1.Asset, error)

ListAssets returns an empty api response.

type MockMarketStoreWriter

type MockMarketStoreWriter struct {
	WrittenCSM io.ColumnSeriesMap
	Err        error
}

MockMarketStoreWriter is a no-op MarketStoreWriter.

func (*MockMarketStoreWriter) Write

Write stores the argument to the struct and does nothing else.

type MockSymbolsManager

type MockSymbolsManager struct {
	Symbols []string
}

MockSymbolsManager is a no-op SymbolsManager.

func (MockSymbolsManager) GetAllSymbols

func (msm MockSymbolsManager) GetAllSymbols() []string

GetAllSymbols returns the static symbols.

func (MockSymbolsManager) UpdateSymbols added in v4.1.16

func (msm MockSymbolsManager) UpdateSymbols()

UpdateSymbols does nothing.

type MockTimeChecker

type MockTimeChecker struct{}

MockTimeChecker always returns Open.

func (*MockTimeChecker) IsOpen

func (m *MockTimeChecker) IsOpen(t time.Time) bool

IsOpen always returns Open.

func (*MockTimeChecker) Sub

func (m *MockTimeChecker) Sub(dateInJST time.Time, businessDay int) (time.Time, error)

Sub always returns a date provided at the first argument.

Jump to

Keyboard shortcuts

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