Versions in this module Expand all Collapse all v1 v1.0.0 Sep 1, 2018 Changes in this version + const BATSBackend + const BATSURL + const MarketStateClosed + const MarketStatePost + const MarketStatePostPost + const MarketStatePre + const MarketStatePrePre + const MarketStateRegular + const QuoteTypeCryptoPair + const QuoteTypeETF + const QuoteTypeEquity + const QuoteTypeForexPair + const QuoteTypeFuture + const QuoteTypeIndex + const QuoteTypeMutualFund + const QuoteTypeOption + const YFinBackend + const YFinURL + func CreateArgumentError() error + func CreateChartTimeError() error + func CreateRemoteError(e error) error + func CreateRemoteErrorS(str string) error + func SetBackend(backend SupportedBackend, b Backend) + func SetHTTPClient(client *http.Client) + type Backend interface + Call func(path string, body *form.Values, ctx *context.Context, v interface{}) error + func GetBackend(backend SupportedBackend) Backend + type BackendConfiguration struct + HTTPClient *http.Client + Type SupportedBackend + URL string + func (s *BackendConfiguration) Call(path string, form *form.Values, ctx *context.Context, v interface{}) error + func (s *BackendConfiguration) Do(req *http.Request, v interface{}) error + func (s *BackendConfiguration) NewRequest(method, path string, ctx *context.Context) (*http.Request, error) + type Backends struct + Bats Backend + YFin Backend + func NewBackends(httpClient *http.Client) *Backends + type ChartBar struct + AdjClose decimal.Decimal + Close decimal.Decimal + High decimal.Decimal + Low decimal.Decimal + Open decimal.Decimal + Timestamp int + Volume int + type ChartMeta struct + ChartPreviousClose float64 + Currency string + CurrentTradingPeriod struct{ ... } + DataGranularity string + ExchangeName string + ExchangeTimezoneName string + FirstTradeDate int + Gmtoffset int + QuoteType QuoteType + Symbol string + Timezone string + ValidRanges []string + type Contract struct + Ask float64 + Bid float64 + Change float64 + Currency string + Expiration int + ImpliedVolatility float64 + InTheMoney bool + LastPrice float64 + LastTradeDate int + OpenInterest int + PercentChange float64 + Size string + Strike float64 + Symbol string + Volume int + type CryptoPair struct + Algorithm string + CirculatingSupply int + MaxSupply int + StartDate int + VolumeAllCurrencies int + VolumeLastDay int + type ETF struct + TrailingThreeMonthNavReturns float64 + TrailingThreeMonthReturns float64 + YTDReturn float64 + type Equity struct + BookValue float64 + DividendDate int + EarningsTimestamp int + EarningsTimestampEnd int + EarningsTimestampStart int + EpsForward float64 + EpsTrailingTwelveMonths float64 + ForwardPE float64 + LongName string + MarketCap int64 + PriceToBook float64 + SharesOutstanding int + TrailingAnnualDividendRate float64 + TrailingAnnualDividendYield float64 + TrailingPE float64 + type ForexPair struct + type Future struct + ExpireDate int + HeadSymbolAsString string + IsContractSymbol bool + OpenInterest int + Strike float64 + UnderlyingExchangeSymbol string + UnderlyingSymbol string + type Index struct + type MarketState string + type MutualFund struct + TrailingThreeMonthNavReturns float64 + TrailingThreeMonthReturns float64 + YTDReturn float64 + type Option struct + ExpireDate int + OpenInterest int + Strike float64 + UnderlyingExchangeSymbol string + UnderlyingSymbol string + type OptionsMeta struct + AllExpirationDates []int + ExpirationDate int + HasMiniOptions bool + Quote *Quote + Strikes []float64 + UnderlyingSymbol string + type Params struct + Context *context.Context + type Printfer interface + Printf func(format string, v ...interface{}) + var LogLevel = 0 + var Logger Printfer + type Quote struct + Ask float64 + AskSize int + AverageDailyVolume10Day int + AverageDailyVolume3Month int + Bid float64 + BidSize int + CurrencyID string + ExchangeID string + ExchangeTimezoneName string + ExchangeTimezoneShortName string + FiftyDayAverage float64 + FiftyDayAverageChange float64 + FiftyDayAverageChangePercent float64 + FiftyTwoWeekHigh float64 + FiftyTwoWeekHighChange float64 + FiftyTwoWeekHighChangePercent float64 + FiftyTwoWeekLow float64 + FiftyTwoWeekLowChange float64 + FiftyTwoWeekLowChangePercent float64 + FullExchangeName string + GMTOffSetMilliseconds int + IsTradeable bool + MarketID string + MarketState MarketState + PostMarketChange float64 + PostMarketChangePercent float64 + PostMarketPrice float64 + PostMarketTime int + PreMarketChange float64 + PreMarketChangePercent float64 + PreMarketPrice float64 + PreMarketTime int + QuoteDelay int + QuoteSource string + QuoteType QuoteType + RegularMarketChange float64 + RegularMarketChangePercent float64 + RegularMarketDayHigh float64 + RegularMarketDayLow float64 + RegularMarketOpen float64 + RegularMarketPreviousClose float64 + RegularMarketPrice float64 + RegularMarketTime int + RegularMarketVolume int + ShortName string + SourceInterval int + Symbol string + TwoHundredDayAverage float64 + TwoHundredDayAverageChange float64 + TwoHundredDayAverageChangePercent float64 + type QuoteType string + type Straddle struct + Call *Contract + Put *Contract + Strike float64 + type SupportedBackend string + type YfinError struct + Code string + Description string + func (e *YfinError) Error() string