Versions in this module Expand all Collapse all v0 v0.3.2 Nov 15, 2026 v0.3.1 Nov 15, 2026 v0.3.0 Nov 15, 2026 v0.2.0 Nov 15, 2026 Changes in this version + const BaseURL + const ClusterAssetManagers + const ClusterAutomatedAI + const ClusterBots + const ClusterCelebrities + const ClusterDAOGuildFunds + const ClusterDayTrader + const ClusterDevelopers + const ClusterDoomer + const ClusterDumbMoney + const ClusterEarlyMovers + const ClusterExchanges + const ClusterFAAnalyst + const ClusterFounders + const ClusterIncubators + const ClusterInvestigators + const ClusterKOLs + const ClusterLateMovers + const ClusterMacroAnalyst + const ClusterMarketer + const ClusterMedia + const ClusterNFT + const ClusterOnchainAnalyst + const ClusterPermaBull + const ClusterPolitical + const ClusterPositionTrader + const ClusterProjectAccounts + const ClusterReddit + const ClusterShiller + const ClusterSmartMoney + const ClusterSwingTrader + const ClusterTAAnalyst + const ClusterTeamLeaders + const ClusterTopDegens + const ClusterTribalist + const ClusterVCs + const ClusterWallStreetBets + const Version + const X402BaseURL + var ErrBadRequest = errors.New("nebula: bad request") + var ErrForbidden = errors.New("nebula: forbidden") + var ErrMethodNotAllowed = errors.New("nebula: method not allowed") + var ErrNotFound = errors.New("nebula: not found") + var ErrNotX402Eligible = errors.New("nebula: operation not eligible for x402") + var ErrOutOfCredits = errors.New("nebula: out of credits") + var ErrPaymentRequired = errors.New("nebula: x402 payment required") + var ErrPaymentUncertain = errors.New("nebula: x402 payment state uncertain") + var ErrRateLimited = errors.New("nebula: rate limited") + var ErrServer = errors.New("nebula: internal server error") + var ErrServiceUnavailable = errors.New("nebula: service unavailable") + var ErrTransport = errors.New("nebula: transport error") + var ErrUnauthorized = errors.New("nebula: unauthorized") + var ErrValidation = errors.New("nebula: validation failed") + func BoolPtr(v bool) *bool + func Float64Ptr(v float64) *float64 + func Int64Ptr(v int64) *int64 + func IntPtr(v int) *int + func IsCommunityCluster(id string) bool + func StringPtr(v string) *string + func TimePtr(v time.Time) *time.Time + func WithRequestLocale(ctx context.Context, l Locale) context.Context + func WithRequestLocaleMode(ctx context.Context, m LocaleMode) context.Context + func X402Eligible(op string) bool + type APIError struct + Body []byte + Headers http.Header + Message string + Metadata ResponseMetadata + Op string + PlanRenewsAt string + PurchasedCredits *int64 + RetryAfter time.Duration + StatusCode int + func (e *APIError) Error() string + func (e *APIError) Is(target error) bool + func (e *APIError) PaymentOffer() bool + type AccountResponse struct + Credits *AccountResponseCredits + HistoryWindowDays *int + Plan string + RateLimitPerMinute *int + type AccountResponseCredits struct + CycleEnd time.Time + CycleStart time.Time + PlanCredits int64 + PlanCreditsRemaining int64 + PlanCreditsUsed int64 + PurchasedCreditsRemaining int64 + TotalRemaining int64 + type AccountService struct + func (s *AccountService) Get(ctx context.Context) (*AccountResponse, error) + type AgentService struct + func (s *AgentService) CreateChatCompletion(ctx context.Context, req *ChatCompletionRequest) (*ChatCompletionResponse, error) + func (s *AgentService) StreamChatCompletion(ctx context.Context, req *ChatCompletionRequest) (*ChatStream, error) + type AssetClass string + const AssetClassCommodity + const AssetClassCrypto + const AssetClassEquity + const AssetClassIndex + func AssetClassPtr(v AssetClass) *AssetClass + type AssetRef struct + Class AssetClass + ID string + type AuthMode string + const AuthModeAPIKey + const AuthModeBearer + type BaseResponse struct + Metadata ResponseMetadata + Raw map[string]any + func (b *BaseResponse) HTTPMetadata() ResponseMetadata + type CalendarDomain string + const CalendarDomainCommodities + const CalendarDomainCrypto + const CalendarDomainEquities + const CalendarDomainMacro + const CalendarDomainPolitics + const CalendarDomainPredictionMarkets + const CalendarDomainTechnology + type CalendarEventsRequest struct + Asset *AssetRef + Domains []CalendarDomain + EventTypes []EventType + Limit *int + MinImportanceScore *int + Offset *int + StartTimeAfter *time.Time + StartTimeBefore *time.Time + Statuses []EventStatus + Subject *SubjectRef + type CalendarEventsResponse struct + CalendarEvents []CalendarEventsResponseCalendarEvent + type CalendarEventsResponseCalendarEvent struct + CalendarEventID string + ConfidenceScore int + CreatedAt time.Time + Domains []string + EndTime *time.Time + Entities []CalendarEventsResponseCalendarEventEntity + EventMetadata map[string]any + EventSubtype *string + EventType string + ImportanceScore int + Location *string + LongTermImpactScore int + MacroImpactScore int + PriceImpactScore int + ShortTermImpactScore int + SourceCount int + Sources []CalendarEventsResponseCalendarEventSource + StartTime time.Time + Status string + Summary *string + Tags []string + TailRiskImpactScore int + TimePrecision string + Title string + TrustedSourceCount int + UpdatedAt time.Time + type CalendarEventsResponseCalendarEventEntity struct + AssetClass *AssetClass + AssetID *string + Confidence *float64 + EntityID string + IsPrimary bool + Name string + Role string + SubjectID *string + type CalendarEventsResponseCalendarEventEventMetadata struct + type CalendarEventsResponseCalendarEventSource struct + ExternalID string + Provider *PredictionProvider + PublishedAt time.Time + Publisher *string + Source string + Subtype string + Trusted bool + URL *string + type CallReturnsRequest struct + Asset *AssetRef + Clusters []string + ResolvedDays *int + type CallReturnsResponse struct + AverageReturnPct float64 + Buckets []CallReturnsResponseBucket + Losses int64 + MedianReturnPct float64 + ResolvedCalls int64 + ResolvedDays int + WinRatePct float64 + Wins int64 + type CallReturnsResponseBucket struct + CallCount int64 + CappedTotalAlignedReturnPct float64 + Label string + LowerBoundPct *float64 + TotalAlignedReturnPct float64 + UpperBoundPct *float64 + type CallsRequest struct + Asset *AssetRef + Clusters []string + Hours *int + type CallsResponse struct + Series []CallsResponseSeriesPoint + type CallsResponseSeriesPoint struct + LongCalls int64 + ShortCalls int64 + Timestamp string + type ChatCompletionRequest struct + Messages []ChatMessage + Model *string + Stream *bool + ThinkingMode *ThinkingMode + type ChatCompletionResponse struct + Choices []ChatCompletionResponseChoice + Created int64 + ID string + Model string + Object string + Usage *ChatCompletionResponseUsage + type ChatCompletionResponseChoice struct + Delta *ChatCompletionResponseChoiceDelta + FinishReason *string + Index int + Message *ChatCompletionResponseChoiceMessage + type ChatCompletionResponseChoiceDelta struct + Content *string + Role *string + type ChatCompletionResponseChoiceMessage struct + Content string + Role string + type ChatCompletionResponseUsage struct + CreditsUsed int64 + type ChatMessage struct + Content string + Role ChatRole + type ChatRole string + const ChatRoleAssistant + const ChatRoleDeveloper + const ChatRoleSystem + const ChatRoleUser + type ChatStream struct + func (s *ChatStream) Close() error + func (s *ChatStream) Err() error + func (s *ChatStream) Events() <-chan *ChatCompletionResponse + func (s *ChatStream) Metadata() ResponseMetadata + type Client struct + Account *AccountService + Agent *AgentService + Clusters *ClustersService + Discovery *DiscoveryService + Forecasts *ForecastsService + Intelligence *IntelligenceService + Lookup *LookupService + MarketData *MarketDataService + MarketSentiment *MarketSentimentService + Predictions *PredictionsService + Social *SocialService + func New(apiKey string, opts ...Option) (*Client, error) + func NewX402Client(httpClient *http.Client, opts ...Option) (*Client, error) + func (c *Client) X402() bool + type ClusterHypeCyclesRequest struct + AssetClasses []AssetClass + ClusterID string + Days *int + type ClusterHypeCyclesResponse struct + AssetClasses []string + ClusterID string + Clusters []ClusterHypeCyclesResponseCluster + Curve []ClusterHypeCyclesResponseCurveItem + CyclesJoined int + Days int + LeadDays *float64 + type ClusterHypeCyclesResponseCluster struct + ClusterID string + CyclesJoined int + LeadDays float64 + LeadHighDays float64 + LeadLowDays float64 + type ClusterHypeCyclesResponseCurveItem struct + ClusterCumulativePct float64 + DayOffset int + MarketCumulativePct float64 + type ClusterOverlapRequest struct + AssetClasses []AssetClass + ClusterID string + Days *int + type ClusterOverlapResponse struct + AssetClasses []string + ClusterID string + Days int + Peers []ClusterOverlapResponsePeer + TopAssetCount int + type ClusterOverlapResponsePeer struct + AgreeingAssetCount int + ClusterID string + ComparedAssetCount int + DirectionAgreementShare *float64 + OverlapShare float64 + SharedAssets []ClusterOverlapResponsePeerSharedAsset + StanceGap *float64 + type ClusterOverlapResponsePeerSharedAsset struct + AssetClass AssetClass + AssetID string + ClusterStance *float64 + MarketStance *float64 + Name string + PeerStance *float64 + Symbol string + type ClusterProfileRequest struct + AssetClasses []AssetClass + ClusterID string + Days *int + type ClusterProfileResponse struct + ActiveClusters int + AssetClasses []string + ClusterID string + Days int + HypeCycles int + Traits []ClusterProfileResponseTrait + type ClusterProfileResponseTrait struct + PeerValues []float64 + Percentile *float64 + Rank *int + Trait string + Unit string + Value *float64 + type ClusterRotationRequest struct + AssetClasses []AssetClass + ClusterID string + Hours *int + Limit *int + type ClusterRotationResponse struct + AssetClasses []string + ClusterID string + Gainers []ClusterRotationResponseGainer + Hours int + Losers []ClusterRotationResponseGainer + TopicChanges []ClusterRotationResponseTopicChange + TopicSeries []ClusterRotationResponseTopicSeriesPoint + type ClusterRotationResponseGainer struct + AssetClass AssetClass + AssetID string + CurrentShare float64 + Name string + PreviousShare float64 + ShareChangeBps int + Symbol string + type ClusterRotationResponseTopicChange struct + CurrentShare float64 + ShareChangeBps int + Topic string + type ClusterRotationResponseTopicSeriesPoint struct + Timestamp time.Time + Topics []ClusterRotationResponseTopicSeriesPointTopic + type ClusterRotationResponseTopicSeriesPointTopic struct + Topic string + TopicShare float64 + type ClusterStancesRequest struct + AssetClasses []AssetClass + ClusterID string + Days *int + Limit *int + type ClusterStancesResponse struct + AssetClasses []string + Assets []ClusterStancesResponseAsset + ClusterID string + ContrarianShare *float64 + Days int + PeerAverageContrarianShare *float64 + type ClusterStancesResponseAsset struct + AssetClass AssetClass + AssetID string + ClusterPosts int64 + ClusterStance float64 + MarketStance float64 + Name string + Symbol string + type ClustersComparisonRequest struct + AssetClasses []AssetClass + Days *int + type ClustersComparisonResponse struct + AssetClasses []string + Clusters []ClustersComparisonResponseCluster + Days int + type ClustersComparisonResponseCluster struct + ActivityChangePct *float64 + BearishPosts int64 + BullishPosts int64 + ClusterBullishShare *float64 + ClusterID string + MarketBullishShare *float64 + Posts int64 + Series []ClustersComparisonResponseClusterSeriesPoint + TrendingAsset *ClustersComparisonResponseClusterTrendingAsset + type ClustersComparisonResponseClusterSeriesPoint struct + BearishPosts int64 + BullishPosts int64 + Posts int64 + Timestamp time.Time + type ClustersComparisonResponseClusterTrendingAsset struct + AssetClass AssetClass + AssetID string + Name string + Symbol string + type ClustersRequest struct + AssetClass *AssetClass + Hours *int + type ClustersResponse struct + Clusters []ClustersResponseCluster + Hours int + type ClustersResponseCluster struct + ActivityChangePct *float64 + BearishPosts float64 + BullishPosts float64 + ClusterID string + NeutralPosts float64 + PreviousTotalPosts float64 + RecentSentimentSignal float64 + Series []ClustersResponseClusterSeriesPoint + TotalPosts float64 + WindowSentimentSignal float64 + type ClustersResponseClusterSeriesPoint struct + BearishPosts float64 + BullishPosts float64 + SentimentSignal float64 + Timestamp time.Time + TotalPosts float64 + type ClustersService struct + func (s *ClustersService) Comparison(ctx context.Context, req *ClustersComparisonRequest) (*ClustersComparisonResponse, error) + func (s *ClustersService) ComparisonHypeCycles(ctx context.Context, req *ComparisonHypeCyclesRequest) (*ComparisonHypeCyclesResponse, error) + func (s *ClustersService) ComparisonTraits(ctx context.Context, req *ComparisonTraitsRequest) (*ComparisonTraitsResponse, error) + func (s *ClustersService) DivisiveAssets(ctx context.Context, req *DivisiveAssetsRequest) (*DivisiveAssetsResponse, error) + func (s *ClustersService) HypeCycles(ctx context.Context, req *ClusterHypeCyclesRequest) (*ClusterHypeCyclesResponse, error) + func (s *ClustersService) List(ctx context.Context, req *ClustersRequest) (*ClustersResponse, error) + func (s *ClustersService) Overlap(ctx context.Context, req *ClusterOverlapRequest) (*ClusterOverlapResponse, error) + func (s *ClustersService) Profile(ctx context.Context, req *ClusterProfileRequest) (*ClusterProfileResponse, error) + func (s *ClustersService) Rotation(ctx context.Context, req *ClusterRotationRequest) (*ClusterRotationResponse, error) + func (s *ClustersService) Stances(ctx context.Context, req *ClusterStancesRequest) (*ClusterStancesResponse, error) + type ComparisonHypeCyclesRequest struct + AssetClasses []AssetClass + Days *int + Limit *int + type ComparisonHypeCyclesResponse struct + AssetClasses []string + Cycles []ComparisonHypeCyclesResponseCycle + Days int + type ComparisonHypeCyclesResponseCycle struct + Arrivals []ComparisonHypeCyclesResponseCycleArrival + AssetClass AssetClass + AssetID string + Name string + PeakDayPosts int64 + PeakTimestamp time.Time + Series []ComparisonHypeCyclesResponseCycleSeriesPoint + Symbol string + type ComparisonHypeCyclesResponseCycleArrival struct + ClusterID string + OffsetHours float64 + Posts int64 + type ComparisonHypeCyclesResponseCycleSeriesPoint struct + Posts int + Timestamp time.Time + type ComparisonTraitsRequest struct + AssetClasses []AssetClass + Days *int + type ComparisonTraitsResponse struct + ActiveClusters int + AssetClasses []string + Days int + HypeCycles int + Traits []ComparisonTraitsResponseTrait + type ComparisonTraitsResponseTrait struct + Clusters []ComparisonTraitsResponseTraitCluster + Trait string + Unit string + type ComparisonTraitsResponseTraitCluster struct + ClusterID string + Value float64 + type ConvictionIndexRequest struct + Asset *AssetRef + Granularity *Granularity + Hours *int + type ConvictionIndexResponse struct + Series []ConvictionIndexResponseSeriesPoint + type ConvictionIndexResponseSeriesPoint struct + Index float64 + Timestamp time.Time + type DecodeError struct + Err error + Op string + func (e *DecodeError) Error() string + func (e *DecodeError) Unwrap() error + type DiscoveryService struct + func (s *DiscoveryService) Screener(ctx context.Context, req *ScreenerRequest) (*ScreenerResponse, error) + func (s *DiscoveryService) TopMomentum(ctx context.Context, req *TopMomentumRequest) (*ScreenerResponse, error) + func (s *DiscoveryService) TopTrending(ctx context.Context, req *TopTrendingRequest) (*ScreenerResponse, error) + type DivisiveAssetsRequest struct + AssetClasses []AssetClass + Days *int + Limit *int + type DivisiveAssetsResponse struct + AssetClasses []string + Assets []DivisiveAssetsResponseAsset + Days int + type DivisiveAssetsResponseAsset struct + AssetClass AssetClass + AssetID string + BearishClusterCount int + BullishClusterCount int + ClusterStances []DivisiveAssetsResponseAssetClusterStance + MarketStance float64 + MinorityShare float64 + Name string + StanceIqr float64 + Symbol string + type DivisiveAssetsResponseAssetClusterStance struct + ClusterID string + Posts int64 + Stance float64 + type EmotionsRequest struct + Asset *AssetRef + Granularity *Granularity + Hours *int + Subject *SubjectRef + type EmotionsResponse struct + Metadata *EmotionsResponseMetadata + Series map[string][]EmotionsResponseSeriesEntry + type EmotionsResponseMetadata struct + EmptyBucketPolicy string + EmptyBuckets int + Granularity Granularity + Hours int + LatestEmptyBucket *time.Time + type EmotionsResponseSeries struct + type EmotionsResponseSeriesEntry struct + PostCount int64 + Proportion float64 + Timestamp time.Time + type EventStatus string + const EventStatusCancelled + const EventStatusPostponed + const EventStatusScheduled + const EventStatusTentative + type EventType string + const EventTypeAMA + const EventTypeAcquisition + const EventTypeAirdrop + const EventTypeAppointment + const EventTypeBankruptcy + const EventTypeBudget + const EventTypeBurn + const EventTypeBuyback + const EventTypeCentralBankSpeech + const EventTypeClinicalTrial + const EventTypeCompetition + const EventTypeConference + const EventTypeContractExpiry + const EventTypeCorporateAction + const EventTypeCourtRuling + const EventTypeDeadline + const EventTypeDebtAuction + const EventTypeDelisting + const EventTypeDividend + const EventTypeETF + const EventTypeEarnings + const EventTypeEconomicRelease + const EventTypeElection + const EventTypeFilingDeadline + const EventTypeFork + const EventTypeFundraising + const EventTypeGovernance + const EventTypeGuidance + const EventTypeHackathon + const EventTypeHalving + const EventTypeHearing + const EventTypeIPO + const EventTypeIndexRebalance + const EventTypeInvestorDay + const EventTypeLaunch + const EventTypeLayoffs + const EventTypeLegal + const EventTypeListing + const EventTypeMainnet + const EventTypeMarketHoliday + const EventTypeMigration + const EventTypeMonetaryPolicy + const EventTypeOther + const EventTypePartnership + const EventTypePolicyDeadline + const EventTypePredictionMarketResolution + const EventTypePricingChange + const EventTypeReferendum + const EventTypeRegulatoryDeadline + const EventTypeRegulatoryDecision + const EventTypeSanctions + const EventTypeShareholderMeeting + const EventTypeSnapshot + const EventTypeSpinOff + const EventTypeSports + const EventTypeStaking + const EventTypeStockSplit + const EventTypeSummit + const EventTypeTestnet + const EventTypeTokenSale + const EventTypeTradePolicy + const EventTypeTreaty + const EventTypeUnlock + const EventTypeUpgrade + const EventTypeVote + type FearGreedIndexRequest struct + Asset *AssetRef + Granularity *Granularity + Hours *int + type FearGreedIndexResponse struct + Current *FearGreedIndexResponseCurrent + Metadata *FearGreedIndexResponseMetadata + Series []FearGreedIndexResponseSeriesPoint + type FearGreedIndexResponseCurrent struct + Index float64 + Label string + type FearGreedIndexResponseMetadata struct + Components []FearGreedIndexResponseMetadataComponent + Hours int + Labels []string + Scale string + type FearGreedIndexResponseMetadataComponent struct + Description string + Name string + Weight float64 + type FearGreedIndexResponseSeriesPoint struct + Index float64 + Label string + Timestamp time.Time + type ForecastAssetsRequest struct + AssetClass *AssetClass + Limit *int + Offset *int + type ForecastAssetsResponse struct + Assets []ForecastAssetsResponseAsset + HasMore bool + Limit int + Offset int + Total int + type ForecastAssetsResponseAsset struct + AsOf time.Time + AssetClass AssetClass + AssetID string + Name string + Symbol string + type ForecastReason string + const ForecastReasonMissingPrice + const ForecastReasonStaleData + const ForecastReasonTooLittleHistory + type ForecastStatus string + const ForecastStatusNotForecastable + const ForecastStatusOK + type ForecastsService struct + func (s *ForecastsService) ListAssets(ctx context.Context, req *ForecastAssetsRequest) (*ForecastAssetsResponse, error) + func (s *ForecastsService) Mindshare(ctx context.Context, req *MindshareForecastRequest) (*MindshareForecastResponse, error) + func (s *ForecastsService) Sentiment(ctx context.Context, req *SentimentForecastRequest) (*SentimentForecastResponse, error) + type Granularity string + const Granularity12h + const Granularity1d + const Granularity1h + const Granularity2h + const Granularity4h + func GranularityPtr(v Granularity) *Granularity + type InsightAttentionRequest struct + InsightID int + type InsightAttentionResponse struct + Attention *InsightAttentionResponseAttention + InsightID int64 + PriceReactions []InsightAttentionResponsePriceReaction + type InsightAttentionResponseAttention struct + AnchorSubjectID string + Authors int64 + AverageSentimentScore float64 + BearishPosts int64 + BucketHours int + Buckets []InsightAttentionResponseAttentionBucket + BullishPosts int64 + ClusterMix []InsightAttentionResponseAttentionClusterMixItem + Clusters int64 + From time.Time + Impact *InsightAttentionResponseAttentionImpact + LastPostAt *time.Time + NeutralPosts int64 + OptionalSubjects []string + Posts int64 + RequiredSubjects []string + SubjectsUsed []string + To time.Time + WindowKind string + type InsightAttentionResponseAttentionBucket struct + Authors int64 + AverageSentimentScore float64 + BearishPosts int64 + BullishPosts int64 + NeutralPosts int64 + Posts int64 + Timestamp time.Time + type InsightAttentionResponseAttentionClusterMixItem struct + Authors int64 + ClusterID string + Posts *int64 + Share float64 + type InsightAttentionResponseAttentionImpact struct + MaxScore int + SentimentScore int + Vectors []InsightAttentionResponseAttentionImpactVector + type InsightAttentionResponseAttentionImpactVector struct + Key string + Label string + Score int + type InsightAttentionResponsePriceReaction struct + InsightAt time.Time + InsightID int64 + LivePct *float64 + Moves []InsightAttentionResponsePriceReactionMove + Series []InsightAttentionResponsePriceReactionSeriesPoint + SubjectID string + type InsightAttentionResponsePriceReactionMove struct + ChangePct float64 + Hours int + type InsightAttentionResponsePriceReactionSeriesPoint struct + ChangePct float64 + Timestamp time.Time + type InsightDomain string + const InsightDomainCommodities + const InsightDomainCrypto + const InsightDomainEquities + const InsightDomainMacro + const InsightDomainPolitics + const InsightDomainPredictionMarkets + const InsightDomainSports + const InsightDomainTechnology + type InsightOrderBy string + const InsightOrderByCreatedAtAsc + const InsightOrderByCreatedAtDesc + const InsightOrderByImportanceScoreAsc + const InsightOrderByImportanceScoreDesc + const InsightOrderByStartTimeAsc + const InsightOrderByStartTimeDesc + const InsightOrderByUpdatedAtAsc + const InsightOrderByUpdatedAtDesc + func InsightOrderByPtr(v InsightOrderBy) *InsightOrderBy + type InsightsRequest struct + Asset *AssetRef + Categories []string + Domains []InsightDomain + ExcludeTags []string + Limit *int + Offset *int + OrderBy *InsightOrderBy + StartTimeAfter *time.Time + StartTimeBefore *time.Time + Subject *SubjectRef + Tags []string + type InsightsResponse struct + Insights []InsightsResponseInsight + type InsightsResponseInsight struct + Category *string + Domains []string + Entities []InsightsResponseInsightEntity + Headline string + ImportanceScore int + InsightID int64 + SentimentScore int + StartTime *time.Time + Summary string + Tags []string + UpdatedAt *time.Time + type InsightsResponseInsightEntity struct + AssetClass *AssetClass + AssetID *string + EntityID string + EntityTypes []string + IsDirect bool + IsPrimary bool + Name string + Role string + SubjectID *string + type IntelligenceService struct + func (s *IntelligenceService) CalendarEvents(ctx context.Context, req *CalendarEventsRequest) (*CalendarEventsResponse, error) + func (s *IntelligenceService) InsightAttention(ctx context.Context, req *InsightAttentionRequest) (*InsightAttentionResponse, error) + func (s *IntelligenceService) Insights(ctx context.Context, req *InsightsRequest) (*InsightsResponse, error) + type Kind string + const KindAsset + const KindSubject + func KindPtr(v Kind) *Kind + type ListAssetsRequest struct + Asset *AssetRef + AssetClass *AssetClass + Limit *int + Offset *int + Query *string + type ListAssetsResponse struct + Assets []ListAssetsResponseAsset + HasMore bool + Limit int + Offset int + type ListAssetsResponseAsset struct + AssetClass AssetClass + AssetID string + Handle *string + MarketCapUSD *float64 + Name string + PriceChange24hPct *float64 + PriceUSD *float64 + Symbol string + type ListSubjectsRequest struct + Limit *int + Offset *int + Query *string + Subject *SubjectRef + type ListSubjectsResponse struct + HasMore bool + Limit int + Offset int + Subjects []ListSubjectsResponseSubject + type ListSubjectsResponseSubject struct + Name string + SubjectID string + type Locale string + const LocaleChinese + const LocaleItalian + const LocaleJapanese + const LocaleKorean + const LocaleRussian + const LocaleSpanish + const LocaleTurkish + type LocaleMode string + const LocaleModeHeader + const LocaleModeQuery + type Logger interface + Printf func(format string, args ...any) + type LoggerFunc func(format string, args ...any) + func (f LoggerFunc) Printf(format string, args ...any) + type LookupService struct + func (s *LookupService) ListAssets(ctx context.Context, req *ListAssetsRequest) (*ListAssetsResponse, error) + func (s *LookupService) ListSubjects(ctx context.Context, req *ListSubjectsRequest) (*ListSubjectsResponse, error) + func (s *LookupService) Search(ctx context.Context, req *SearchRequest) (*SearchResponse, error) + type MarketDataService struct + func (s *MarketDataService) PriceHistory(ctx context.Context, req *PriceHistoryRequest) (*PriceHistoryResponse, error) + type MarketSentimentService struct + func (s *MarketSentimentService) CallReturns(ctx context.Context, req *CallReturnsRequest) (*CallReturnsResponse, error) + func (s *MarketSentimentService) Calls(ctx context.Context, req *CallsRequest) (*CallsResponse, error) + func (s *MarketSentimentService) ConvictionIndex(ctx context.Context, req *ConvictionIndexRequest) (*ConvictionIndexResponse, error) + func (s *MarketSentimentService) FearGreedIndex(ctx context.Context, req *FearGreedIndexRequest) (*FearGreedIndexResponse, error) + func (s *MarketSentimentService) PriceLevels(ctx context.Context, req *PriceLevelsRequest) (*PriceLevelsResponse, error) + func (s *MarketSentimentService) SocialVolumeIndex(ctx context.Context, req *SocialVolumeIndexRequest) (*SocialVolumeIndexResponse, error) + func (s *MarketSentimentService) SocialVolumeProfile(ctx context.Context, req *SocialVolumeProfileRequest) (*SocialVolumeProfileResponse, error) + type MindshareForecastRequest struct + Asset *AssetRef + Refresh *bool + type MindshareForecastResponse struct + AsOf *time.Time + ChanceHigher72h *float64 + CurrentShare *float64 + HorizonHours int + LikelyHighShare *float64 + LikelyLowShare *float64 + Reason *ForecastReason + Refreshed bool + SamplePaths [][]float64 + Series []MindshareForecastResponseSeriesPoint + Status ForecastStatus + TakeoffChance72h *float64 + func (r *MindshareForecastResponse) IsForecastable() bool + type MindshareForecastResponseSeriesPoint struct + MeanShare float64 + P10Share float64 + P25Share float64 + P50Share float64 + P75Share float64 + P90Share float64 + QuantileShares []float64 + Timestamp time.Time + type MindshareRequest struct + Asset *AssetRef + Clusters []string + Granularity *Granularity + Hours *int + Subject *SubjectRef + type MindshareResponse struct + Series []MindshareResponseSeriesPoint + type MindshareResponseSeriesPoint struct + Share float64 + Timestamp time.Time + type Option func(*config) error + func WithAuthMode(m AuthMode) Option + func WithBaseURL(u string) Option + func WithHTTPClient(hc *http.Client) Option + func WithLocale(l Locale) Option + func WithLocaleMode(m LocaleMode) Option + func WithLogger(l Logger) Option + func WithRetry(maxAttempts int, base, max time.Duration) Option + func WithRetryPolicy(p RetryPolicy) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type PaymentUncertainError struct + Err error + Metadata ResponseMetadata + Op string + URL string + func (e *PaymentUncertainError) Error() string + func (e *PaymentUncertainError) Is(target error) bool + func (e *PaymentUncertainError) Unwrap() error + type PredictionHistoryRequest struct + Hours *int + ListingID string + OutcomeID string + type PredictionHistoryResponse struct + ListingID string + OutcomeID string + Points []PredictionHistoryResponsePoint + Series []PredictionHistoryResponseSeriesPoint + type PredictionHistoryResponsePoint struct + Price float64 + PriceBasis string + Time time.Time + type PredictionHistoryResponseSeriesPoint struct + Price float64 + PriceBasis string + Timestamp time.Time + type PredictionMarketRequest struct + MarketID string + type PredictionMarketResponse struct + Entities []PredictionMarketResponseEntity + ID string + Listings []PredictionMarketResponseListing + Question string + Subjects []PredictionMarketResponseSubject + type PredictionMarketResponseEntity struct + AssetClass *AssetClass + AssetID *string + Name string + SubjectID *string + type PredictionMarketResponseListing struct + ClosesAt *time.Time + EventID string + ID string + LiquidityUSD *float64 + MarketID string + ObservedAt time.Time + OpenInterest *float64 + OpensAt *time.Time + Outcomes []PredictionMarketResponseListingOutcome + Provider PredictionProvider + ProviderID string + ProviderUpdatedAt *time.Time + Question string + ResolutionSource string + ResolvesAt *time.Time + Result string + Revision string + Rules string + SourceURL string + Status string + Volume *float64 + Volume24h *float64 + VolumeUnit string + type PredictionMarketResponseListingOutcome struct + Ask *float64 + Bid *float64 + ID string + Label string + LastTrade *float64 + Midpoint *float64 + Position int + Price *float64 + PriceBasis string + ProviderPrice *float64 + type PredictionMarketResponseSubject struct + FallbackImageUrls []string + ImageURL string + Name string + Role string + Status string + SubjectID string + Types []string + type PredictionProvider string + const PredictionProviderKalshi + const PredictionProviderPolymarket + func PredictionProviderPtr(v PredictionProvider) *PredictionProvider + type PredictionStatus string + const PredictionStatusAll + const PredictionStatusClosed + const PredictionStatusDisputed + const PredictionStatusOpen + const PredictionStatusResolved + func PredictionStatusPtr(v PredictionStatus) *PredictionStatus + type PredictionsRequest struct + Asset *AssetRef + AssetClass *AssetClass + Limit *int + Offset *int + Provider *PredictionProvider + Query *string + Status *PredictionStatus + Subject *SubjectRef + type PredictionsResponse struct + HasMore bool + Limit int + Markets []PredictionMarketResponse + Offset int + type PredictionsService struct + func (s *PredictionsService) History(ctx context.Context, req *PredictionHistoryRequest) (*PredictionHistoryResponse, error) + func (s *PredictionsService) ListMarkets(ctx context.Context, req *PredictionsRequest) (*PredictionsResponse, error) + func (s *PredictionsService) Market(ctx context.Context, req *PredictionMarketRequest) (*PredictionMarketResponse, error) + type PriceHistoryRequest struct + Asset *AssetRef + Granularity *Granularity + Hours *int + type PriceHistoryResponse struct + Series []PriceHistoryResponseSeriesPoint + type PriceHistoryResponseSeriesPoint struct + HighUSD *float64 + LowUSD *float64 + PriceUSD *float64 + Timestamp time.Time + type PriceLevelsRequest struct + Asset *AssetRef + Hours *int + type PriceLevelsResponse struct + Levels []PriceLevelsResponseLevel + type PriceLevelsResponseLevel struct + Mentions int + PriceUSD float64 + Timestamp time.Time + type RelatedSubjectsRequest struct + Asset *AssetRef + Hours *int + Limit *int + Subject *SubjectRef + type RelatedSubjectsResponse struct + Authors int64 + AverageSentimentScore float64 + From time.Time + Hours int + Posts int64 + Subjects []RelatedSubjectsResponseSubject + To time.Time + type RelatedSubjectsResponseSubject struct + Authors int64 + BearishPosts int64 + BullishPosts int64 + FirstPostAt *time.Time + LastPostAt *time.Time + Name string + NeutralPosts int64 + Posts int64 + PostsDelta float64 + PostsPrior int64 + PostsRecent int64 + SentimentDelta float64 + SentimentScore float64 + Share float64 + SubjectID string + type ResponseMetadata struct + CreditsCharged *int64 + CreditsRemaining *int64 + Headers http.Header + PaymentReceipt []byte + RateLimitLimit *int + RateLimitRemaining *int + RateLimitReset *int + RequestID string + RetryAfterSeconds *int + StatusCode int + type RetryPolicy struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + type ScreenerRequest struct + AssetClass *AssetClass + Clusters []string + Kind *Kind + Limit *int + MaxNetBullishPosts *int + MaxPriceChange24hPct *float64 + MaxShare *float64 + MaxShareChange *float64 + MinNetBullishPosts *int + MinPosts *int + MinPriceChange24hPct *float64 + MinShare *float64 + MinShareChange *float64 + Order *SortOrder + Sort *ScreenerSort + type ScreenerResponse struct + AssetClass *AssetClass + Clusters []string + From time.Time + Kind Kind + PreviousTotalPosts int64 + Results []ScreenerResponseResult + To time.Time + TotalPosts int64 + type ScreenerResponseResult struct + AssetClass *AssetClass + AssetID *string + BearishPosts int64 + BullishPosts int64 + Kind Kind + Name string + NeutralPosts int64 + Posts int64 + PreviousPosts int64 + PriceChange24hPct *float64 + Share float64 + ShareChange *float64 + ShareChangePct *float64 + SubjectID *string + Symbol *string + type ScreenerSort string + const ScreenerSortNetBullishPosts + const ScreenerSortPosts + const ScreenerSortPriceChange24hPct + const ScreenerSortShare + const ScreenerSortShareChange + const ScreenerSortShareChangePct + func ScreenerSortPtr(v ScreenerSort) *ScreenerSort + type SearchRequest struct + Kind *Kind + Limit *int + Query string + type SearchResponse struct + Query string + Results []SearchResponseResult + type SearchResponseResult struct + AssetClass *AssetClass + AssetID *string + Kind Kind + MatchedAlias *string + Name string + SubjectID *string + Symbol *string + type SentimentForecastRequest struct + Asset *AssetRef + Refresh *bool + type SentimentForecastResponse struct + AsOf *time.Time + ChanceHigher24h *float64 + ChanceHigher24hConfident *bool + ChanceHigher72h *float64 + ChanceHigher72hConfident *bool + CurrentSentimentSignal *float64 + HorizonHours int + Reason *ForecastReason + Refreshed bool + SamplePaths [][]float64 + Series []SentimentForecastResponseSeriesPoint + Status ForecastStatus + Turning *int + func (r *SentimentForecastResponse) IsForecastable() bool + type SentimentForecastResponseSeriesPoint struct + BearishPosts *SentimentForecastResponseSeriesPointBearishPosts + BullishPosts *SentimentForecastResponseSeriesPointBearishPosts + NeutralPosts *SentimentForecastResponseSeriesPointBearishPosts + SentimentSignal *SentimentForecastResponseSeriesPointSentimentSignal + Timestamp time.Time + TotalPosts *SentimentForecastResponseSeriesPointBearishPosts + type SentimentForecastResponseSeriesPointBearishPosts struct + Mean float64 + P10 float64 + P25 float64 + P50 float64 + P75 float64 + P90 float64 + type SentimentForecastResponseSeriesPointSentimentSignal struct + Mean float64 + P10 float64 + P50 float64 + P90 float64 + Quantiles []float64 + type SentimentRequest struct + Asset *AssetRef + AssetClass *AssetClass + Clusters []string + Granularity *Granularity + Hours *int + Subject *SubjectRef + type SentimentResponse struct + Cohorts map[string][]SentimentResponseCohortsEntry + Series []SentimentResponseCohortsEntry + type SentimentResponseCohorts struct + type SentimentResponseCohortsEntry struct + BearishPosts float64 + BullishPosts float64 + IntervalBearishPosts *float64 + IntervalBullishPosts *float64 + IntervalNeutralPosts *float64 + IntervalPosts *float64 + NeutralPosts float64 + SentimentSignal float64 + Timestamp time.Time + TotalPosts float64 + type SentimentTimeframesRequest struct + Asset *AssetRef + Granularity *Granularity + Hours *int + Subject *SubjectRef + type SentimentTimeframesResponse struct + Current map[string]float64 + Metadata *SentimentTimeframesResponseMetadata + Series map[string][]SentimentTimeframesResponseSeriesEntry + type SentimentTimeframesResponseCurrent struct + type SentimentTimeframesResponseMetadata struct + AsOf *time.Time + Calculation *string + Formula *string + HalfLifeHours *float64 + LookbackDays *int + Scale *string + type SentimentTimeframesResponseSeries struct + type SentimentTimeframesResponseSeriesEntry struct + IntervalPosts *float64 + SentimentSignal float64 + Timestamp time.Time + TotalPosts *float64 + type SocialMomentumRequest struct + Asset *AssetRef + AssetClass *AssetClass + Clusters []string + Granularity *Granularity + Hours *int + Subject *SubjectRef + type SocialMomentumResponse struct + Clusters map[string][]SocialMomentumResponseClustersEntry + type SocialMomentumResponseClusters struct + type SocialMomentumResponseClustersEntry struct + AverageSentimentScore float64 + BearishPosts int64 + BullishPosts int64 + NeutralPosts int64 + Timestamp time.Time + TotalPosts int64 + UniquePosters int64 + type SocialService struct + func (s *SocialService) Emotions(ctx context.Context, req *EmotionsRequest) (*EmotionsResponse, error) + func (s *SocialService) Mindshare(ctx context.Context, req *MindshareRequest) (*MindshareResponse, error) + func (s *SocialService) RelatedSubjects(ctx context.Context, req *RelatedSubjectsRequest) (*RelatedSubjectsResponse, error) + func (s *SocialService) Sentiment(ctx context.Context, req *SentimentRequest) (*SentimentResponse, error) + func (s *SocialService) SentimentTimeframes(ctx context.Context, req *SentimentTimeframesRequest) (*SentimentTimeframesResponse, error) + func (s *SocialService) SocialMomentum(ctx context.Context, req *SocialMomentumRequest) (*SocialMomentumResponse, error) + type SocialVolumeIndexRequest struct + Asset *AssetRef + Hours *int + type SocialVolumeIndexResponse struct + Series []SocialVolumeIndexResponseSeriesPoint + type SocialVolumeIndexResponseSeriesPoint struct + Posts float64 + SocialRelative float64 + Timestamp time.Time + TradingRelative float64 + VolumeIndex float64 + VolumeUSD float64 + type SocialVolumeProfileRequest struct + Asset *AssetRef + Bins *int + Clusters []string + Hours *int + type SocialVolumeProfileResponse struct + Bins []SocialVolumeProfileResponseBin + MaximumPostsInBin float64 + MaximumPriceUSD float64 + Metadata *SocialVolumeProfileResponseMetadata + MinimumPriceUSD float64 + PointOfControlBinIndex *int + TotalPosts float64 + type SocialVolumeProfileResponseBin struct + BalanceScore float64 + BearishPosts float64 + BearishShare float64 + BullishPosts float64 + BullishShare float64 + CompressionScore float64 + DirectionalImbalance *float64 + IsPointOfControl bool + NeutralPosts float64 + PriceHighUSD float64 + PriceLowUSD float64 + PriceMidUSD float64 + SignificanceScore float64 + TotalPosts float64 + TotalShare float64 + VisitCount int + type SocialVolumeProfileResponseMetadata struct + AsOf *time.Time + BinCount int + Clusters []string + Hours int + PricedBuckets int + UnpricedBuckets int + type SortOrder string + const SortOrderAsc + const SortOrderDesc + func SortOrderPtr(v SortOrder) *SortOrder + type StreamError struct + Err error + Op string + func (e *StreamError) Error() string + func (e *StreamError) Unwrap() error + type SubjectRef struct + ID string + type ThinkingMode string + const ThinkingModeAuto + const ThinkingModeDeep + func ThinkingModePtr(v ThinkingMode) *ThinkingMode + type TopMomentumRequest struct + AssetClass *AssetClass + Clusters []string + Kind *Kind + Limit *int + type TopTrendingRequest struct + AssetClass *AssetClass + Clusters []string + Kind *Kind + Limit *int + type TransportError struct + Err error + Op string + func (e *TransportError) Error() string + func (e *TransportError) Is(target error) bool + func (e *TransportError) Unwrap() error + type ValidationError struct + Field string + Msg string + Op string + func (e *ValidationError) Error() string + func (e *ValidationError) Is(target error) bool