Documentation ¶
Index ¶
- Constants
- Variables
- func FieldIndex() (fields []string)
- func FieldsCrypto() (fields []string)
- func FieldsETF() (fields []string)
- func FieldsEquity() (fields []string)
- func FieldsForex() (fields []string)
- func FieldsFuture() (fields []string)
- func FieldsInfoQuote() (fields []string)
- func FieldsMutualFund() (fields []string)
- func FieldsOption() (fields []string)
- func FieldsQuote() (fields []string)
- func MapCrypto(field string, q *finance.CryptoPair) string
- func MapETF(field string, q *finance.ETF) string
- func MapEquity(field string, q *finance.Equity) string
- func MapForex(field string, q *finance.ForexPair) string
- func MapFuture(field string, q *finance.Future) string
- func MapIndex(field string, q *finance.Index) string
- func MapMutualFund(field string, q *finance.MutualFund) string
- func MapOption(field string, q *finance.Option) string
- func MapQuote(field string, q *finance.Quote) string
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" // 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 MapMutualFund ¶ added in v0.0.4
func MapMutualFund(field string, q *finance.MutualFund) string
MapMutualFund maps mutual fund fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.