Documentation ¶
Index ¶
- type Advanced
- type Cli
- func (c *Cli) CheckErrorInResponse(resp *fasthttp.Response) (*response.Error, error)
- func (c *Cli) GetBalanceSheet(symbol, exchange, micCode, country, period, startDate, endDate string) (balanceSheetResp *response.BalanceSheets, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetCashFlow(symbol, exchange, micCode, country, startDate, endDate, period string) (cashFlowResp *response.CashFlows, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetDividends(symbol, exchange, micCode, country, r, startDate, endDate string) (dividendsResp *response.Dividends, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetEarningsCalendar(exchange, micCode, country string, decimalPlaces int, ...) (earningsResp *response.Earnings, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetEtfs(symbol, exchange, micCode, country string, showPlan, includeDelisted bool) (etfsResp *response.Etfs, creditsLeft, creditsUsed int64, err error)
- func (c *Cli) GetExchangeRate(symbol, date, timeZone string, decimalPlaces int) (exchangeRate *response.ExchangeRate, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetExchanges(instrumentType, name, code, country string, showPlan bool) (exchangesResp *response.Exchanges, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetIncomeStatement(symbol, exchange, micCode, country, period, startDate, endDate string) (incomeStatementResp *response.IncomeStatements, creditsLeft int64, ...)
- func (c *Cli) GetIndices(symbol, country string, showPlan, includeDelisted bool) (indicesResp *response.Indices, creditsLeft int64, creditsUsed int64, err error)
- func (c *Cli) GetInsiderTransactions(symbol, exchange, micCode, country string) (insiderTransactionsResp *response.InsiderTransactions, creditsLeft int64, ...)
- func (c *Cli) GetMarketMovers(instrument, direction string, outputSize int, country string, ...) (marketMoversResp *response.MarketMovers, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetMarketState(exchange, code, country string) (marketStateResp []response.MarketState, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetProfile(symbol, exchange, micCode, country string) (profileResp *response.Profile, creditsLeft int64, creditsUsed int64, err error)
- func (c *Cli) GetQuote(...) (quotes *response.Quotes, creditsLeft, creditsUsed int64, err error)
- func (c *Cli) GetStatistics(symbol, exchange, micCode, country string) (statisticsResp *response.Statistics, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetStocks(symbol, exchange, micCode, country, instrumentType string, ...) (stocksResp *response.Stocks, creditsLeft int64, creditsUsed int64, err error)
- func (c *Cli) GetTimeSeries(symbol, interval, exchange, micCode, country, instrumentType string, ...) (seriesResp *response.TimeSeries, creditsLeft int64, creditsUsed int64, ...)
- func (c *Cli) GetUsage() (usageResp *response.Usage, creditsLeft int64, creditsUsed int64, err error)
- type Conf
- type CoreData
- type Fundamentals
- type HTTPCli
- type ReferenceData
- type WS
- type WebSocket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced struct {
UsageURL string `default:"/api_usage?apikey={apikey}" json:"usage_url"`
}
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func (*Cli) CheckErrorInResponse ¶
func (*Cli) GetBalanceSheet ¶
func (*Cli) GetCashFlow ¶
func (*Cli) GetDividends ¶
func (c *Cli) GetDividends(symbol, exchange, micCode, country, r, startDate, endDate string) ( dividendsResp *response.Dividends, creditsLeft int64, creditsUsed int64, err error, )
nolint: varnamelen
func (*Cli) GetEarningsCalendar ¶
func (*Cli) GetExchangeRate ¶
func (*Cli) GetExchanges ¶
func (*Cli) GetIncomeStatement ¶
func (*Cli) GetIndices ¶
func (*Cli) GetInsiderTransactions ¶
func (*Cli) GetMarketMovers ¶
func (*Cli) GetMarketState ¶
func (*Cli) GetProfile ¶
func (*Cli) GetStatistics ¶
func (*Cli) GetTimeSeries ¶
func (c *Cli) GetTimeSeries( symbol, interval, exchange, micCode, country, instrumentType string, outputSize int, prePost string, decimalPlaces int, order, timezone, date, startDate, endDate string, previousClose bool, ) (seriesResp *response.TimeSeries, creditsLeft int64, creditsUsed int64, err error)
nolint: cyclop
type Conf ¶
type Conf struct { BaseURL string `default:"https://api.twelvedata.com" json:"base_url"` BaseWSURL string `default:"ws.twelvedata.com" json:"base_ws_url"` ReferenceData ReferenceData `json:"reference_data"` CoreData CoreData `json:"core_data"` Fundamentals Fundamentals `json:"fundamentals"` WebSocket WebSocket `json:"web_socket"` Advanced Advanced `json:"advanced"` APIKey string `default:"demo" json:"api_key"` Timeout int `default:"15" json:"timeout"` }
type CoreData ¶
type CoreData struct { TimeSeriesURL string `` /* 339-byte string literal not displayed */ QuotesURL string `` /* 334-byte string literal not displayed */ ExchangeRateURL string `` /* 150-byte string literal not displayed */ MarketMoversURL string `` /* 150-byte string literal not displayed */ }
nolint: lll
type Fundamentals ¶
type Fundamentals struct { EarningsCalendarURL string `` /* 206-byte string literal not displayed */ ProfileURL string `` /* 196-byte string literal not displayed */ InsiderTransactionsURL string `` /* 209-byte string literal not displayed */ IncomeStatementURL string `` /* 205-byte string literal not displayed */ BalanceSheetURL string `` /* 202-byte string literal not displayed */ CashFlowURL string `` /* 198-byte string literal not displayed */ DividendsURL string `` /* 198-byte string literal not displayed */ StatisticsURL string `` /* 199-byte string literal not displayed */ }
nolint: lll
type ReferenceData ¶
type ReferenceData struct { StocksURL string `` /* 195-byte string literal not displayed */ ExchangesURL string `` /* 197-byte string literal not displayed */ IndicesURL string `` /* 196-byte string literal not displayed */ EtfsURL string `` /* 193-byte string literal not displayed */ MarketStateURL string `` /* 201-byte string literal not displayed */ }
nolint: lll
Click to show internal directories.
Click to hide internal directories.