Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalQuote ¶
type GlobalQuote struct { Symbol string `json:"01. symbol"` Open string `json:"02. open"` High string `json:"03. high"` Low string `json:"04. low"` Price string `json:"05. price"` Volume string `json:"06. volume"` PreviousClose string `json:"08. previous close"` Change string `json:"09. change"` ChangePercent string `json:"10. change percent"` }
func GetStockInfo ¶
func GetStockInfo(ticker string) (quote GlobalQuote, err error)
type GlobalQuoteResponse ¶
type GlobalQuoteResponse struct {
Quote GlobalQuote `json:"Global Quote"`
}
type StockInfo ¶
type StockInfo struct { // Ticker is the string of the ticker symbol Ticker string // Price is the current price of the stock Price float64 // contains filtered or unexported fields }
StockInfo represents the info about a stock ticker
type StockResponse ¶
type StockResponse struct { MetaData map[string]string `json:"MetaData"` TimeSeries map[string]TimeSeriesPoint `json:"Time Series (60min)"` }
Click to show internal directories.
Click to hide internal directories.