yahoo

package
v0.0.104 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is used for accessing the Yahoo Finance API

func New

func New(log *zap.Logger) (*API, error)

New ...

func (*API) CacheClear

func (a *API) CacheClear()

CacheClear clears the cache

func (*API) Get

func (a *API) Get(ctx context.Context, symbols []string, interval time.Duration) ([]*stockboard.Stock, error)

Get fetch data about a list of given stock symbols

func (*API) TradingClose

func (a *API) TradingClose() (time.Time, error)

TradingClose ...

func (*API) TradingOpen

func (a *API) TradingOpen() (time.Time, error)

TradingOpen ...

Jump to

Keyboard shortcuts

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