option

package
Version: 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.Option, error)

Get returns an option 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) Option

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

Option returns the most recent option 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL