yahoo

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a client for Yahoo! quotes.

func New

func New() Client

New creates a new client with the default URL.

func (*Client) Fetch

func (c *Client) Fetch(sym string, t0, t1 time.Time) ([]Quote, error)

Fetch fetches a set of quotes

type Quote

type Quote struct {
	Date     time.Time
	Open     float64
	High     float64
	Low      float64
	Close    float64
	AdjClose float64
	Volume   int
}

Quote represents a quote on a given day.

Jump to

Keyboard shortcuts

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