etf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(symbol string) (*finance.ETF, error)

Get returns an ETF quote that matches the parameters specified.

Types

type Client

type Client struct {
	B finance.Backend
}

Client is used to invoke quote APIs.

func (Client) ListP

func (c Client) ListP(params *Params) *Iter

ListP returns a quote iterator.

type Iter

type Iter struct {
	*iter.Iter
}

Iter is an iterator for a list of quotes. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(symbols []string) *Iter

List returns several quotes.

func ListP

func ListP(params *Params) *Iter

ListP returns a quote iterator and requires a params struct as an argument.

func (*Iter) ETF

func (i *Iter) ETF() *finance.ETF

ETF returns the most recent ETF visited by a call to Next.

type Params

type Params struct {
	finance.Params `form:"-"`
	// Symbols are the symbols for which a
	// quote is requested.
	Symbols []string `form:"-"`
	// contains filtered or unexported fields
}

Params carries a context and symbols information.

Jump to

Keyboard shortcuts

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