sentisense 0.58.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/cli.cjs +15 -8
- package/dist/index.cjs +15 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +79 -5
- package/dist/index.d.ts +79 -5
- package/dist/index.mjs +15 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -563,6 +563,8 @@ interface OptionsAggregate {
|
|
|
563
563
|
netDelta?: number;
|
|
564
564
|
notionalVol?: number;
|
|
565
565
|
contracts?: number;
|
|
566
|
+
/** Largest unusual-contract premium this session; zero when none qualified. */
|
|
567
|
+
maxUnusualPremium?: number;
|
|
566
568
|
}
|
|
567
569
|
/**
|
|
568
570
|
* Percentile context for {@link OptionsAggregate}, against that ticker's own trailing
|
|
@@ -578,6 +580,8 @@ interface OptionsContext {
|
|
|
578
580
|
/** Where today's at-the-money implied volatility sits in its own trailing year. */
|
|
579
581
|
ivRank1y?: number;
|
|
580
582
|
skewPctl1y?: number;
|
|
583
|
+
/** Percentile of this session's largest unusual premium within its trailing year, 0-100. */
|
|
584
|
+
unusualPremiumPctl1y?: number;
|
|
581
585
|
observations1y?: number;
|
|
582
586
|
}
|
|
583
587
|
/** One open-interest concentration at a strike. */
|
|
@@ -606,6 +610,15 @@ interface OptionsUnusualContract {
|
|
|
606
610
|
oi?: number;
|
|
607
611
|
volOiRatio?: number;
|
|
608
612
|
premium?: number;
|
|
613
|
+
oiPrior?: number;
|
|
614
|
+
oiNext?: number;
|
|
615
|
+
oiChange?: number;
|
|
616
|
+
/** Net open-interest change: opened, closed, mixed, pending, or unmatched. */
|
|
617
|
+
oiConfirmation?: "opened" | "closed" | "mixed" | "pending" | "unmatched";
|
|
618
|
+
/** Open-interest observation time in UTC epoch seconds. */
|
|
619
|
+
oiObservedAt?: number;
|
|
620
|
+
/** Which chain supplied the observed open interest. */
|
|
621
|
+
oiVintage?: "prior_settle" | "settled" | "next_session";
|
|
609
622
|
}
|
|
610
623
|
/**
|
|
611
624
|
* The options dossier for one stock or ETF, from `client.stocks.getOptionsSummary()`.
|
|
@@ -734,6 +747,34 @@ interface OptionsOverviewRow {
|
|
|
734
747
|
/** That wall's share of its own side's open interest, 0 to 1. */
|
|
735
748
|
wallShare?: number;
|
|
736
749
|
}
|
|
750
|
+
/** One ticker's highest-premium unusual contract in the completed session. */
|
|
751
|
+
interface OptionsHighlight {
|
|
752
|
+
ticker?: string;
|
|
753
|
+
contract?: string;
|
|
754
|
+
type?: string;
|
|
755
|
+
strike?: number;
|
|
756
|
+
expiry?: string;
|
|
757
|
+
dte?: number;
|
|
758
|
+
volume?: number;
|
|
759
|
+
oi?: number;
|
|
760
|
+
volOiRatio?: number;
|
|
761
|
+
premium?: number;
|
|
762
|
+
/** Percentile against this ticker's trailing-year largest daily unusual premiums, 0-100. */
|
|
763
|
+
premiumPctl1y?: number;
|
|
764
|
+
oiPrior?: number;
|
|
765
|
+
oiNext?: number;
|
|
766
|
+
oiChange?: number;
|
|
767
|
+
oiConfirmation?: OptionsUnusualContract["oiConfirmation"];
|
|
768
|
+
/** Open-interest observation time in UTC epoch seconds. */
|
|
769
|
+
oiObservedAt?: number;
|
|
770
|
+
oiVintage?: OptionsUnusualContract["oiVintage"];
|
|
771
|
+
/** Completed session, ISO calendar day. */
|
|
772
|
+
asOf?: string;
|
|
773
|
+
/** UTC ISO timestamp when the build published this highlight. */
|
|
774
|
+
publishedAt?: string;
|
|
775
|
+
/** `completed` for an end-of-day session. */
|
|
776
|
+
session?: string;
|
|
777
|
+
}
|
|
737
778
|
/**
|
|
738
779
|
* The market-wide options radar, from `client.options.getOverview()`.
|
|
739
780
|
*
|
|
@@ -765,6 +806,10 @@ interface OptionsOverview {
|
|
|
765
806
|
rows?: OptionsOverviewRow[];
|
|
766
807
|
/** The ETF board, ranked independently. Omitted entirely when a build has no ETF rows. */
|
|
767
808
|
etfRows?: OptionsOverviewRow[];
|
|
809
|
+
/** Stock session highlights, up to 3 for FREE keys and 10 for PRO. Omitted when empty. */
|
|
810
|
+
highlights?: OptionsHighlight[];
|
|
811
|
+
/** ETF session highlights, up to 3 for FREE keys and 10 for PRO. Omitted when empty. */
|
|
812
|
+
etfHighlights?: OptionsHighlight[];
|
|
768
813
|
/** Median `ivRank1y` across the ETF board. */
|
|
769
814
|
etfMedianIvRank?: number;
|
|
770
815
|
/** Median put/call volume ratio across the ETF board. */
|
|
@@ -1983,11 +2028,28 @@ interface ServingMetric {
|
|
|
1983
2028
|
}
|
|
1984
2029
|
/** Distribution data returned by the v2 distribution endpoint. */
|
|
1985
2030
|
interface MetricDistribution {
|
|
2031
|
+
/** The metric queried. */
|
|
2032
|
+
metricType?: string;
|
|
2033
|
+
/** The dimension the metric is broken down by, e.g. "source". */
|
|
2034
|
+
dimension?: string;
|
|
2035
|
+
/** Dimension value to a number whose meaning `valueType` gives. Empty when there is no data. */
|
|
2036
|
+
distribution?: Record<string, number>;
|
|
2037
|
+
/**
|
|
2038
|
+
* `"SHARE_PERCENT"` for a count metric (mentions, creators): each value is a percentage share
|
|
2039
|
+
* of the total, summing to about 100. `"MEAN"` for a value metric (sentiment): each value is
|
|
2040
|
+
* the mean reading on the metric's own scale, never a share.
|
|
2041
|
+
*/
|
|
2042
|
+
valueType?: "SHARE_PERCENT" | "MEAN";
|
|
1986
2043
|
[key: string]: unknown;
|
|
1987
2044
|
}
|
|
1988
2045
|
interface MarketMood {
|
|
1989
2046
|
[key: string]: unknown;
|
|
1990
2047
|
}
|
|
2048
|
+
/** Options for `MarketMoodResource.get()`. */
|
|
2049
|
+
interface MarketMoodOptions {
|
|
2050
|
+
/** Days of history to return. Omit to get the API's default of 180. */
|
|
2051
|
+
days?: number;
|
|
2052
|
+
}
|
|
1991
2053
|
/** AI-generated market summary with headline and analysis. */
|
|
1992
2054
|
interface MarketSummary {
|
|
1993
2055
|
/** Not populated by the API (always empty); retained for backward compatibility. */
|
|
@@ -3221,10 +3283,16 @@ declare class EntityMetrics {
|
|
|
3221
3283
|
*/
|
|
3222
3284
|
getMetrics(symbol: string, options?: MetricsOptions): Promise<ServingMetric[]>;
|
|
3223
3285
|
/**
|
|
3224
|
-
* Get
|
|
3286
|
+
* Get a metric broken down by dimension (default dimension: source).
|
|
3287
|
+
*
|
|
3288
|
+
* `valueType` on the response says what each number in `distribution` is. For a count metric
|
|
3289
|
+
* such as `"mentions"` it is `"SHARE_PERCENT"`: each source's percentage share of the total,
|
|
3290
|
+
* summing to about 100. For `"sentiment"` it is `"MEAN"`: each source's mean polarity over the
|
|
3291
|
+
* window, in [-1, 1]. `"sentisense_score"` has no per-source split and answers with an empty
|
|
3292
|
+
* distribution.
|
|
3225
3293
|
*
|
|
3226
3294
|
* @param symbol Ticker symbol (e.g. "AAPL") or entity urlSlug.
|
|
3227
|
-
* @param metricType The metric to break down (e.g. "mentions"
|
|
3295
|
+
* @param metricType The metric to break down (e.g. "mentions" or "sentiment").
|
|
3228
3296
|
* @param options Optional dimension parameter.
|
|
3229
3297
|
*/
|
|
3230
3298
|
getDistribution(symbol: string, metricType: MetricType, options?: MetricDistributionOptions): Promise<MetricDistribution>;
|
|
@@ -3683,7 +3751,13 @@ declare class KB {
|
|
|
3683
3751
|
declare class MarketMoodResource {
|
|
3684
3752
|
private client;
|
|
3685
3753
|
constructor(client: APIClient);
|
|
3686
|
-
/**
|
|
3754
|
+
/**
|
|
3755
|
+
* Get market mood data (scores, history, sectors).
|
|
3756
|
+
*
|
|
3757
|
+
* @param options `days` sets how many days of history to return. Omit it to get the
|
|
3758
|
+
* API's default of 180.
|
|
3759
|
+
*/
|
|
3760
|
+
get(options?: MarketMoodOptions): Promise<MarketMood>;
|
|
3687
3761
|
get(): Promise<MarketMood>;
|
|
3688
3762
|
}
|
|
3689
3763
|
|
|
@@ -4203,6 +4277,6 @@ declare class APIError extends SentiSenseError {
|
|
|
4203
4277
|
constructor(message: string, status: number, code?: string);
|
|
4204
4278
|
}
|
|
4205
4279
|
|
|
4206
|
-
declare const VERSION = "0.
|
|
4280
|
+
declare const VERSION = "0.60.0";
|
|
4207
4281
|
|
|
4208
|
-
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, type SearchStoriesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
|
4282
|
+
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketMoodOptions, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHighlight, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, type SearchStoriesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -563,6 +563,8 @@ interface OptionsAggregate {
|
|
|
563
563
|
netDelta?: number;
|
|
564
564
|
notionalVol?: number;
|
|
565
565
|
contracts?: number;
|
|
566
|
+
/** Largest unusual-contract premium this session; zero when none qualified. */
|
|
567
|
+
maxUnusualPremium?: number;
|
|
566
568
|
}
|
|
567
569
|
/**
|
|
568
570
|
* Percentile context for {@link OptionsAggregate}, against that ticker's own trailing
|
|
@@ -578,6 +580,8 @@ interface OptionsContext {
|
|
|
578
580
|
/** Where today's at-the-money implied volatility sits in its own trailing year. */
|
|
579
581
|
ivRank1y?: number;
|
|
580
582
|
skewPctl1y?: number;
|
|
583
|
+
/** Percentile of this session's largest unusual premium within its trailing year, 0-100. */
|
|
584
|
+
unusualPremiumPctl1y?: number;
|
|
581
585
|
observations1y?: number;
|
|
582
586
|
}
|
|
583
587
|
/** One open-interest concentration at a strike. */
|
|
@@ -606,6 +610,15 @@ interface OptionsUnusualContract {
|
|
|
606
610
|
oi?: number;
|
|
607
611
|
volOiRatio?: number;
|
|
608
612
|
premium?: number;
|
|
613
|
+
oiPrior?: number;
|
|
614
|
+
oiNext?: number;
|
|
615
|
+
oiChange?: number;
|
|
616
|
+
/** Net open-interest change: opened, closed, mixed, pending, or unmatched. */
|
|
617
|
+
oiConfirmation?: "opened" | "closed" | "mixed" | "pending" | "unmatched";
|
|
618
|
+
/** Open-interest observation time in UTC epoch seconds. */
|
|
619
|
+
oiObservedAt?: number;
|
|
620
|
+
/** Which chain supplied the observed open interest. */
|
|
621
|
+
oiVintage?: "prior_settle" | "settled" | "next_session";
|
|
609
622
|
}
|
|
610
623
|
/**
|
|
611
624
|
* The options dossier for one stock or ETF, from `client.stocks.getOptionsSummary()`.
|
|
@@ -734,6 +747,34 @@ interface OptionsOverviewRow {
|
|
|
734
747
|
/** That wall's share of its own side's open interest, 0 to 1. */
|
|
735
748
|
wallShare?: number;
|
|
736
749
|
}
|
|
750
|
+
/** One ticker's highest-premium unusual contract in the completed session. */
|
|
751
|
+
interface OptionsHighlight {
|
|
752
|
+
ticker?: string;
|
|
753
|
+
contract?: string;
|
|
754
|
+
type?: string;
|
|
755
|
+
strike?: number;
|
|
756
|
+
expiry?: string;
|
|
757
|
+
dte?: number;
|
|
758
|
+
volume?: number;
|
|
759
|
+
oi?: number;
|
|
760
|
+
volOiRatio?: number;
|
|
761
|
+
premium?: number;
|
|
762
|
+
/** Percentile against this ticker's trailing-year largest daily unusual premiums, 0-100. */
|
|
763
|
+
premiumPctl1y?: number;
|
|
764
|
+
oiPrior?: number;
|
|
765
|
+
oiNext?: number;
|
|
766
|
+
oiChange?: number;
|
|
767
|
+
oiConfirmation?: OptionsUnusualContract["oiConfirmation"];
|
|
768
|
+
/** Open-interest observation time in UTC epoch seconds. */
|
|
769
|
+
oiObservedAt?: number;
|
|
770
|
+
oiVintage?: OptionsUnusualContract["oiVintage"];
|
|
771
|
+
/** Completed session, ISO calendar day. */
|
|
772
|
+
asOf?: string;
|
|
773
|
+
/** UTC ISO timestamp when the build published this highlight. */
|
|
774
|
+
publishedAt?: string;
|
|
775
|
+
/** `completed` for an end-of-day session. */
|
|
776
|
+
session?: string;
|
|
777
|
+
}
|
|
737
778
|
/**
|
|
738
779
|
* The market-wide options radar, from `client.options.getOverview()`.
|
|
739
780
|
*
|
|
@@ -765,6 +806,10 @@ interface OptionsOverview {
|
|
|
765
806
|
rows?: OptionsOverviewRow[];
|
|
766
807
|
/** The ETF board, ranked independently. Omitted entirely when a build has no ETF rows. */
|
|
767
808
|
etfRows?: OptionsOverviewRow[];
|
|
809
|
+
/** Stock session highlights, up to 3 for FREE keys and 10 for PRO. Omitted when empty. */
|
|
810
|
+
highlights?: OptionsHighlight[];
|
|
811
|
+
/** ETF session highlights, up to 3 for FREE keys and 10 for PRO. Omitted when empty. */
|
|
812
|
+
etfHighlights?: OptionsHighlight[];
|
|
768
813
|
/** Median `ivRank1y` across the ETF board. */
|
|
769
814
|
etfMedianIvRank?: number;
|
|
770
815
|
/** Median put/call volume ratio across the ETF board. */
|
|
@@ -1983,11 +2028,28 @@ interface ServingMetric {
|
|
|
1983
2028
|
}
|
|
1984
2029
|
/** Distribution data returned by the v2 distribution endpoint. */
|
|
1985
2030
|
interface MetricDistribution {
|
|
2031
|
+
/** The metric queried. */
|
|
2032
|
+
metricType?: string;
|
|
2033
|
+
/** The dimension the metric is broken down by, e.g. "source". */
|
|
2034
|
+
dimension?: string;
|
|
2035
|
+
/** Dimension value to a number whose meaning `valueType` gives. Empty when there is no data. */
|
|
2036
|
+
distribution?: Record<string, number>;
|
|
2037
|
+
/**
|
|
2038
|
+
* `"SHARE_PERCENT"` for a count metric (mentions, creators): each value is a percentage share
|
|
2039
|
+
* of the total, summing to about 100. `"MEAN"` for a value metric (sentiment): each value is
|
|
2040
|
+
* the mean reading on the metric's own scale, never a share.
|
|
2041
|
+
*/
|
|
2042
|
+
valueType?: "SHARE_PERCENT" | "MEAN";
|
|
1986
2043
|
[key: string]: unknown;
|
|
1987
2044
|
}
|
|
1988
2045
|
interface MarketMood {
|
|
1989
2046
|
[key: string]: unknown;
|
|
1990
2047
|
}
|
|
2048
|
+
/** Options for `MarketMoodResource.get()`. */
|
|
2049
|
+
interface MarketMoodOptions {
|
|
2050
|
+
/** Days of history to return. Omit to get the API's default of 180. */
|
|
2051
|
+
days?: number;
|
|
2052
|
+
}
|
|
1991
2053
|
/** AI-generated market summary with headline and analysis. */
|
|
1992
2054
|
interface MarketSummary {
|
|
1993
2055
|
/** Not populated by the API (always empty); retained for backward compatibility. */
|
|
@@ -3221,10 +3283,16 @@ declare class EntityMetrics {
|
|
|
3221
3283
|
*/
|
|
3222
3284
|
getMetrics(symbol: string, options?: MetricsOptions): Promise<ServingMetric[]>;
|
|
3223
3285
|
/**
|
|
3224
|
-
* Get
|
|
3286
|
+
* Get a metric broken down by dimension (default dimension: source).
|
|
3287
|
+
*
|
|
3288
|
+
* `valueType` on the response says what each number in `distribution` is. For a count metric
|
|
3289
|
+
* such as `"mentions"` it is `"SHARE_PERCENT"`: each source's percentage share of the total,
|
|
3290
|
+
* summing to about 100. For `"sentiment"` it is `"MEAN"`: each source's mean polarity over the
|
|
3291
|
+
* window, in [-1, 1]. `"sentisense_score"` has no per-source split and answers with an empty
|
|
3292
|
+
* distribution.
|
|
3225
3293
|
*
|
|
3226
3294
|
* @param symbol Ticker symbol (e.g. "AAPL") or entity urlSlug.
|
|
3227
|
-
* @param metricType The metric to break down (e.g. "mentions"
|
|
3295
|
+
* @param metricType The metric to break down (e.g. "mentions" or "sentiment").
|
|
3228
3296
|
* @param options Optional dimension parameter.
|
|
3229
3297
|
*/
|
|
3230
3298
|
getDistribution(symbol: string, metricType: MetricType, options?: MetricDistributionOptions): Promise<MetricDistribution>;
|
|
@@ -3683,7 +3751,13 @@ declare class KB {
|
|
|
3683
3751
|
declare class MarketMoodResource {
|
|
3684
3752
|
private client;
|
|
3685
3753
|
constructor(client: APIClient);
|
|
3686
|
-
/**
|
|
3754
|
+
/**
|
|
3755
|
+
* Get market mood data (scores, history, sectors).
|
|
3756
|
+
*
|
|
3757
|
+
* @param options `days` sets how many days of history to return. Omit it to get the
|
|
3758
|
+
* API's default of 180.
|
|
3759
|
+
*/
|
|
3760
|
+
get(options?: MarketMoodOptions): Promise<MarketMood>;
|
|
3687
3761
|
get(): Promise<MarketMood>;
|
|
3688
3762
|
}
|
|
3689
3763
|
|
|
@@ -4203,6 +4277,6 @@ declare class APIError extends SentiSenseError {
|
|
|
4203
4277
|
constructor(message: string, status: number, code?: string);
|
|
4204
4278
|
}
|
|
4205
4279
|
|
|
4206
|
-
declare const VERSION = "0.
|
|
4280
|
+
declare const VERSION = "0.60.0";
|
|
4207
4281
|
|
|
4208
|
-
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, type SearchStoriesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
|
4282
|
+
export { type AISummary, APIError, type AnalystAction, type AnalystCall, type AnalystCalledItCall, type AnalystCalledItMove, type AnalystConsensus, type AnalystConsensusHistory, type AnalystConsensusHistoryPoint, type AnalystCoverage, type AnalystCoverageAnalyst, type AnalystCoverageBookEntry, type AnalystCoverageFirm, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, type AnalystFirmRating, type AnalystFirmTenure, type AnalystNote, type AnalystProfile, type AnalystRatingBuckets, type AssetMetadata, AuthenticationError, type CalendarMeta, type ChartData, type ChartDataPoint, type ClusterBuy, type CompanyKpisData, type CongressTrade, DeepHistoryUnavailableError, type Document, type DocumentSearchResponse, type DocumentSource, type EarningsCalendarResponse, type EarningsEvent, type EarningsKpiHighlight, type EarningsOutcomeStatistics, type EarningsQuarter, type EarningsReaction, type EarningsReactionsResponse, type EarningsSource, type EarningsStatistics, type EarningsStatisticsBaseline, type EarningsStatisticsDeviation, type EarningsStatisticsThresholds, type EarningsStatisticsWindow, type EntitySearchResult, type EntitySearchType, type EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfScreenerExecuteResponse, type EtfScreenerRow, type EtfSentimentAggregate, type EtfSentimentReading, type FeaturedScreen, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystCalledItOptions, type GetAnalystCallsOptions, type GetAnalystConsensusHistoryOptions, type GetAnalystCoverageOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsStatisticsOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetOptionsHistoryOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticianMemberOptions, type GetPoliticiansOptions, type GetRankedEarningsOptions, type GetRecentEarningsOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, type IndexConstituent, type IndexHistoryPoint, type IndexHistoryResponse, type IndexListResponse, type IndexListing, type IndexSnapshot, type InsiderActivityResponse, type InsiderActivitySummary, type InsiderTrade, type Insight, type InsightPreviewResponse, type InstitutionList, type InstitutionListResponse, type InstitutionSummary, type InstitutionalFlow, type InstitutionalFlows, type InstitutionalFlowsResponse, type KBEntity, type KpiCoverageEntry, type KpiCoverageResponse, type KpiDataPoint, type KpiSeries, type KpiTypeEntry, type ListInstitutionsOptions, type LockedInsight, type MarketMood, type MarketMoodOptions, type MarketStatus, type MarketSummary, type MetricDistribution, type MetricDistributionOptions, type MetricType, type MetricsBreakdown, type MetricsOptions, NotFoundError, type OptionsAggregate, type OptionsContext, type OptionsHighlight, type OptionsHistory, type OptionsHistoryWindow, type OptionsOiWalls, type OptionsOverview, type OptionsOverviewRow, type OptionsSummary, type OptionsUnusualContract, type OptionsWall, type PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, type RankedEarnings, type RankedEarningsSection, type RankedReportedEarnings, type RankedUpcomingEarnings, RateLimitError, type RatingBase, type RatingDimension, type RatingDimensionKey, type RatingFlag, type RatingNotRatedReason, type RatingSubLeg, type RecentEarningsEntry, type RiskAdjustment, type RiskCondition, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, type SearchEntitiesOptions, type SearchStoriesOptions, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockNotRated, type StockPrice, type StockProfile, type StockQuote, type StockRating, type StockRatingResponse, type StockSocialDominance, type Story, type StoryCluster, type StoryTimelineEntry, TemporarilyUnavailableError, type TickerHolders, type TrackerEvent, type TrackerGeoEntry, type TrackerHeadlineMetric, type TrackerListResponse, type TrackerListing, type TrackerMetricValue, type TrackerSignal, type TrackerSnapshot, type TrackerSnapshotResponse, type TrackerSourceRef, type TrackerTableRow, type TrackerTimeSeriesPoint, type TtmFundamentals, VERSION, type WeightedConsensus, type WeightedNetFlow, SentiSense as default };
|
package/dist/index.mjs
CHANGED
|
@@ -408,10 +408,16 @@ var EntityMetrics = class {
|
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
-
* Get
|
|
411
|
+
* Get a metric broken down by dimension (default dimension: source).
|
|
412
|
+
*
|
|
413
|
+
* `valueType` on the response says what each number in `distribution` is. For a count metric
|
|
414
|
+
* such as `"mentions"` it is `"SHARE_PERCENT"`: each source's percentage share of the total,
|
|
415
|
+
* summing to about 100. For `"sentiment"` it is `"MEAN"`: each source's mean polarity over the
|
|
416
|
+
* window, in [-1, 1]. `"sentisense_score"` has no per-source split and answers with an empty
|
|
417
|
+
* distribution.
|
|
412
418
|
*
|
|
413
419
|
* @param symbol Ticker symbol (e.g. "AAPL") or entity urlSlug.
|
|
414
|
-
* @param metricType The metric to break down (e.g. "mentions"
|
|
420
|
+
* @param metricType The metric to break down (e.g. "mentions" or "sentiment").
|
|
415
421
|
* @param options Optional dimension parameter.
|
|
416
422
|
*/
|
|
417
423
|
async getDistribution(symbol, metricType, options = {}) {
|
|
@@ -802,12 +808,13 @@ var MarketMoodResource = class {
|
|
|
802
808
|
constructor(client) {
|
|
803
809
|
this.client = client;
|
|
804
810
|
}
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
return this.client.get(
|
|
811
|
+
async get(options) {
|
|
812
|
+
const days = options?.days;
|
|
813
|
+
return this.client.get(
|
|
814
|
+
"/api/v2/market-mood",
|
|
815
|
+
days === void 0 ? void 0 : { days }
|
|
816
|
+
);
|
|
808
817
|
}
|
|
809
|
-
// TODO: accept a `days` param to control history length (the endpoint supports ?days=N).
|
|
810
|
-
//
|
|
811
818
|
// Market Mood is also reachable through `client.indexes`, which serves it in the shared
|
|
812
819
|
// index envelope alongside fed-sentiment and ai-sentiment. Use this resource when you want
|
|
813
820
|
// the phase band, weekly change, per-signal breakdown and per-sector map; use `indexes`
|
|
@@ -1311,7 +1318,7 @@ var Trackers = class {
|
|
|
1311
1318
|
};
|
|
1312
1319
|
|
|
1313
1320
|
// src/version.ts
|
|
1314
|
-
var VERSION = "0.
|
|
1321
|
+
var VERSION = "0.60.0";
|
|
1315
1322
|
|
|
1316
1323
|
// src/client.ts
|
|
1317
1324
|
var DEFAULT_BASE_URL = "https://app.sentisense.ai";
|