Versions in this module Expand all Collapse all v1 v1.2.0 Jul 20, 2026 Changes in this version + const ProdEndpoint + const SandboxEndpoint + func MoneyString(m *investapi.MoneyValue) string + func ParseCandleInterval(raw string) (investapi.CandleInterval, error) + func QuotationString(q *investapi.Quotation) string + type APIError struct + GRPCCode codes.Code + TrackingID string + func (e *APIError) Error() string + func (e *APIError) Unwrap() error + type Client struct + func New(ctx context.Context, cfg Config) (*Client, error) + func (c *Client) AccruedInterests(ctx context.Context, id string, from, to time.Time) ([]*investapi.AccruedInterest, error) + func (c *Client) Candles(ctx context.Context, id string, interval investapi.CandleInterval, ...) ([]*investapi.HistoricCandle, error) + func (c *Client) Close() error + func (c *Client) ClosePrices(ctx context.Context, ids ...string) ([]*investapi.InstrumentClosePriceResponse, error) + func (c *Client) Consensus(ctx context.Context, params ConsensusParams) (ConsensusResult, error) + func (c *Client) Coupons(ctx context.Context, id string, from, to time.Time) ([]*investapi.Coupon, error) + func (c *Client) Dividends(ctx context.Context, id string, from, to time.Time) ([]*investapi.Dividend, error) + func (c *Client) Forecast(ctx context.Context, id string) (ForecastResult, error) + func (c *Client) Fundamentals(ctx context.Context, assetUIDs ...string) ([]*investapi.GetAssetFundamentalsResponse_StatisticResponse, error) + func (c *Client) InsiderDeals(ctx context.Context, params InsiderDealsParams) (InsiderDealsResult, error) + func (c *Client) Instruments(ctx context.Context, instrumentType string) ([]ListedInstrument, error) + func (c *Client) LastPrices(ctx context.Context, ids ...string) ([]*investapi.LastPrice, error) + func (c *Client) News(ctx context.Context, params NewsParams) (NewsResult, error) + func (c *Client) OrderBook(ctx context.Context, id string, depth int32) (*investapi.GetOrderBookResponse, error) + func (c *Client) Resolve(ctx context.Context, id string) (*investapi.Instrument, error) + func (c *Client) Search(ctx context.Context, query string) ([]*investapi.InstrumentShort, error) + func (c *Client) TradingSchedules(ctx context.Context, exchange string, from, to time.Time) ([]*investapi.TradingSchedule, error) + func (c *Client) TradingStatus(ctx context.Context, id string) (*investapi.GetTradingStatusResponse, error) + type Config struct + CAFile string + DisableCache bool + DisableRateLimit bool + Endpoint string + Sandbox bool + Timeout time.Duration + Token string + type ConsensusParams struct + Limit int32 + PageNumber int32 + type ConsensusResult struct + Items []*investapi.GetConsensusForecastsResponse_ConsensusForecastsItem + Page *investapi.PageResponse + type ForecastResult struct + Consensus *investapi.GetForecastResponse_ConsensusItem + Targets []*investapi.GetForecastResponse_TargetItem + type InsiderDealsParams struct + Cursor string + InstrumentID string + Limit int32 + type InsiderDealsResult struct + Deals []*investapi.GetInsiderDealsResponse_InsiderDeal + NextCursor *string + type ListedInstrument struct + ClassCode string + Currency string + FIGI string + Lot int32 + Name string + Ticker string + TradingStatus investapi.SecurityTradingStatus + Type string + UID string + type NewsParams struct + Cursor *int64 + Limit *int32 + type NewsResult struct + HasNext bool + Items []*investapi.NewsItem + NextCursor *int64