sentisense 0.38.0 → 0.40.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/dist/index.cjs +24 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +77 -5
- package/dist/index.d.ts +77 -5
- package/dist/index.mjs +24 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6,15 +6,21 @@ interface SentiSenseOptions {
|
|
|
6
6
|
}
|
|
7
7
|
interface StockPrice {
|
|
8
8
|
ticker: string;
|
|
9
|
-
/** Regular-session price. During RTH:
|
|
9
|
+
/** Regular-session price, delayed 15 minutes. During RTH: the most recent regular-session value. Otherwise: most recent RTH close. */
|
|
10
10
|
currentPrice: number;
|
|
11
11
|
change: number;
|
|
12
12
|
changePercent: number;
|
|
13
13
|
previousClose: number;
|
|
14
14
|
/** Regular-session volume. */
|
|
15
15
|
volume: number;
|
|
16
|
-
/** Unix timestamp in milliseconds of the price
|
|
16
|
+
/** Unix timestamp in milliseconds of when this response was served. Not the age of the price: it tracks the current clock regardless of how old the value is. */
|
|
17
17
|
timestamp: number;
|
|
18
|
+
/**
|
|
19
|
+
* Unix timestamp in milliseconds of the market data behind `currentPrice`. Read this for
|
|
20
|
+
* freshness rather than `timestamp`. Absent outside regular hours, and whenever the upstream
|
|
21
|
+
* data carries no time of its own, so treat an absent value as unknown age, not as fresh.
|
|
22
|
+
*/
|
|
23
|
+
priceAsOf?: number;
|
|
18
24
|
/** Extended-hours view (pre-market or after-hours). Null/absent during RTH, overnight, and weekends. */
|
|
19
25
|
extendedHours?: ExtendedHoursInfo | null;
|
|
20
26
|
/**
|
|
@@ -48,7 +54,7 @@ interface ExtendedHoursInfo {
|
|
|
48
54
|
/** Aggregate quote snapshot from GET /api/v1/stocks/{ticker}/quote. */
|
|
49
55
|
interface StockQuote {
|
|
50
56
|
ticker: string;
|
|
51
|
-
/** Regular-session price. During RTH:
|
|
57
|
+
/** Regular-session price, delayed 15 minutes. During RTH: the most recent regular-session value. Otherwise: most recent RTH close. */
|
|
52
58
|
currentPrice: number | null;
|
|
53
59
|
change: number | null;
|
|
54
60
|
changePercent: number | null;
|
|
@@ -92,7 +98,14 @@ interface StockQuote {
|
|
|
92
98
|
delistedDate?: string;
|
|
93
99
|
/** Why it delisted. Absent unless `listingStatus` is `DELISTED`. */
|
|
94
100
|
delistingReason?: 'acquired' | 'take_private' | 'bankruptcy' | 'exchange_rule' | 'merged';
|
|
101
|
+
/** Unix timestamp in milliseconds of when this response was served. Not the age of the price. */
|
|
95
102
|
timestamp: number | null;
|
|
103
|
+
/**
|
|
104
|
+
* Unix timestamp in milliseconds of the market data behind `currentPrice`. Read this for
|
|
105
|
+
* freshness rather than `timestamp`. Absent outside regular hours, and whenever the upstream
|
|
106
|
+
* data carries no time of its own, so treat an absent value as unknown age, not as fresh.
|
|
107
|
+
*/
|
|
108
|
+
priceAsOf?: number;
|
|
96
109
|
/** Extended-hours view (pre-market or after-hours). Null/absent during RTH, overnight, and weekends. */
|
|
97
110
|
extendedHours?: ExtendedHoursInfo | null;
|
|
98
111
|
}
|
|
@@ -804,6 +817,48 @@ interface PoliticianSummary {
|
|
|
804
817
|
saleCount: number;
|
|
805
818
|
latestTradeDate: string | null;
|
|
806
819
|
sentiSenseScore: number | null;
|
|
820
|
+
/**
|
|
821
|
+
* True for a member who has left Congress. The members roster serves only sitting
|
|
822
|
+
* members, so this reads true only on a member detail or directory response. Render
|
|
823
|
+
* the tense accordingly ("Former Senator").
|
|
824
|
+
*/
|
|
825
|
+
former: boolean;
|
|
826
|
+
/** Year the member left Congress, e.g. `"2021"`. Null for a sitting member. */
|
|
827
|
+
servedUntil: string | null;
|
|
828
|
+
}
|
|
829
|
+
/** One entry in the member discovery directory: identity and page slug, no trade data. */
|
|
830
|
+
interface PoliticianDirectoryEntry {
|
|
831
|
+
urlSlug: string;
|
|
832
|
+
displayName: string;
|
|
833
|
+
chamber: "SENATE" | "HOUSE";
|
|
834
|
+
party: string;
|
|
835
|
+
state: string;
|
|
836
|
+
bioguideId: string;
|
|
837
|
+
imageUrl: string | null;
|
|
838
|
+
/** True for a member who has left Congress. */
|
|
839
|
+
former: boolean;
|
|
840
|
+
/** Year the member left Congress, e.g. `"2021"`. Null for a sitting member. */
|
|
841
|
+
servedUntil: string | null;
|
|
842
|
+
}
|
|
843
|
+
/** The `data` payload of the member discovery directory. */
|
|
844
|
+
interface PoliticianDirectory {
|
|
845
|
+
/** Total members matching the filter, before pagination. */
|
|
846
|
+
totalCount: number;
|
|
847
|
+
members: PoliticianDirectoryEntry[];
|
|
848
|
+
}
|
|
849
|
+
/** Wire envelope for the directory (always full, never a preview). */
|
|
850
|
+
interface PoliticianDirectoryResponse {
|
|
851
|
+
isPreview: boolean;
|
|
852
|
+
previewReason: "PRO_REQUIRED" | null;
|
|
853
|
+
data: PoliticianDirectory;
|
|
854
|
+
}
|
|
855
|
+
interface GetPoliticianDirectoryOptions {
|
|
856
|
+
/** Case-insensitive filter across display name, state and slug. */
|
|
857
|
+
q?: string;
|
|
858
|
+
/** Page size (default 50, max 200). */
|
|
859
|
+
limit?: number;
|
|
860
|
+
/** Pagination offset (default 0). */
|
|
861
|
+
offset?: number;
|
|
807
862
|
}
|
|
808
863
|
/** Detailed politician profile with recent trades and top tickers. */
|
|
809
864
|
interface PoliticianDetail {
|
|
@@ -2112,10 +2167,27 @@ declare class Politicians {
|
|
|
2112
2167
|
* PRO-gated. Free users receive a preview of the top 3 trades.
|
|
2113
2168
|
*/
|
|
2114
2169
|
getFilings(ticker: string, options?: GetPoliticiansOptions): Promise<PreviewResponse<CongressTrade[]>>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Discover tracked members of Congress and the page slug identifying each, so you
|
|
2172
|
+
* can find who to query without knowing slugs upfront.
|
|
2173
|
+
*
|
|
2174
|
+
* Summary only, no trade data; use `getMember` for a member's filings.
|
|
2175
|
+
*
|
|
2176
|
+
* Unlike `getMembers`, this includes members who have **left Congress**, carrying
|
|
2177
|
+
* `former` and `servedUntil`. That roster lists who currently holds office, so a
|
|
2178
|
+
* former member is otherwise reachable only if you already know their slug.
|
|
2179
|
+
*
|
|
2180
|
+
* Requires an API key but does not consume monthly quota (per-minute rate limits
|
|
2181
|
+
* still apply), and is not tier-gated. Returns the unwrapped list payload.
|
|
2182
|
+
*/
|
|
2183
|
+
getDirectory(options?: GetPoliticianDirectoryOptions): Promise<PoliticianDirectory>;
|
|
2115
2184
|
/**
|
|
2116
2185
|
* Get all tracked politicians with trading summary statistics.
|
|
2117
2186
|
*
|
|
2118
2187
|
* PRO-gated. Free users receive a preview of the top 5 members.
|
|
2188
|
+
*
|
|
2189
|
+
* Serves only members currently in office. Use `getDirectory` to enumerate
|
|
2190
|
+
* everyone tracked, former members included.
|
|
2119
2191
|
*/
|
|
2120
2192
|
getMembers(): Promise<PreviewResponse<PoliticianSummary[]>>;
|
|
2121
2193
|
/**
|
|
@@ -2652,6 +2724,6 @@ declare class APIError extends SentiSenseError {
|
|
|
2652
2724
|
constructor(message: string, status: number, code?: string);
|
|
2653
2725
|
}
|
|
2654
2726
|
|
|
2655
|
-
declare const VERSION = "0.
|
|
2727
|
+
declare const VERSION = "0.40.0";
|
|
2656
2728
|
|
|
2657
|
-
export { type AISummary, APIError, type AnalystAction, type AnalystConsensus, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, 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 EarningsQuarter, type EarningsSource, 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 GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetPoliticianActivityOptions, type GetPoliticiansOptions, 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 PoliticianDetail, type PoliticianSummary, type PreviewResponse, type Quarter, RateLimitError, type RecentEarningsEntry, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockPrice, type StockProfile, type StockQuote, type Story, type StoryCluster, 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 };
|
|
2729
|
+
export { type AISummary, APIError, type AnalystAction, type AnalystConsensus, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, 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 EarningsQuarter, type EarningsSource, 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 GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticiansOptions, 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 PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, RateLimitError, type RecentEarningsEntry, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockPrice, type StockProfile, type StockQuote, type Story, type StoryCluster, 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
|
@@ -6,15 +6,21 @@ interface SentiSenseOptions {
|
|
|
6
6
|
}
|
|
7
7
|
interface StockPrice {
|
|
8
8
|
ticker: string;
|
|
9
|
-
/** Regular-session price. During RTH:
|
|
9
|
+
/** Regular-session price, delayed 15 minutes. During RTH: the most recent regular-session value. Otherwise: most recent RTH close. */
|
|
10
10
|
currentPrice: number;
|
|
11
11
|
change: number;
|
|
12
12
|
changePercent: number;
|
|
13
13
|
previousClose: number;
|
|
14
14
|
/** Regular-session volume. */
|
|
15
15
|
volume: number;
|
|
16
|
-
/** Unix timestamp in milliseconds of the price
|
|
16
|
+
/** Unix timestamp in milliseconds of when this response was served. Not the age of the price: it tracks the current clock regardless of how old the value is. */
|
|
17
17
|
timestamp: number;
|
|
18
|
+
/**
|
|
19
|
+
* Unix timestamp in milliseconds of the market data behind `currentPrice`. Read this for
|
|
20
|
+
* freshness rather than `timestamp`. Absent outside regular hours, and whenever the upstream
|
|
21
|
+
* data carries no time of its own, so treat an absent value as unknown age, not as fresh.
|
|
22
|
+
*/
|
|
23
|
+
priceAsOf?: number;
|
|
18
24
|
/** Extended-hours view (pre-market or after-hours). Null/absent during RTH, overnight, and weekends. */
|
|
19
25
|
extendedHours?: ExtendedHoursInfo | null;
|
|
20
26
|
/**
|
|
@@ -48,7 +54,7 @@ interface ExtendedHoursInfo {
|
|
|
48
54
|
/** Aggregate quote snapshot from GET /api/v1/stocks/{ticker}/quote. */
|
|
49
55
|
interface StockQuote {
|
|
50
56
|
ticker: string;
|
|
51
|
-
/** Regular-session price. During RTH:
|
|
57
|
+
/** Regular-session price, delayed 15 minutes. During RTH: the most recent regular-session value. Otherwise: most recent RTH close. */
|
|
52
58
|
currentPrice: number | null;
|
|
53
59
|
change: number | null;
|
|
54
60
|
changePercent: number | null;
|
|
@@ -92,7 +98,14 @@ interface StockQuote {
|
|
|
92
98
|
delistedDate?: string;
|
|
93
99
|
/** Why it delisted. Absent unless `listingStatus` is `DELISTED`. */
|
|
94
100
|
delistingReason?: 'acquired' | 'take_private' | 'bankruptcy' | 'exchange_rule' | 'merged';
|
|
101
|
+
/** Unix timestamp in milliseconds of when this response was served. Not the age of the price. */
|
|
95
102
|
timestamp: number | null;
|
|
103
|
+
/**
|
|
104
|
+
* Unix timestamp in milliseconds of the market data behind `currentPrice`. Read this for
|
|
105
|
+
* freshness rather than `timestamp`. Absent outside regular hours, and whenever the upstream
|
|
106
|
+
* data carries no time of its own, so treat an absent value as unknown age, not as fresh.
|
|
107
|
+
*/
|
|
108
|
+
priceAsOf?: number;
|
|
96
109
|
/** Extended-hours view (pre-market or after-hours). Null/absent during RTH, overnight, and weekends. */
|
|
97
110
|
extendedHours?: ExtendedHoursInfo | null;
|
|
98
111
|
}
|
|
@@ -804,6 +817,48 @@ interface PoliticianSummary {
|
|
|
804
817
|
saleCount: number;
|
|
805
818
|
latestTradeDate: string | null;
|
|
806
819
|
sentiSenseScore: number | null;
|
|
820
|
+
/**
|
|
821
|
+
* True for a member who has left Congress. The members roster serves only sitting
|
|
822
|
+
* members, so this reads true only on a member detail or directory response. Render
|
|
823
|
+
* the tense accordingly ("Former Senator").
|
|
824
|
+
*/
|
|
825
|
+
former: boolean;
|
|
826
|
+
/** Year the member left Congress, e.g. `"2021"`. Null for a sitting member. */
|
|
827
|
+
servedUntil: string | null;
|
|
828
|
+
}
|
|
829
|
+
/** One entry in the member discovery directory: identity and page slug, no trade data. */
|
|
830
|
+
interface PoliticianDirectoryEntry {
|
|
831
|
+
urlSlug: string;
|
|
832
|
+
displayName: string;
|
|
833
|
+
chamber: "SENATE" | "HOUSE";
|
|
834
|
+
party: string;
|
|
835
|
+
state: string;
|
|
836
|
+
bioguideId: string;
|
|
837
|
+
imageUrl: string | null;
|
|
838
|
+
/** True for a member who has left Congress. */
|
|
839
|
+
former: boolean;
|
|
840
|
+
/** Year the member left Congress, e.g. `"2021"`. Null for a sitting member. */
|
|
841
|
+
servedUntil: string | null;
|
|
842
|
+
}
|
|
843
|
+
/** The `data` payload of the member discovery directory. */
|
|
844
|
+
interface PoliticianDirectory {
|
|
845
|
+
/** Total members matching the filter, before pagination. */
|
|
846
|
+
totalCount: number;
|
|
847
|
+
members: PoliticianDirectoryEntry[];
|
|
848
|
+
}
|
|
849
|
+
/** Wire envelope for the directory (always full, never a preview). */
|
|
850
|
+
interface PoliticianDirectoryResponse {
|
|
851
|
+
isPreview: boolean;
|
|
852
|
+
previewReason: "PRO_REQUIRED" | null;
|
|
853
|
+
data: PoliticianDirectory;
|
|
854
|
+
}
|
|
855
|
+
interface GetPoliticianDirectoryOptions {
|
|
856
|
+
/** Case-insensitive filter across display name, state and slug. */
|
|
857
|
+
q?: string;
|
|
858
|
+
/** Page size (default 50, max 200). */
|
|
859
|
+
limit?: number;
|
|
860
|
+
/** Pagination offset (default 0). */
|
|
861
|
+
offset?: number;
|
|
807
862
|
}
|
|
808
863
|
/** Detailed politician profile with recent trades and top tickers. */
|
|
809
864
|
interface PoliticianDetail {
|
|
@@ -2112,10 +2167,27 @@ declare class Politicians {
|
|
|
2112
2167
|
* PRO-gated. Free users receive a preview of the top 3 trades.
|
|
2113
2168
|
*/
|
|
2114
2169
|
getFilings(ticker: string, options?: GetPoliticiansOptions): Promise<PreviewResponse<CongressTrade[]>>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Discover tracked members of Congress and the page slug identifying each, so you
|
|
2172
|
+
* can find who to query without knowing slugs upfront.
|
|
2173
|
+
*
|
|
2174
|
+
* Summary only, no trade data; use `getMember` for a member's filings.
|
|
2175
|
+
*
|
|
2176
|
+
* Unlike `getMembers`, this includes members who have **left Congress**, carrying
|
|
2177
|
+
* `former` and `servedUntil`. That roster lists who currently holds office, so a
|
|
2178
|
+
* former member is otherwise reachable only if you already know their slug.
|
|
2179
|
+
*
|
|
2180
|
+
* Requires an API key but does not consume monthly quota (per-minute rate limits
|
|
2181
|
+
* still apply), and is not tier-gated. Returns the unwrapped list payload.
|
|
2182
|
+
*/
|
|
2183
|
+
getDirectory(options?: GetPoliticianDirectoryOptions): Promise<PoliticianDirectory>;
|
|
2115
2184
|
/**
|
|
2116
2185
|
* Get all tracked politicians with trading summary statistics.
|
|
2117
2186
|
*
|
|
2118
2187
|
* PRO-gated. Free users receive a preview of the top 5 members.
|
|
2188
|
+
*
|
|
2189
|
+
* Serves only members currently in office. Use `getDirectory` to enumerate
|
|
2190
|
+
* everyone tracked, former members included.
|
|
2119
2191
|
*/
|
|
2120
2192
|
getMembers(): Promise<PreviewResponse<PoliticianSummary[]>>;
|
|
2121
2193
|
/**
|
|
@@ -2652,6 +2724,6 @@ declare class APIError extends SentiSenseError {
|
|
|
2652
2724
|
constructor(message: string, status: number, code?: string);
|
|
2653
2725
|
}
|
|
2654
2726
|
|
|
2655
|
-
declare const VERSION = "0.
|
|
2727
|
+
declare const VERSION = "0.40.0";
|
|
2656
2728
|
|
|
2657
|
-
export { type AISummary, APIError, type AnalystAction, type AnalystConsensus, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, 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 EarningsQuarter, type EarningsSource, 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 GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetPoliticianActivityOptions, type GetPoliticiansOptions, 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 PoliticianDetail, type PoliticianSummary, type PreviewResponse, type Quarter, RateLimitError, type RecentEarningsEntry, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockPrice, type StockProfile, type StockQuote, type Story, type StoryCluster, 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 };
|
|
2729
|
+
export { type AISummary, APIError, type AnalystAction, type AnalystConsensus, type AnalystEarningsSurprise, type AnalystEstimate, type AnalystEstimatesResponse, 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 EarningsQuarter, type EarningsSource, 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 GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEarningsSummariesOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetPoliticianActivityOptions, type GetPoliticianDirectoryOptions, type GetPoliticiansOptions, 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 PoliticianDetail, type PoliticianDirectory, type PoliticianDirectoryEntry, type PoliticianDirectoryResponse, type PoliticianSummary, type PreviewResponse, type Quarter, RateLimitError, type RecentEarningsEntry, type ScreenerExecuteOptions, type ScreenerExecuteResponse, type ScreenerFieldCatalog, type ScreenerFieldDescriptor, type ScreenerFieldOption, type ScreenerFilter, type ScreenerPlan, type ScreenerRow, type ScreenerScreensResponse, type ScreenerSort, SentiSense, SentiSenseError, type SentiSenseOptions, type SentimentEntry, type ServingMetric, type ShortInterest, type ShortVolume, type SimilarStock, type StockDetail, type StockEntity, type StockImage, type StockPrice, type StockProfile, type StockQuote, type Story, type StoryCluster, 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
|
@@ -363,10 +363,33 @@ var Politicians = class {
|
|
|
363
363
|
options
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Discover tracked members of Congress and the page slug identifying each, so you
|
|
368
|
+
* can find who to query without knowing slugs upfront.
|
|
369
|
+
*
|
|
370
|
+
* Summary only, no trade data; use `getMember` for a member's filings.
|
|
371
|
+
*
|
|
372
|
+
* Unlike `getMembers`, this includes members who have **left Congress**, carrying
|
|
373
|
+
* `former` and `servedUntil`. That roster lists who currently holds office, so a
|
|
374
|
+
* former member is otherwise reachable only if you already know their slug.
|
|
375
|
+
*
|
|
376
|
+
* Requires an API key but does not consume monthly quota (per-minute rate limits
|
|
377
|
+
* still apply), and is not tier-gated. Returns the unwrapped list payload.
|
|
378
|
+
*/
|
|
379
|
+
async getDirectory(options) {
|
|
380
|
+
const resp = await this.client.get(
|
|
381
|
+
"/api/v1/politicians/directory",
|
|
382
|
+
{ ...options }
|
|
383
|
+
);
|
|
384
|
+
return resp.data;
|
|
385
|
+
}
|
|
366
386
|
/**
|
|
367
387
|
* Get all tracked politicians with trading summary statistics.
|
|
368
388
|
*
|
|
369
389
|
* PRO-gated. Free users receive a preview of the top 5 members.
|
|
390
|
+
*
|
|
391
|
+
* Serves only members currently in office. Use `getDirectory` to enumerate
|
|
392
|
+
* everyone tracked, former members included.
|
|
370
393
|
*/
|
|
371
394
|
async getMembers() {
|
|
372
395
|
return this.client.get("/api/v1/politicians/members");
|
|
@@ -937,7 +960,7 @@ var Trackers = class {
|
|
|
937
960
|
};
|
|
938
961
|
|
|
939
962
|
// src/version.ts
|
|
940
|
-
var VERSION = "0.
|
|
963
|
+
var VERSION = "0.40.0";
|
|
941
964
|
|
|
942
965
|
// src/client.ts
|
|
943
966
|
var DEFAULT_BASE_URL = "https://app.sentisense.ai";
|