yahoohistorical

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HistoricalDataColumns = "Date,Open,High,Low,Close,Adj Close,Volume"
	ColumnDate            = "Date"
	ColumnOpen            = "Open"
	ColumnHigh            = "High"
	ColumnClose           = "Close"
	ColumnAdjClose        = "Adj Close"
	ColumnVolume          = "Volume"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HistoricalData

type HistoricalData struct {
	Table table.Table
}

func ReadFileHistoricalData

func ReadFileHistoricalData(filename string) (*HistoricalData, error)

ReadFileHistoricalData reads a Yahoo! Finance Historical Data CSV file.

func (*HistoricalData) AdjCloseTimeSeries

func (hd *HistoricalData) AdjCloseTimeSeries(interval timeutil.Interval) (timeseries.TimeSeries, error)

func (*HistoricalData) CloseTimeSeries

func (hd *HistoricalData) CloseTimeSeries(interval timeutil.Interval) (timeseries.TimeSeries, error)

func (*HistoricalData) HighTimeSeries

func (hd *HistoricalData) HighTimeSeries(interval timeutil.Interval) (timeseries.TimeSeries, error)

func (*HistoricalData) OpenTimeSeries

func (hd *HistoricalData) OpenTimeSeries(interval timeutil.Interval) (timeseries.TimeSeries, error)

func (*HistoricalData) TimeSeriesSet

func (hd *HistoricalData) TimeSeriesSet(interval timeutil.Interval) (timeseries.TimeSeriesSet, error)

func (*HistoricalData) VolumeTimeSeries

func (hd *HistoricalData) VolumeTimeSeries(interval timeutil.Interval) (timeseries.TimeSeries, error)

Jump to

Keyboard shortcuts

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