Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlphaFetcher ¶
type AlphaFetcher struct {
// contains filtered or unexported fields
}
func NewAlphaFetcher ¶
func NewAlphaFetcher(r rpc.Client, k string) *AlphaFetcher
func (*AlphaFetcher) GetData ¶
func (p *AlphaFetcher) GetData(request string) (interface{}, error)
func (*AlphaFetcher) MakeRequest ¶
func (p *AlphaFetcher) MakeRequest(requestParams map[string]string) string
type Fetcher ¶
type Fetcher interface {
GetData(request string) (interface{}, error)
MakeRequest(requestParams map[string]string) string
// contains filtered or unexported methods
}
Fetcher is the interface for obtaining market data via external API call
type StockDataAlpha ¶
type StockDataAlpha struct {
MetaData struct {
Information string `json:"1. Information"`
Symbol string `json:"2. Symbol"`
LastRefresh string `json:"3. Last Refreshed"`
OutputSize string `json:"4. Output Size"`
TimeZone string `json:"5. Time Zone"`
} `json:"Meta Data"`
TimeSeriesDaily map[string]struct {
Open string `json:"1. open"`
High string `json:"2. high"`
Low string `json:"3. low"`
Close string `json:"4. close"`
Volume string `json:"5. volume"`
} `json:"Time Series (Daily)"`
}
Click to show internal directories.
Click to hide internal directories.