instruments

package
v0.1.0-1631153474257730 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Current

type Current interface {
	Last() float64
	Bid() float64
	Ask() float64
	Spread() float64
	OpenInterest() float64
}

Current represents instantaneous information

type Data

type Data interface {
	Current
	Session
	Historical
}

type DataSet

type DataSet interface{}

type Historical

type Historical interface {
	Hi52() float64
	Low52() float64
}

Historical represents historical information

type Instrument

type Instrument interface {
	Data() DataSet
	String() string
}

Instrument creates acces to the underlying instrument

type Session

type Session interface {
	Volume() float64
	Hi() float64
	Low() float64
}

Session represents session information

type UnTradeable

type UnTradeable interface {
	Instrument
}

UnTradeable implements an Instrument interface for an untradeable underlying that is used for reference or modeling

type Underlying

type Underlying struct{}

func (*Underlying) Data

func (u *Underlying) Data() DataSet

Jump to

Keyboard shortcuts

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