Documentation ¶
Index ¶
- type AdjustedQuote
- type AdjustedTimeSeries
- type AlphaVantageClient
- func (c *AlphaVantageClient) BaseUrl(baseUrl string) *AlphaVantageClient
- func (c *AlphaVantageClient) HttpClient(httpClient *http.Client) *AlphaVantageClient
- func (c *AlphaVantageClient) Key(key string) *AlphaVantageClient
- func (a *AlphaVantageClient) Quote(symbol string) (*RealTimeQuote, *ApiError)
- func (c *AlphaVantageClient) RetryAttempts(retryAttempts int) *AlphaVantageClient
- func (a *AlphaVantageClient) TimeSeriesDaily(symbol string, size Size) (TimeSeries, *ApiError)
- func (a *AlphaVantageClient) TimeSeriesDailyAdjusted(symbol string, size Size) (AdjustedTimeSeries, *ApiError)
- func (a *AlphaVantageClient) TimeSeriesIntraday(symbol string, interval Interval, size Size) (TimeSeries, *ApiError)
- func (a *AlphaVantageClient) TimeSeriesMonthly(symbol string) (TimeSeries, *ApiError)
- func (a *AlphaVantageClient) TimeSeriesMonthlyAdjusted(symbol string) (AdjustedTimeSeries, *ApiError)
- func (a *AlphaVantageClient) TimeSeriesWeekly(symbol string) (TimeSeries, *ApiError)
- func (a *AlphaVantageClient) TimeSeriesWeeklyAdjusted(symbol string) (AdjustedTimeSeries, *ApiError)
- type ApiError
- type ErrorType
- type Interval
- type Quote
- type RealTimeQuote
- type Size
- type TimeSeries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjustedQuote ¶
type AdjustedTimeSeries ¶
type AdjustedTimeSeries map[time.Time]AdjustedQuote
func (AdjustedTimeSeries) Sorted ¶
func (ts AdjustedTimeSeries) Sorted() []AdjustedQuote
func (*AdjustedTimeSeries) SortedTimes ¶
func (ts *AdjustedTimeSeries) SortedTimes() []time.Time
type AlphaVantageClient ¶
type AlphaVantageClient struct {
// contains filtered or unexported fields
}
func Client ¶
func Client() *AlphaVantageClient
func (*AlphaVantageClient) BaseUrl ¶
func (c *AlphaVantageClient) BaseUrl(baseUrl string) *AlphaVantageClient
func (*AlphaVantageClient) HttpClient ¶
func (c *AlphaVantageClient) HttpClient(httpClient *http.Client) *AlphaVantageClient
func (*AlphaVantageClient) Key ¶
func (c *AlphaVantageClient) Key(key string) *AlphaVantageClient
func (*AlphaVantageClient) Quote ¶
func (a *AlphaVantageClient) Quote(symbol string) (*RealTimeQuote, *ApiError)
func (*AlphaVantageClient) RetryAttempts ¶
func (c *AlphaVantageClient) RetryAttempts(retryAttempts int) *AlphaVantageClient
func (*AlphaVantageClient) TimeSeriesDaily ¶
func (a *AlphaVantageClient) TimeSeriesDaily(symbol string, size Size) (TimeSeries, *ApiError)
func (*AlphaVantageClient) TimeSeriesDailyAdjusted ¶
func (a *AlphaVantageClient) TimeSeriesDailyAdjusted(symbol string, size Size) (AdjustedTimeSeries, *ApiError)
func (*AlphaVantageClient) TimeSeriesIntraday ¶
func (a *AlphaVantageClient) TimeSeriesIntraday(symbol string, interval Interval, size Size) (TimeSeries, *ApiError)
func (*AlphaVantageClient) TimeSeriesMonthly ¶
func (a *AlphaVantageClient) TimeSeriesMonthly(symbol string) (TimeSeries, *ApiError)
func (*AlphaVantageClient) TimeSeriesMonthlyAdjusted ¶
func (a *AlphaVantageClient) TimeSeriesMonthlyAdjusted(symbol string) (AdjustedTimeSeries, *ApiError)
func (*AlphaVantageClient) TimeSeriesWeekly ¶
func (a *AlphaVantageClient) TimeSeriesWeekly(symbol string) (TimeSeries, *ApiError)
func (*AlphaVantageClient) TimeSeriesWeeklyAdjusted ¶
func (a *AlphaVantageClient) TimeSeriesWeeklyAdjusted(symbol string) (AdjustedTimeSeries, *ApiError)
type ApiError ¶
func ToApiError ¶
type RealTimeQuote ¶
type TimeSeries ¶
func (TimeSeries) Sorted ¶
func (ts TimeSeries) Sorted() []Quote
func (*TimeSeries) SortedTimes ¶
func (ts *TimeSeries) SortedTimes() []time.Time
Source Files ¶
- client.go
- errors.go
- interval.go
- quotes.go
- quotes_adjusted.go
- size.go
- stocks_quote.go
- stocks_time_series_daily.go
- stocks_time_series_daily_adjusted.go
- stocks_time_series_intraday.go
- stocks_time_series_monthly.go
- stocks_time_series_monthly_adjusted.go
- stocks_time_series_weekly.go
- stocks_time_series_weekly_adjusted.go
- testing.go
Click to show internal directories.
Click to hide internal directories.