Versions in this module Expand all Collapse all v0 v0.1.1 Nov 30, 2026 v0.1.0 Nov 28, 2026 Changes in this version + const CodeDataPreparing + const CodeInsufficientCredits + const CodeInvalidParams + const CodeRangeTooLarge + const CodeRateLimited + const CodeSymbolNotFound + const CodeUnauthorized + const DefaultBaseURL + const DefaultStreamURL + const Version + var Channels = []string + var ErrDataPreparing = errors.New("ptb: data_preparing") + var ErrInsufficientCredits = errors.New("ptb: insufficient_credits") + var ErrInvalidParams = errors.New("ptb: invalid_params") + var ErrMissingAPIKey = errors.New("ptb: API key missing: use WithAPIKey or set PTB_API_KEY") + var ErrNotFound = errors.New("ptb: not_found") + var ErrRangeTooLarge = errors.New("ptb: range_too_large") + var ErrRateLimited = errors.New("ptb: rate_limited") + var ErrServer = errors.New("ptb: server_error") + var ErrSymbolNotFound = errors.New("ptb: symbol_not_found") + var ErrUnauthorized = errors.New("ptb: unauthorized") + var Operations = map[string]string + func Bool(b bool) *bool + func Float(f float64) *float64 + func Int(n int64) *int64 + type APIError struct + Body []byte + Code string + DocsURL string + Message string + RequestID string + RetryAfter time.Duration + Status int + func (e *APIError) Error() string + func (e *APIError) Is(target error) bool + type AccountBalanceData struct + Monthly map[string]any + Prepaid []map[string]any + Reserved int64 + Total int64 + type AccountBalanceParams struct + type AccountData struct + Free bool + Plan string + PlanRenewsAt string + RateLimit map[string]any + UserID string + type AccountParams struct + type AccountService struct + func (s *AccountService) Balance(ctx context.Context, params *AccountBalanceParams, opts ...RequestOption) (*Response[AccountBalanceData], error) + func (s *AccountService) Get(ctx context.Context, params *AccountParams, opts ...RequestOption) (*Response[AccountData], error) + func (s *AccountService) Usage(ctx context.Context, params *AccountUsageParams, opts ...RequestOption) (*Response[[]AccountUsageDataItem], error) + func (s *AccountService) UsageIter(ctx context.Context, params *AccountUsageParams, opts ...RequestOption) iter.Seq2[AccountUsageDataItem, error] + type AccountUsageDataItem struct + At string + Credits int64 + KeyID string + Path string + RequestID string + Rule string + Status int64 + type AccountUsageParams struct + Channel string + Cursor string + Fields string + From string + KeyID string + Limit *int64 + Path string + To string + type BatchData struct + Billing map[string]any + Results []map[string]any + Status string + type BatchParams struct + type Billing struct + BalanceAfter *int64 + CreditsCharged *int64 + Free *bool + HeaderCharged *int64 + HeaderRemaining *int64 + Rule string + type BrokersCodeActivityDataItem struct + BuyAvg float64 + BuyValue float64 + Days int64 + NetLots int64 + NetValue float64 + SellAvg float64 + SellValue float64 + Symbol string + type BrokersCodeActivityParams struct + Cursor string + Fields string + From string + Limit *int64 + Order string + Side string + Sort string + To string + type BrokersCodeQuadrantData struct + Symbols []map[string]any + type BrokersCodeQuadrantParams struct + Fields string + Period string + Top *int64 + type BrokersCodeStalkerDataItem struct + Daily []map[string]any + Symbols []map[string]any + type BrokersCodeStalkerParams struct + Cursor string + Fields string + From string + Limit *int64 + Period string + Symbol string + To string + UseNet *bool + type BrokersInventoryDataItem struct + Broker string + Points []map[string]any + Symbol string + type BrokersInventoryParams struct + Brokers string + Cursor string + Fields string + From string + Limit *int64 + Symbols string + To string + type BrokersService struct + func (s *BrokersService) Activity(ctx context.Context, code string, params *BrokersCodeActivityParams, ...) (*Response[[]BrokersCodeActivityDataItem], error) + func (s *BrokersService) ActivityIter(ctx context.Context, code string, params *BrokersCodeActivityParams, ...) iter.Seq2[BrokersCodeActivityDataItem, error] + func (s *BrokersService) Inventory(ctx context.Context, params *BrokersInventoryParams, opts ...RequestOption) (*Response[[]BrokersInventoryDataItem], error) + func (s *BrokersService) InventoryIter(ctx context.Context, params *BrokersInventoryParams, opts ...RequestOption) iter.Seq2[BrokersInventoryDataItem, error] + func (s *BrokersService) Quadrant(ctx context.Context, code string, params *BrokersCodeQuadrantParams, ...) (*Response[BrokersCodeQuadrantData], error) + func (s *BrokersService) Stalker(ctx context.Context, code string, params *BrokersCodeStalkerParams, ...) (*Response[[]BrokersCodeStalkerDataItem], error) + func (s *BrokersService) StalkerIter(ctx context.Context, code string, params *BrokersCodeStalkerParams, ...) iter.Seq2[BrokersCodeStalkerDataItem, error] + type Client struct + func New(opts ...Option) (*Client, error) + func (c *Client) Batch(ctx context.Context, body any, params *BatchParams, opts ...RequestOption) (*Response[BatchData], error) + func (c *Client) Compare(ctx context.Context, params *CompareParams, opts ...RequestOption) (*Response[CompareData], error) + func (c *Client) Raw(ctx context.Context, method, path string, query url.Values) (*http.Response, error) + type CompareData struct + Series []map[string]any + Symbols []map[string]any + type CompareParams struct + Days *int64 + Fields string + From string + Metrics string + Symbols string + To string + type ConnectionError struct + Err error + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type IndicesActivityData struct + ChangePct float64 + Code string + Intraday []map[string]any + Last float64 + type IndicesActivityParams struct + Codes string + Date string + Fields string + type IndicesCodeDataItem struct + Close float64 + Down int64 + High float64 + Low float64 + Open float64 + Time string + Up int64 + Value float64 + VolumeLots int64 + type IndicesCodeParams struct + Cursor string + Date string + Fields string + From string + Interval string + Limit *int64 + To string + type IndicesData struct + ChangePct float64 + Close float64 + Code string + Down int64 + High float64 + Low float64 + Open float64 + Prev float64 + Unchanged int64 + Up int64 + Value float64 + type IndicesIHSGClustersData struct + Sector string + Stocks []map[string]any + Turnover float64 + type IndicesIHSGClustersParams struct + Date string + Fields string + PerSector *int64 + type IndicesIHSGContributorsData struct + ChangePct float64 + Code string + DeltaValue float64 + Last float64 + Points float64 + Prev float64 + Sector string + Turnover float64 + Weight float64 + type IndicesIHSGContributorsParams struct + Date string + Fields string + Limit *int64 + Order string + Sector string + Sort string + type IndicesIHSGFlowDataItem struct + Advancers int64 + AuctionValue float64 + Big []map[string]any + CumulativeNet float64 + Decliners int64 + HakaValue float64 + HakiValue float64 + NetValue float64 + Pressure float64 + Time string + UnknownValue float64 + type IndicesIHSGFlowParams struct + Cursor string + Date string + Fields string + Limit *int64 + Since *int64 + Step *int64 + type IndicesIHSGSectorsData struct + ChangePct float64 + DeltaValue float64 + Down int64 + Points float64 + Pressure float64 + Sector string + TotalPoints float64 + Turnover float64 + Up int64 + Weight float64 + type IndicesIHSGSectorsParams struct + Date string + Fields string + Order string + Sort string + type IndicesIHSGSectorsRotationData struct + AggressionRatio float64 + ChangePct float64 + Sector string + Weight float64 + type IndicesIHSGSectorsRotationParams struct + Date string + Fields string + MinTurnover *float64 + type IndicesPTBData struct + Active bool + Code string + LastDate string + type IndicesPTBHistoryDataItem struct + Members []map[string]any + Period string + type IndicesPTBHistoryParams struct + Cursor string + Fields string + From string + Limit *int64 + Period string + To string + type IndicesPTBParams struct + Fields string + type IndicesParams struct + Date string + Fields string + type IndicesService struct + func (s *IndicesService) Activity(ctx context.Context, params *IndicesActivityParams, opts ...RequestOption) (*Response[IndicesActivityData], error) + func (s *IndicesService) Get(ctx context.Context, code string, params *IndicesCodeParams, ...) (*Response[[]IndicesCodeDataItem], error) + func (s *IndicesService) GetIter(ctx context.Context, code string, params *IndicesCodeParams, ...) iter.Seq2[IndicesCodeDataItem, error] + func (s *IndicesService) IHSGClusters(ctx context.Context, params *IndicesIHSGClustersParams, opts ...RequestOption) (*Response[IndicesIHSGClustersData], error) + func (s *IndicesService) IHSGContributors(ctx context.Context, params *IndicesIHSGContributorsParams, ...) (*Response[IndicesIHSGContributorsData], error) + func (s *IndicesService) IHSGFlow(ctx context.Context, params *IndicesIHSGFlowParams, opts ...RequestOption) (*Response[[]IndicesIHSGFlowDataItem], error) + func (s *IndicesService) IHSGFlowIter(ctx context.Context, params *IndicesIHSGFlowParams, opts ...RequestOption) iter.Seq2[IndicesIHSGFlowDataItem, error] + func (s *IndicesService) IHSGSectors(ctx context.Context, params *IndicesIHSGSectorsParams, opts ...RequestOption) (*Response[IndicesIHSGSectorsData], error) + func (s *IndicesService) IHSGSectorsRotation(ctx context.Context, params *IndicesIHSGSectorsRotationParams, ...) (*Response[IndicesIHSGSectorsRotationData], error) + func (s *IndicesService) List(ctx context.Context, params *IndicesParams, opts ...RequestOption) (*Response[IndicesData], error) + func (s *IndicesService) PTB(ctx context.Context, params *IndicesPTBParams, opts ...RequestOption) (*Response[IndicesPTBData], error) + func (s *IndicesService) PTBHistory(ctx context.Context, params *IndicesPTBHistoryParams, opts ...RequestOption) (*Response[[]IndicesPTBHistoryDataItem], error) + func (s *IndicesService) PTBHistoryIter(ctx context.Context, params *IndicesPTBHistoryParams, opts ...RequestOption) iter.Seq2[IndicesPTBHistoryDataItem, error] + type MarketActionData struct + Bars []map[string]any + type MarketActionParams struct + Date string + Fields string + Interval string + type MarketBubblesData struct + AggressiveValue float64 + AsOf string + ChangePct float64 + Code string + DeltaValue float64 + Freq int64 + Last float64 + Phase string + Ref float64 + Rvol float64 + VWAP float64 + Value float64 + VolumeLots int64 + type MarketBubblesParams struct + Fields string + Limit *int64 + MinValue *float64 + Sector string + Window string + type MarketEODDataItem struct + Change float64 + ChangePct float64 + Close float64 + Code string + ForeignBuy float64 + ForeignSell float64 + Freq int64 + High float64 + Low float64 + Open float64 + Prev float64 + Value float64 + VolumeLots int64 + type MarketEODParams struct + Board string + Cursor string + Date string + Fields string + Limit *int64 + Order string + Sector string + Sort string + Symbols string + type MarketExtremeResultsData struct + Days []map[string]any + type MarketExtremeResultsParams struct + Fields string + Month string + type MarketFlowData struct + AggressionNet float64 + ForeignHistory []map[string]any + ForeignMonth float64 + ForeignToday float64 + ForeignWeek float64 + TopAccumulation []map[string]any + TopDistribution []map[string]any + type MarketFlowParams struct + Date string + Fields string + type MarketForeignFlowData struct + History []map[string]any + Monthly map[string]any + Today map[string]any + TopAccumulation []map[string]any + TopDistribution []map[string]any + Weekly map[string]any + type MarketForeignFlowParams struct + Fields string + From string + To string + type MarketForeignFlowStocksDataItem struct + ChangePct float64 + Close float64 + Code string + ForeignBuy float64 + ForeignNet float64 + ForeignSell float64 + type MarketForeignFlowStocksParams struct + Cursor string + Date string + Fields string + From string + Limit *int64 + Order string + Side string + Sort string + To string + type MarketMostActiveData struct + Change float64 + ChangePct float64 + Code string + Freq int64 + High float64 + Last float64 + Low float64 + Open float64 + Prev float64 + Value float64 + VolumeLots int64 + type MarketMostActiveParams struct + Board string + By string + Date string + Fields string + Limit *int64 + type MarketMoversData struct + Gainers []map[string]any + Losers []map[string]any + type MarketMoversParams struct + Date string + Fields string + Limit *int64 + MinValue *float64 + Type string + type MarketNetFlowDataItem struct + AuctionValue float64 + BigBuyCount int64 + BigSellCount int64 + ChangePct float64 + Code string + HakaValue float64 + HakiValue float64 + Last float64 + LastTradeAt string + NetValue float64 + P99Value float64 + type MarketNetFlowParams struct + Cursor string + Date string + Fields string + Limit *int64 + Order string + Sort string + Symbols string + type MarketPremarketAuctionData struct + ChangePct float64 + Code string + Iep float64 + IevLots int64 + Value float64 + type MarketPremarketAuctionParams struct + Date string + Fields string + Limit *int64 + Slot string + type MarketScriplessDataItem struct + Code string + EstimatedValue float64 + EventDate string + EventType string + HolderType string + ID string + Magnitude string + NewScriplessLots int64 + PctOutstanding float64 + type MarketScriplessParams struct + Cursor string + Date string + EventType string + Fields string + From string + Limit *int64 + MinLots *int64 + MinPctOutstanding *float64 + OnlyConversions *bool + Order string + Sort string + Symbol string + To string + type MarketScriplessTopData struct + Code string + Value float64 + type MarketScriplessTopParams struct + Fields string + Limit *int64 + Metric string + Period string + type MarketService struct + func (s *MarketService) Action(ctx context.Context, params *MarketActionParams, opts ...RequestOption) (*Response[MarketActionData], error) + func (s *MarketService) Bubbles(ctx context.Context, params *MarketBubblesParams, opts ...RequestOption) (*Response[MarketBubblesData], error) + func (s *MarketService) EOD(ctx context.Context, params *MarketEODParams, opts ...RequestOption) (*Response[[]MarketEODDataItem], error) + func (s *MarketService) EODIter(ctx context.Context, params *MarketEODParams, opts ...RequestOption) iter.Seq2[MarketEODDataItem, error] + func (s *MarketService) ExtremeResults(ctx context.Context, params *MarketExtremeResultsParams, opts ...RequestOption) (*Response[MarketExtremeResultsData], error) + func (s *MarketService) Flow(ctx context.Context, params *MarketFlowParams, opts ...RequestOption) (*Response[MarketFlowData], error) + func (s *MarketService) ForeignFlow(ctx context.Context, params *MarketForeignFlowParams, opts ...RequestOption) (*Response[MarketForeignFlowData], error) + func (s *MarketService) ForeignFlowStocks(ctx context.Context, params *MarketForeignFlowStocksParams, ...) (*Response[[]MarketForeignFlowStocksDataItem], error) + func (s *MarketService) ForeignFlowStocksIter(ctx context.Context, params *MarketForeignFlowStocksParams, ...) iter.Seq2[MarketForeignFlowStocksDataItem, error] + func (s *MarketService) MostActive(ctx context.Context, params *MarketMostActiveParams, opts ...RequestOption) (*Response[MarketMostActiveData], error) + func (s *MarketService) Movers(ctx context.Context, params *MarketMoversParams, opts ...RequestOption) (*Response[MarketMoversData], error) + func (s *MarketService) NetFlow(ctx context.Context, params *MarketNetFlowParams, opts ...RequestOption) (*Response[[]MarketNetFlowDataItem], error) + func (s *MarketService) NetFlowIter(ctx context.Context, params *MarketNetFlowParams, opts ...RequestOption) iter.Seq2[MarketNetFlowDataItem, error] + func (s *MarketService) PremarketAuction(ctx context.Context, params *MarketPremarketAuctionParams, ...) (*Response[MarketPremarketAuctionData], error) + func (s *MarketService) Scripless(ctx context.Context, params *MarketScriplessParams, opts ...RequestOption) (*Response[[]MarketScriplessDataItem], error) + func (s *MarketService) ScriplessIter(ctx context.Context, params *MarketScriplessParams, opts ...RequestOption) iter.Seq2[MarketScriplessDataItem, error] + func (s *MarketService) ScriplessTop(ctx context.Context, params *MarketScriplessTopParams, opts ...RequestOption) (*Response[MarketScriplessTopData], error) + type MeService struct + func (s *MeService) Watchlist(ctx context.Context, params *MeWatchlistParams, opts ...RequestOption) (*Response[MeWatchlistData], error) + type MeWatchlistData struct + Symbols []map[string]any + UpdatedAt string + type MeWatchlistParams struct + type Meta struct + Date string + HasMore *bool + Limit int64 + NextCursor *string + Returned int64 + SchemaVersion string + SessionStatus string + Symbol string + func (m Meta) Next() string + type Option func(*Client) + func WithAPIKey(k string) Option + func WithBackoff(base, max time.Duration) Option + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + func WithHeader(k, v string) Option + func WithMaxRetries(n int) Option + func WithUserAgent(ua string) Option + type PicksHistoryDataItem struct + Code string + Date string + EntryPrice float64 + ID string + Result string + ResultPct float64 + type PicksHistoryParams struct + Cursor string + Fields string + From string + Limit *int64 + Result string + To string + type PicksService struct + func (s *PicksService) History(ctx context.Context, params *PicksHistoryParams, opts ...RequestOption) (*Response[[]PicksHistoryDataItem], error) + func (s *PicksService) HistoryIter(ctx context.Context, params *PicksHistoryParams, opts ...RequestOption) iter.Seq2[PicksHistoryDataItem, error] + func (s *PicksService) Stats(ctx context.Context, params *PicksStatsParams, opts ...RequestOption) (*Response[PicksStatsData], error) + func (s *PicksService) Today(ctx context.Context, params *PicksTodayParams, opts ...RequestOption) (*Response[PicksTodayData], error) + type PicksStatsData struct + Draw int64 + Loss int64 + Total int64 + Win int64 + WinRate float64 + type PicksStatsParams struct + Days *int64 + Fields string + Month string + type PicksTodayData struct + Code string + Date string + Description string + EntryPrice float64 + Holiday string + ID string + Intraday map[string]any + MarketClosed bool + Result string + type PicksTodayParams struct + Fields string + type QuotaEstimateData struct + PricingVersion string + TotalMax int64 + type QuotaEstimateParams struct + type QuotaService struct + func (s *QuotaService) Estimate(ctx context.Context, body any, params *QuotaEstimateParams, ...) (*Response[QuotaEstimateData], error) + type RadarAnomalyData struct + AggressionRatio float64 + BigNetCount int64 + ChangePct float64 + Code string + Turnover float64 + type RadarAnomalyParams struct + Date string + Fields string + Limit *int64 + MinChangePct *float64 + MinRatio *float64 + MinTurnover *float64 + Tab string + type RadarMarketData struct + AggressionRatio float64 + BigNetCount int64 + ChangePct float64 + Code string + DeltaValue float64 + Turnover float64 + type RadarMarketParams struct + Date string + Fields string + Limit *int64 + MinChangePct *float64 + MinRatio *float64 + MinTurnover *float64 + Tab string + type RadarService struct + func (s *RadarService) Anomaly(ctx context.Context, params *RadarAnomalyParams, opts ...RequestOption) (*Response[RadarAnomalyData], error) + func (s *RadarService) Market(ctx context.Context, params *RadarMarketParams, opts ...RequestOption) (*Response[RadarMarketData], error) + func (s *RadarService) Technical(ctx context.Context, params *RadarTechnicalParams, opts ...RequestOption) (*Response[RadarTechnicalData], error) + type RadarTechnicalData struct + ChangePct float64 + Code string + RSI float64 + Signals []map[string]any + Trend string + type RadarTechnicalParams struct + Date string + Fields string + RSIPeriod *int64 + Symbols string + type RankingsService struct + func (s *RankingsService) TradeFlow(ctx context.Context, params *RankingsTradeFlowParams, opts ...RequestOption) (*Response[RankingsTradeFlowData], error) + type RankingsTradeFlowData struct + AggressionRatio float64 + BigNetCount int64 + Code string + DeltaValue float64 + Rank int64 + Turnover float64 + type RankingsTradeFlowParams struct + By string + Date string + Fields string + Limit *int64 + MinTurnover *float64 + Order string + type RateLimit struct + Limit *int64 + Remaining *int64 + Reset *int64 + type ReferenceBrokersData struct + Code string + Name string + Type string + type ReferenceBrokersParams struct + Type string + type ReferenceCalendarData struct + Date string + Holiday string + Trading bool + type ReferenceCalendarParams struct + From string + To string + type ReferenceIndicesData struct + Code string + Name string + type ReferenceIndicesParams struct + type ReferenceSectorsData struct + Sector string + SubSectors []map[string]any + type ReferenceSectorsParams struct + type ReferenceService struct + func (s *ReferenceService) Brokers(ctx context.Context, params *ReferenceBrokersParams, opts ...RequestOption) (*Response[ReferenceBrokersData], error) + func (s *ReferenceService) Calendar(ctx context.Context, params *ReferenceCalendarParams, opts ...RequestOption) (*Response[ReferenceCalendarData], error) + func (s *ReferenceService) Indices(ctx context.Context, params *ReferenceIndicesParams, opts ...RequestOption) (*Response[ReferenceIndicesData], error) + func (s *ReferenceService) Sectors(ctx context.Context, params *ReferenceSectorsParams, opts ...RequestOption) (*Response[ReferenceSectorsData], error) + func (s *ReferenceService) Stocks(ctx context.Context, params *ReferenceStocksParams, opts ...RequestOption) (*Response[ReferenceStocksData], error) + type ReferenceStocksData struct + Code string + LogoURL string + MarketCap float64 + Name string + Notations []map[string]any + Sector string + SubSector string + type ReferenceStocksParams struct + Cursor string + Limit *int64 + Search string + Sector string + Sort string + SubSector string + type RequestOption func(*reqOpts) + func IdempotencyKey(k string) RequestOption + func IfNoneMatch(etag string) RequestOption + type Response struct + Billing Billing + Data T + ETag string + Header http.Header + Meta Meta + NotModified bool + RateLimit RateLimit + RequestID string + Status int + func Do[T any](c *Client, ctx context.Context, method, path string, query url.Values, ...) (*Response[T], error) + type ScreenersBrokerDataItem struct + BestBroker string + BestBrokerForeign bool + BestBrokerRelativeValue float64 + Brokers []map[string]any + Days int64 + Status string + Symbol string + TotalBuy float64 + TotalDiff float64 + TotalSell float64 + type ScreenersBrokerParams struct + Broker string + Cursor string + ExtremeOnly *bool + Fields string + From string + Limit *int64 + Order string + Q string + Range string + Sort string + To string + type ScreenersService struct + func (s *ScreenersService) Broker(ctx context.Context, params *ScreenersBrokerParams, opts ...RequestOption) (*Response[[]ScreenersBrokerDataItem], error) + func (s *ScreenersService) BrokerIter(ctx context.Context, params *ScreenersBrokerParams, opts ...RequestOption) iter.Seq2[ScreenersBrokerDataItem, error] + type StocksService struct + func (s *StocksService) Auction(ctx context.Context, symbol string, params *StocksSymbolAuctionParams, ...) (*Response[StocksSymbolAuctionData], error) + func (s *StocksService) BigTrades(ctx context.Context, symbol string, params *StocksSymbolBigTradesParams, ...) (*Response[[]StocksSymbolBigTradesDataItem], error) + func (s *StocksService) BigTradesIter(ctx context.Context, symbol string, params *StocksSymbolBigTradesParams, ...) iter.Seq2[StocksSymbolBigTradesDataItem, error] + func (s *StocksService) BookEvents(ctx context.Context, symbol string, params *StocksSymbolBookEventsParams, ...) (*Response[[]StocksSymbolBookEventsDataItem], error) + func (s *StocksService) BookEventsIter(ctx context.Context, symbol string, params *StocksSymbolBookEventsParams, ...) iter.Seq2[StocksSymbolBookEventsDataItem, error] + func (s *StocksService) BrokersFlow(ctx context.Context, symbol string, params *StocksSymbolBrokersFlowParams, ...) (*Response[StocksSymbolBrokersFlowData], error) + func (s *StocksService) BrokersInventory(ctx context.Context, symbol string, params *StocksSymbolBrokersInventoryParams, ...) (*Response[[]StocksSymbolBrokersInventoryDataItem], error) + func (s *StocksService) BrokersInventoryIter(ctx context.Context, symbol string, params *StocksSymbolBrokersInventoryParams, ...) iter.Seq2[StocksSymbolBrokersInventoryDataItem, error] + func (s *StocksService) BrokersNetPosition(ctx context.Context, symbol string, ...) (*Response[[]StocksSymbolBrokersNetPositionDataItem], error) + func (s *StocksService) BrokersNetPositionIter(ctx context.Context, symbol string, ...) iter.Seq2[StocksSymbolBrokersNetPositionDataItem, error] + func (s *StocksService) BrokersQuadrant(ctx context.Context, symbol string, params *StocksSymbolBrokersQuadrantParams, ...) (*Response[StocksSymbolBrokersQuadrantData], error) + func (s *StocksService) BrokersSummary(ctx context.Context, symbol string, params *StocksSymbolBrokersSummaryParams, ...) (*Response[StocksSymbolBrokersSummaryData], error) + func (s *StocksService) CorporateActions(ctx context.Context, symbol string, params *StocksSymbolCorporateActionsParams, ...) (*Response[[]StocksSymbolCorporateActionsDataItem], error) + func (s *StocksService) CorporateActionsIter(ctx context.Context, symbol string, params *StocksSymbolCorporateActionsParams, ...) iter.Seq2[StocksSymbolCorporateActionsDataItem, error] + func (s *StocksService) FlowSummary(ctx context.Context, symbol string, params *StocksSymbolFlowSummaryParams, ...) (*Response[StocksSymbolFlowSummaryData], error) + func (s *StocksService) ForeignFlow(ctx context.Context, symbol string, params *StocksSymbolForeignFlowParams, ...) (*Response[[]StocksSymbolForeignFlowDataItem], error) + func (s *StocksService) ForeignFlowIter(ctx context.Context, symbol string, params *StocksSymbolForeignFlowParams, ...) iter.Seq2[StocksSymbolForeignFlowDataItem, error] + func (s *StocksService) Heatmap(ctx context.Context, symbol string, params *StocksSymbolHeatmapParams, ...) (*Response[[]StocksSymbolHeatmapDataItem], error) + func (s *StocksService) HeatmapIter(ctx context.Context, symbol string, params *StocksSymbolHeatmapParams, ...) iter.Seq2[StocksSymbolHeatmapDataItem, error] + func (s *StocksService) Ohlcv(ctx context.Context, symbol string, params *StocksSymbolOhlcvParams, ...) (*Response[[]StocksSymbolOhlcvDataItem], error) + func (s *StocksService) OhlcvIter(ctx context.Context, symbol string, params *StocksSymbolOhlcvParams, ...) iter.Seq2[StocksSymbolOhlcvDataItem, error] + func (s *StocksService) Orderbook(ctx context.Context, symbol string, params *StocksSymbolOrderbookParams, ...) (*Response[StocksSymbolOrderbookData], error) + func (s *StocksService) Orderflow(ctx context.Context, symbol string, params *StocksSymbolOrderflowParams, ...) (*Response[[]StocksSymbolOrderflowDataItem], error) + func (s *StocksService) OrderflowIter(ctx context.Context, symbol string, params *StocksSymbolOrderflowParams, ...) iter.Seq2[StocksSymbolOrderflowDataItem, error] + func (s *StocksService) Performance(ctx context.Context, symbol string, params *StocksSymbolPerformanceParams, ...) (*Response[StocksSymbolPerformanceData], error) + func (s *StocksService) Pressure(ctx context.Context, symbol string, params *StocksSymbolPressureParams, ...) (*Response[[]StocksSymbolPressureDataItem], error) + func (s *StocksService) PressureIter(ctx context.Context, symbol string, params *StocksSymbolPressureParams, ...) iter.Seq2[StocksSymbolPressureDataItem, error] + func (s *StocksService) Profile(ctx context.Context, symbol string, params *StocksSymbolProfileParams, ...) (*Response[StocksSymbolProfileData], error) + func (s *StocksService) Quote(ctx context.Context, symbol string, params *StocksSymbolQuoteParams, ...) (*Response[StocksSymbolQuoteData], error) + func (s *StocksService) Scripless(ctx context.Context, symbol string, params *StocksSymbolScriplessParams, ...) (*Response[[]StocksSymbolScriplessDataItem], error) + func (s *StocksService) ScriplessIter(ctx context.Context, symbol string, params *StocksSymbolScriplessParams, ...) iter.Seq2[StocksSymbolScriplessDataItem, error] + func (s *StocksService) Technical(ctx context.Context, symbol string, params *StocksSymbolTechnicalParams, ...) (*Response[StocksSymbolTechnicalData], error) + func (s *StocksService) Trades(ctx context.Context, symbol string, params *StocksSymbolTradesParams, ...) (*Response[[]StocksSymbolTradesDataItem], error) + func (s *StocksService) TradesIter(ctx context.Context, symbol string, params *StocksSymbolTradesParams, ...) iter.Seq2[StocksSymbolTradesDataItem, error] + func (s *StocksService) TradesSummary(ctx context.Context, symbol string, params *StocksSymbolTradesSummaryParams, ...) (*Response[StocksSymbolTradesSummaryData], error) + func (s *StocksService) VolumeProfile(ctx context.Context, symbol string, params *StocksSymbolVolumeProfileParams, ...) (*Response[[]StocksSymbolVolumeProfileDataItem], error) + func (s *StocksService) VolumeProfileIter(ctx context.Context, symbol string, params *StocksSymbolVolumeProfileParams, ...) iter.Seq2[StocksSymbolVolumeProfileDataItem, error] + type StocksSymbolAuctionData struct + Matches []map[string]any + type StocksSymbolAuctionParams struct + Date string + Fields string + type StocksSymbolBigTradesDataItem struct + Broker string + Fills int64 + Lots int64 + Percentiles map[string]any + Price float64 + PriceMax float64 + PriceMin float64 + Side string + Time string + Value float64 + type StocksSymbolBigTradesParams struct + Cursor string + Date string + Fields string + FromTime string + Limit *int64 + MinValue *float64 + Percentile string + Side string + ToTime string + type StocksSymbolBookEventsDataItem struct + Kind string + LotsFrom int64 + LotsTo int64 + Price float64 + Side string + Time string + Wall bool + type StocksSymbolBookEventsParams struct + Cursor string + Date string + Fields string + FromTime string + Limit *int64 + MinDrop *int64 + Percentile *int64 + Side string + ToTime string + type StocksSymbolBrokersFlowData struct + ForeignNet float64 + LocalNet float64 + Phase string + TopBuy []map[string]any + TopSell []map[string]any + type StocksSymbolBrokersFlowParams struct + Date string + Fields string + From string + Period string + To string + Top *int64 + type StocksSymbolBrokersInventoryDataItem struct + Date string + Series map[string]any + type StocksSymbolBrokersInventoryParams struct + Brokers string + Cursor string + Fields string + From string + Limit *int64 + Mode string + Period string + To string + Top *int64 + type StocksSymbolBrokersNetPositionDataItem struct + Broker string + BuyAvg float64 + BuyValue float64 + Date string + Group string + NetValue float64 + SellAvg float64 + SellValue float64 + type StocksSymbolBrokersNetPositionParams struct + Brokers string + Cursor string + Fields string + From string + Group string + Limit *int64 + Period string + To string + type StocksSymbolBrokersQuadrantData struct + Brokers []map[string]any + Price float64 + type StocksSymbolBrokersQuadrantParams struct + Fields string + Period string + Top *int64 + Who string + type StocksSymbolBrokersSummaryData struct + Buyers int64 + Phase string + Sellers int64 + TopBuy []map[string]any + TopSell []map[string]any + TotalValue float64 + type StocksSymbolBrokersSummaryParams struct + Brokers string + Fields string + From string + GroupBy string + Investor string + Period string + Side string + To string + Top *int64 + type StocksSymbolCorporateActionsDataItem struct + AnnouncedAt string + Details map[string]any + EffectiveAt string + ID string + Stage string + Title string + Type string + type StocksSymbolCorporateActionsParams struct + Cursor string + Fields string + From string + Limit *int64 + Order string + Sort string + Stage string + To string + Type string + type StocksSymbolFlowSummaryData struct + BigBuyCount int64 + BigNetCount int64 + BigSellCount int64 + BuyPct float64 + HakaValue float64 + HakiValue float64 + NetValue float64 + P99Value float64 + type StocksSymbolFlowSummaryParams struct + Date string + Fields string + type StocksSymbolForeignFlowDataItem struct + CumulativeNet float64 + Date string + ForeignBuy float64 + ForeignNet float64 + ForeignSell float64 + Phase string + type StocksSymbolForeignFlowParams struct + Cursor string + Fields string + From string + Limit *int64 + Period string + To string + type StocksSymbolHeatmapDataItem struct + Asks []map[string]any + Bids []map[string]any + Time string + type StocksSymbolHeatmapParams struct + Cursor string + Date string + Depth *int64 + Fields string + FromTime string + Limit *int64 + Step *int64 + ToTime string + type StocksSymbolOhlcvDataItem struct + Close float64 + ForeignBuy float64 + ForeignSell float64 + Freq int64 + High float64 + Low float64 + Open float64 + Time string + Value float64 + VolumeLots int64 + type StocksSymbolOhlcvParams struct + Board string + Cursor string + Fields string + From string + Interval string + Limit *int64 + To string + type StocksSymbolOrderbookData struct + AsOf string + Asks []map[string]any + Bids []map[string]any + Ohlc map[string]any + type StocksSymbolOrderbookParams struct + Depth *int64 + Fields string + type StocksSymbolOrderflowDataItem struct + Big []map[string]any + BuyLots int64 + CVD int64 + Close float64 + Delta int64 + DeltaPct float64 + Footprint []map[string]any + High float64 + Lots int64 + Low float64 + Open float64 + POC float64 + Rvol float64 + SellLots int64 + Signals []map[string]any + Time string + Trades int64 + UnknownLots int64 + VWAP float64 + Value float64 + type StocksSymbolOrderflowParams struct + Big string + Cursor string + Date string + Days *int64 + Fields string + FromTime string + Include string + Limit *int64 + Tf string + ToTime string + type StocksSymbolPerformanceData struct + AsOf string + Close float64 + Returns map[string]any + type StocksSymbolPerformanceParams struct + Date string + Fields string + Periods string + type StocksSymbolPressureDataItem struct + BuyPct float64 + BuyValue float64 + SellValue float64 + Time string + type StocksSymbolPressureParams struct + Cursor string + Date string + Fields string + Interval string + Limit *int64 + type StocksSymbolProfileData struct + Address string + Board string + Code string + Commissioners []map[string]any + Directors []map[string]any + ListingDate string + Name string + Notations []map[string]any + Sector string + Shareholders []map[string]any + Subsidiaries []map[string]any + Website string + type StocksSymbolProfileParams struct + Fields string + Include string + type StocksSymbolQuoteData struct + AsOf string + ChangePct float64 + Freq int64 + High float64 + Last float64 + Low float64 + Open float64 + Phase string + Prev float64 + VWAP float64 + Value float64 + VolumeLots int64 + type StocksSymbolQuoteParams struct + Fields string + type StocksSymbolScriplessDataItem struct + Date string + EventCount int64 + NewScriplessLots int64 + PctOutstandingTotal float64 + type StocksSymbolScriplessParams struct + Cursor string + Fields string + From string + Limit *int64 + To string + View string + type StocksSymbolTechnicalData struct + MACD map[string]any + RSI float64 + SMA map[string]any + Series []map[string]any + Signals []map[string]any + SupportResistance map[string]any + Trend string + type StocksSymbolTechnicalParams struct + Date string + EMA string + Fields string + Indicators string + Lookback *int64 + MACD string + RSIPeriod *int64 + SMA string + Series *bool + type StocksSymbolTradesDataItem struct + Buyer string + BuyerType string + Lots int64 + Price float64 + Seller string + SellerType string + Seq int64 + Side string + Time string + Value float64 + type StocksSymbolTradesParams struct + Board string + Broker string + Cursor string + Date string + Fields string + FromTime string + Investor string + Limit *int64 + MinLots *int64 + MinValue *float64 + PriceFrom *float64 + PriceTo *float64 + Side string + Sort string + ToTime string + type StocksSymbolTradesSummaryData struct + BuyLots int64 + Investors map[string]any + NetLots int64 + Price float64 + SellLots int64 + Trades int64 + type StocksSymbolTradesSummaryParams struct + Date string + Fields string + FromTime string + ToTime string + type StocksSymbolVolumeProfileDataItem struct + Hvn []map[string]any + Levels []map[string]any + Lvn []map[string]any + POC float64 + Vah float64 + Val float64 + type StocksSymbolVolumeProfileParams struct + Cursor string + Date string + Days *int64 + Fields string + FromTime string + Limit *int64 + Mode string + Tick *float64 + ToTime string + ValueArea *float64 + type Stream struct + Connects int + func NewStream(opts ...StreamOption) (*Stream, error) + func (s *Stream) Close() error + func (s *Stream) LastSeq(channel, symbol string) (int64, bool) + func (s *Stream) Messages(ctx context.Context) func(yield func(StreamMessage, error) bool) + func (s *Stream) Resume(ctx context.Context, channel, symbol string, fromSeq int64) error + func (s *Stream) Subscribe(ctx context.Context, channel string, symbols []string, o *SubscribeOptions) error + func (s *Stream) Unsubscribe(ctx context.Context, channel string, symbols []string, tf string) error + type StreamMessage struct + Channel string + Data json.RawMessage + Error ... + Raw json.RawMessage + SchemaVersion string + Seq *int64 + Symbol string + Time string + Type string + type StreamOption func(*Stream) + func StreamAPIKey(k string) StreamOption + func StreamBackoff(base, max time.Duration) StreamOption + func StreamMaxReconnects(n int) StreamOption + func StreamPingInterval(d time.Duration) StreamOption + func StreamURL(u string) StreamOption + type SubscribeOptions struct + Extra map[string]any + TF string