Documentation ¶
Index ¶
- Constants
- type APIClient
- type Config
- type Exchange
- func (e *Exchange) ExchangeDetail(exchange string) (ex *objects.ExchangeDetail, err error)
- func (e *Exchange) ExchangeList() (eList []objects.Exchange, err error)
- func (e *Exchange) ExchangeSymbolList(exchange string) (sList []objects.Symbol, err error)
- func (e *Exchange) News(from, to *time.Time, s, t *string, limit, offset int) (nList []objects.News, err error)
- type Fundamental
- func (e *Fundamental) EconomicCalendar(from, to *time.Time, country, comparison *string, offset, limit int) (eList []objects.EconomicEvent, err error)
- func (e *Fundamental) InsiderTransactionList(from, to *time.Time, code *string, limit int) (iList []objects.InsiderTransaction, err error)
- func (e *Fundamental) Profile(symbol string) (p *objects.Profile, err error)
- type HTTPClient
- type Stock
Constants ¶
View Source
const (
APIURL = "https://eodhistoricaldata.com/api"
)
Core params
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { Stock *Stock Exchange *Exchange Fundamental *Fundamental Logger *zap.Logger Debug bool }
APIClient ...
func NewAPIClient ¶
NewAPIClient creates a new API client
type Config ¶
type Config struct { HTTPClient *resty.Client Logger *zap.Logger APIToken string FMTFromat string Debug bool RetryCount *int RetryWaitTime *time.Duration Timeout int }
Config for create new API client
type Exchange ¶
type Exchange struct {
Client *HTTPClient
}
Exchange client
func (*Exchange) ExchangeDetail ¶
func (e *Exchange) ExchangeDetail(exchange string) (ex *objects.ExchangeDetail, err error)
ExchangeDetail - Get Exchange Details and Trading Hours
func (*Exchange) ExchangeList ¶
ExchangeList - Get List of Exchanges
func (*Exchange) ExchangeSymbolList ¶
ExchangeSymbolList - Get List of Tickers (Exchange Symbols)
type Fundamental ¶
type Fundamental struct {
Client *HTTPClient
}
Fundamental client
func (*Fundamental) EconomicCalendar ¶
func (e *Fundamental) EconomicCalendar(from, to *time.Time, country, comparison *string, offset, limit int) (eList []objects.EconomicEvent, err error)
EconomicCalendar - output for Economic Events Calendar
func (*Fundamental) InsiderTransactionList ¶
func (e *Fundamental) InsiderTransactionList(from, to *time.Time, code *string, limit int) (iList []objects.InsiderTransaction, err error)
InsiderTransactionList - output for Insider Transaction list
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient ...
type Stock ¶
type Stock struct {
Client *HTTPClient
}
Stock client
func (*Stock) BatchQuote ¶
BatchQuote - Live (Delayed) Stock Prices API (Batch)
Click to show internal directories.
Click to hide internal directories.