Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Stocks []string `json:"stocks"`
}
Config ..
func NewSettingFromConfig ¶
func NewSettingFromConfig() *Config
NewSettingFromConfig - get the widgets setting from config.json
type StockPrice ¶
type StockPrice struct {
// contains filtered or unexported fields
}
StockPrice ..
type YahooResp ¶
type YahooResp struct { Chart struct { Result []struct { Meta struct { Currency string `json:"currency"` Symbol string `json:"symbol"` ExchangeName string `json:"exchangeName"` InstrumentType string `json:"instrumentType"` FirstTradeDate int `json:"firstTradeDate"` RegularMarketTime int64 `json:"regularMarketTime"` Gmtoffset int `json:"gmtoffset"` Timezone string `json:"timezone"` ExchangeTimezoneName string `json:"exchangeTimezoneName"` RegularMarketPrice float64 `json:"regularMarketPrice"` ChartPreviousClose float64 `json:"chartPreviousClose"` PriceHint int `json:"priceHint"` CurrentTradingPeriod struct { Pre struct { Timezone string `json:"timezone"` End int `json:"end"` Start int `json:"start"` Gmtoffset int `json:"gmtoffset"` } `json:"pre"` Regular struct { Timezone string `json:"timezone"` End int `json:"end"` Start int `json:"start"` Gmtoffset int `json:"gmtoffset"` } `json:"regular"` Post struct { Timezone string `json:"timezone"` End int `json:"end"` Start int `json:"start"` Gmtoffset int `json:"gmtoffset"` } `json:"post"` } `json:"currentTradingPeriod"` DataGranularity string `json:"dataGranularity"` Range string `json:"range"` ValidRanges []string `json:"validRanges"` } `json:"meta"` Timestamp []int `json:"timestamp"` Indicators struct { Quote []struct { High []float64 `json:"high"` Volume []int `json:"volume"` Low []float64 `json:"low"` Open []float64 `json:"open"` Close []float64 `json:"close"` } `json:"quote"` Adjclose []struct { Adjclose []float64 `json:"adjclose"` } `json:"adjclose"` } `json:"indicators"` } `json:"result"` Error interface{} `json:"error"` } `json:"chart"` }
YahooResp ..
Click to show internal directories.
Click to hide internal directories.