quote

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Quote fields.
	Symbol      = "Symbol"
	Market      = "Market"
	Time        = "Time"
	Last        = "Last"
	Change      = "Change"
	Vol         = "Volume"
	Bid         = "Bid"
	BidSize     = "Bid Size"
	Ask         = "Ask"
	AskSize     = "Ask Size"
	Open        = "Open"
	PrevClose   = "Prev Close"
	Exchange    = "Exchange"
	DayHigh     = "Day High"
	DayLow      = "Day Low"
	YearHigh    = "52wk High"
	YearLow     = "52wk Low"
	FiftyMA     = "50D MA"
	THundMA     = "200D MA"
	AvgDailyVol = "Avg. Vol"
	Security    = "Security"
	Name        = "Name"
	// Equity fields.
	EpsTrailing = "EPS Trailing"
	EpsForward  = "EPS Forward"
	EpsDate     = "Earnings Date"
	DivTrailing = "Div. Trailing"
	DivYield    = "Div. Yield"
	DivDate     = "Ex. Div. Date"
	PETrailing  = "P/E Trailing"
	PEForward   = "P/E Forward"
	BookValue   = "Book Value"
	PB          = "P/B"
	MarketCap   = "Market Cap"
	// ETF/MutualFund fields.
	YTDReturn    = "YTD Return"
	QtrReturn    = "Qtr Return"
	QtrNavReturn = "Qtr NAV Return"
	// Option/Future fields.
	Underlier    = "Underlying Symbol"
	OpenInterest = "Open Interest"
	ExpireDate   = "Expiration"
	Strike       = "Strike"
	// Crypto fields.
	Algorithm   = "Algorithm"
	StartDate   = "Start"
	MaxSupply   = "Max Supply"
	Circulating = "Circulation"
)

Variables

View Source
var (
	// Cmd is the quote command.
	Cmd = &cobra.Command{
		Use:     usage,
		Short:   short,
		Long:    long,
		Aliases: []string{"q"},
		Example: "qtrn quote AAPL GOOG FB",
		RunE:    execute,
	}
)

Functions

func FieldIndex added in v0.0.4

func FieldIndex() (fields []string)

FieldIndex returns the fields for an informative quote.

func FieldsCrypto added in v0.0.4

func FieldsCrypto() (fields []string)

FieldsCrypto returns the fields for an informative quote.

func FieldsETF added in v0.0.4

func FieldsETF() (fields []string)

FieldsETF returns the fields for an etf.

func FieldsEquity added in v0.0.4

func FieldsEquity() (fields []string)

FieldsEquity returns the fields for an informative quote.

func FieldsForex added in v0.0.4

func FieldsForex() (fields []string)

FieldsForex returns the fields for an informative quote.

func FieldsFuture added in v0.0.4

func FieldsFuture() (fields []string)

FieldsFuture returns the fields for a future.

func FieldsInfoQuote added in v0.0.4

func FieldsInfoQuote() (fields []string)

FieldsInfoQuote returns the fields for an informative quote.

func FieldsMutualFund added in v0.0.4

func FieldsMutualFund() (fields []string)

FieldsMutualFund returns the fields for an informative quote.

func FieldsOption added in v0.0.4

func FieldsOption() (fields []string)

FieldsOption returns the fields for an informative quote.

func FieldsQuote added in v0.0.4

func FieldsQuote() (fields []string)

FieldsQuote returns the fields for a plain quote.

func MapCrypto added in v0.0.4

func MapCrypto(field string, q *finance.CryptoPair) string

MapCrypto maps crypto pair fields.

func MapETF added in v0.0.4

func MapETF(field string, q *finance.ETF) string

MapETF maps ETF fields.

func MapEquity added in v0.0.4

func MapEquity(field string, q *finance.Equity) string

MapEquity maps equity fields.

func MapForex added in v0.0.4

func MapForex(field string, q *finance.ForexPair) string

MapForex maps forex pair fields.

func MapFuture added in v0.0.4

func MapFuture(field string, q *finance.Future) string

MapFuture maps future fields.

func MapIndex added in v0.0.4

func MapIndex(field string, q *finance.Index) string

MapIndex maps index fields.

func MapMutualFund added in v0.0.4

func MapMutualFund(field string, q *finance.MutualFund) string

MapMutualFund maps mutual fund fields.

func MapOption added in v0.0.4

func MapOption(field string, q *finance.Option) string

MapOption maps option fields.

func MapQuote added in v0.0.4

func MapQuote(field string, q *finance.Quote) string

MapQuote maps quote fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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