Versions in this module Expand all Collapse all v0 v0.1.0 Jul 22, 2026 Changes in this version + var ErrHistoryTruncated = errors.New("bvb: history window truncated") + var ErrUnknownMarket = errors.New("bvb: unknown market") + var ErrUnknownSymbol = errors.New("bvb: unknown symbol") + var ErrUnsupportedResolution = errors.New("bvb: unsupported resolution") + type APIError struct + Body string + Status int + URL string + func (e *APIError) Error() string + type Bar struct + Close float64 + High float64 + Low float64 + Open float64 + Time time.Time + Volume int64 + type Client struct + func New(opts ...Option) *Client + func (c *Client) Config(ctx context.Context) (Config, error) + func (c *Client) Fundamentals(ctx context.Context, ticker string) (Fundamentals, error) + func (c *Client) History(ctx context.Context, ticker string, from, to time.Time, res Resolution, ...) ([]Bar, error) + func (c *Client) Instruments(ctx context.Context, market Market) ([]Instrument, error) + func (c *Client) Search(ctx context.Context, query string) ([]SearchResult, error) + func (c *Client) ServerTime(ctx context.Context) (time.Time, error) + func (c *Client) SymbolInfo(ctx context.Context, ticker string) (SymbolInfo, error) + type Config struct + SupportedResolutions []string + SupportsSearch bool + SupportsTime bool + SymbolTypes []SymbolType + type Fundamentals struct + Category string + DivYield float64 + Dividend float64 + DividendYear int + EPS float64 + FirstTradeDate time.Time + ISIN string + MarketCap float64 + Name string + NominalValue float64 + PBV float64 + PER float64 + Segment string + ShareCapital float64 + Shareholders []Shareholder + SharesOutstanding int64 + Status string + Ticker string + Type string + type Instrument struct + ISIN string + Market Market + Name string + Ticker string + type Market string + const Bonds + const Certificates + const FundUnits + const Shares + const Warrants + type Option func(*Client) + func WithDatafeedURL(u string) Option + func WithHTTPClient(h *http.Client) Option + func WithUserAgent(ua string) Option + func WithWebURL(u string) Option + type Resolution string + const D1 + const H1 + const M1 + const M15 + const M30 + const M5 + const Mo1 + const W1 + func (r Resolution) Valid() bool + type SearchResult struct + Description string + Exchange string + FullName string + Symbol string + Ticker string + Type string + type Shareholder struct + Name string + Percent float64 + Shares int64 + type SymbolInfo struct + Description string + Exchange string + HasIntraday bool + Name string + Session string + SupportedResolutions []string + Ticker string + Timezone string + Type string + type SymbolType struct + Name string + Value string