Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StockQuote ¶
type StockQuote struct { Symbol string Date string Open float64 High float64 Low float64 Close float64 AdjClose float64 Volume float64 }
StockQuote data type
func Fetch ¶
func Fetch(symbol string, startDate int64, endDate int64, interval interval.Interval) ([]StockQuote, error)
Fetch fetches stock quotes for a given symbol, in a given timespan (startDate and endDate), separated by interval.
func FetchDailyQuoteHistory ¶
func FetchDailyQuoteHistory(symbol string) ([]StockQuote, error)
FetchDailyQuoteHistory fetches daily stock quote values from 1970-01-01 until today for a given symbol.
func FetchUntilNow ¶
func FetchUntilNow(symbol string, startDate int64, interval interval.Interval) ([]StockQuote, error)
FetchUntilNow fetches stock quote values for a given symbol from a startDate until now, separated by interval.
func (*StockQuote) String ¶
func (data *StockQuote) String() string
String generates a debuggable and easy to read string from the model
func (*StockQuote) ToJSON ¶
func (data *StockQuote) ToJSON() string
ToJSON generates the JSON serialization for the model
Click to show internal directories.
Click to hide internal directories.