Documentation
¶
Index ¶
- func GetHistory(ticker string, commodityName string) ([]*price.Price, error)
- type AlphaVantageExchangePrice
- type AlphaVantagePriceProvider
- func (p *AlphaVantagePriceProvider) AutoComplete(db *gorm.DB, field string, filter map[string]string) []price.AutoCompleteItem
- func (p *AlphaVantagePriceProvider) AutoCompleteFields() []price.AutoCompleteField
- func (p *AlphaVantagePriceProvider) ClearCache(db *gorm.DB)
- func (p *AlphaVantagePriceProvider) Code() string
- func (p *AlphaVantagePriceProvider) Description() string
- func (p *AlphaVantagePriceProvider) GetPrices(code string, commodityName string) ([]*price.Price, error)
- func (p *AlphaVantagePriceProvider) Label() string
- type Chart
- type DailyPrice
- type ErrorResponse
- type ExchangePrice
- type FXSeriesDailyReponse
- type Indicators
- type Match
- type Meta
- type Quote
- type Response
- type Result
- type SearchResponse
- type TimeSeriesDailyReponse
- type YahooPriceProvider
- func (p *YahooPriceProvider) AutoComplete(db *gorm.DB, field string, filter map[string]string) []price.AutoCompleteItem
- func (p *YahooPriceProvider) AutoCompleteFields() []price.AutoCompleteField
- func (p *YahooPriceProvider) ClearCache(db *gorm.DB)
- func (p *YahooPriceProvider) Code() string
- func (p *YahooPriceProvider) Description() string
- func (p *YahooPriceProvider) GetPrices(code string, commodityName string) ([]*price.Price, error)
- func (p *YahooPriceProvider) Label() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlphaVantageExchangePrice ¶ added in v0.6.1
type AlphaVantagePriceProvider ¶ added in v0.6.1
type AlphaVantagePriceProvider struct { }
func (*AlphaVantagePriceProvider) AutoComplete ¶ added in v0.6.1
func (p *AlphaVantagePriceProvider) AutoComplete(db *gorm.DB, field string, filter map[string]string) []price.AutoCompleteItem
func (*AlphaVantagePriceProvider) AutoCompleteFields ¶ added in v0.6.1
func (p *AlphaVantagePriceProvider) AutoCompleteFields() []price.AutoCompleteField
func (*AlphaVantagePriceProvider) ClearCache ¶ added in v0.6.1
func (p *AlphaVantagePriceProvider) ClearCache(db *gorm.DB)
func (*AlphaVantagePriceProvider) Code ¶ added in v0.6.1
func (p *AlphaVantagePriceProvider) Code() string
func (*AlphaVantagePriceProvider) Description ¶ added in v0.6.1
func (p *AlphaVantagePriceProvider) Description() string
func (*AlphaVantagePriceProvider) Label ¶ added in v0.6.1
func (p *AlphaVantagePriceProvider) Label() string
type DailyPrice ¶ added in v0.6.1
type DailyPrice struct {
Close string `json:"4. close"`
}
type ErrorResponse ¶ added in v0.6.1
type ErrorResponse struct {
Information string `json:"Information"`
}
type ExchangePrice ¶
type FXSeriesDailyReponse ¶ added in v0.6.1
type FXSeriesDailyReponse struct {
TimeSeriesFX map[string]DailyPrice `json:"Time Series FX (Daily)"`
}
type Indicators ¶
type Indicators struct {
Quote []Quote
}
type Result ¶
type Result struct { Timestamp []int64 Indicators Indicators Meta Meta }
type SearchResponse ¶ added in v0.6.1
type SearchResponse struct {
BestMatches []Match `json:"bestMatches"`
}
type TimeSeriesDailyReponse ¶ added in v0.6.1
type TimeSeriesDailyReponse struct {
TimeSeriesDaily map[string]DailyPrice `json:"Time Series (Daily)"`
}
type YahooPriceProvider ¶ added in v0.6.1
type YahooPriceProvider struct { }
func (*YahooPriceProvider) AutoComplete ¶ added in v0.6.1
func (p *YahooPriceProvider) AutoComplete(db *gorm.DB, field string, filter map[string]string) []price.AutoCompleteItem
func (*YahooPriceProvider) AutoCompleteFields ¶ added in v0.6.1
func (p *YahooPriceProvider) AutoCompleteFields() []price.AutoCompleteField
func (*YahooPriceProvider) ClearCache ¶ added in v0.6.1
func (p *YahooPriceProvider) ClearCache(db *gorm.DB)
func (*YahooPriceProvider) Code ¶ added in v0.6.1
func (p *YahooPriceProvider) Code() string
func (*YahooPriceProvider) Description ¶ added in v0.6.1
func (p *YahooPriceProvider) Description() string
func (*YahooPriceProvider) Label ¶ added in v0.6.1
func (p *YahooPriceProvider) Label() string
Click to show internal directories.
Click to hide internal directories.