options

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: 6 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	B finance.Backend
}

Client is used to invoke options APIs.

func (Client) GetStraddleP

func (c Client) GetStraddleP(params *Params) *StraddleIter

GetStraddleP returns options straddles. and requires a params struct as an argument.

type Params

type Params struct {
	// Context access.
	finance.Params `form:"-"`

	// Accessible fields.
	UnderlyingSymbol string             `form:"-"`
	Expiration       *datetime.Datetime `form:"-"`
	// contains filtered or unexported fields
}

Params carries a context and chart information.

type StraddleIter

type StraddleIter struct {
	*iter.Iter
}

StraddleIter is a structure containing results and related metadata for a yfin option straddles request.

func GetStraddle

func GetStraddle(underlier string) *StraddleIter

GetStraddle returns options straddles. and requires a underlier symbol as an argument.

func GetStraddleP

func GetStraddleP(params *Params) *StraddleIter

GetStraddleP returns options straddles. and requires a params struct as an argument.

func (*StraddleIter) Meta

func (si *StraddleIter) Meta() *finance.OptionsMeta

Meta returns the metadata associated with the options response.

func (*StraddleIter) Straddle

func (si *StraddleIter) Straddle() *finance.Straddle

Straddle returns the current straddle in the iter.

Jump to

Keyboard shortcuts

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