Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct{}
API is the interface for the google finance resource
func (API) GetStocker ¶
GetStocker wraps the Stock into fugo Stocker interface
func (API) GetStockers ¶
GetStockers wraps the Stocks into fugo Stockers interface
type Stock ¶
type Stock struct { Code string `json:"t"` // Depending on the market (f.g. integer code for TYO, ticker for NASDAQ...etc) Name string `json:"name"` Price float64 `json:"l_fix,string"` Change float64 `json:"c_fix,string"` ChangePercent float64 `json:"cp_fix,string"` UpdatedAt time.Time `json:"lt_dts,string"` }
Stock stores stock data from Google Finance API.
Click to show internal directories.
Click to hide internal directories.