Versions in this module Expand all Collapse all v0 v0.1.0 Jan 29, 2014 Changes in this version + const ErrTplNotSupported + func QuotesToMap(quotes []Quote) map[string]*Quote + type Cache interface + HasHist func(symbol string, start *time.Time, end *time.Time) bool + HasQuote func(symbol string) bool + SetQuoteExpiry func(dur time.Duration) + type DividendEntry struct + Date util.YearMonthDay + Dividends float64 + type DividendHist struct + Dividends []DividendEntry + Symbol string + type Hist struct + Entries []HistEntry + From time.Time + Symbol string + To time.Time + type HistEntry struct + AdjClose float64 + Close float64 + Date util.YearMonthDay + High float64 + Low float64 + Open float64 + Volume int64 + type Quote struct + Ask float64 + AvgDailyVolume int64 + Bid float64 + Change float64 + ChangePercent float64 + DayHigh float64 + DayLow float64 + DividendExDate time.Time + DividendPerShare float64 + DividendYield float64 + EarningsPerShare float64 + Exchange string + LastTradePrice float64 + Ma200 float64 + Ma50 float64 + Name string + Open float64 + PeRatio float64 + PreviousClose float64 + Symbol string + Updated time.Time + Volume int64 + YearHigh float64 + YearLow float64 + func (q *Quote) DivPayoutRatio() float64 + type Source interface + DividendHist func(symbols []string) (map[string]DividendHist, error) + DividendHistLimit func(symbols []string, start time.Time, end time.Time) (map[string]DividendHist, error) + Hist func(symbols []string) (map[string]Hist, error) + HistLimit func(symbols []string, start time.Time, end time.Time) (map[string]Hist, error) + Quote func(symbols []string) ([]Quote, error)