yfinance

package module
v0.0.0-...-a53dc04 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2013 License: GPL-3.0 Imports: 6 Imported by: 0

README

yfinance

go (golang) wrapper for Yahoo Finance

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(year int, month time.Month, day int) time.Time

Types

type Error

type Error struct {
	Msg string
}

func (Error) Error

func (e Error) Error() string

type Interface

type Interface struct {
}

func (Interface) GetPrices

func (this Interface) GetPrices(symbols []string, from time.Time, to time.Time) (*PriceList, error)

type Price

type Price struct {
	Date          time.Time
	AdjustedClose int
}

type PriceList

type PriceList struct {
	Symbols []string
	From    time.Time
	To      time.Time
	// contains filtered or unexported fields
}

func (*PriceList) PriceAt

func (p *PriceList) PriceAt(symbol string, at time.Time) (Price, error)

func (*PriceList) Prices

func (p *PriceList) Prices(symbol string) ([]Price, bool)

Jump to

Keyboard shortcuts

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