sentisense 0.34.0 → 0.36.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 +35 -0
- package/dist/index.cjs +115 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +332 -6
- package/dist/index.d.ts +332 -6
- package/dist/index.mjs +115 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -308,6 +308,11 @@ interface GetProfileOptions {
|
|
|
308
308
|
}
|
|
309
309
|
interface GetAISummaryOptions {
|
|
310
310
|
depth?: "basic" | "deep";
|
|
311
|
+
/**
|
|
312
|
+
* @deprecated Has no effect and is no longer sent. Reports are curated and served
|
|
313
|
+
* as published, so there is nothing for a caller to regenerate on demand. Accepted
|
|
314
|
+
* only so existing code keeps compiling; drop it from your call.
|
|
315
|
+
*/
|
|
311
316
|
forceRefresh?: boolean;
|
|
312
317
|
}
|
|
313
318
|
interface GetMetricsBreakdownOptions {
|
|
@@ -834,6 +839,110 @@ interface GetEarningsCalendarOptions {
|
|
|
834
839
|
/** Session filter. */
|
|
835
840
|
time?: "before_open" | "after_close" | "during_market" | "unknown";
|
|
836
841
|
}
|
|
842
|
+
/**
|
|
843
|
+
* One KPI card on a reported quarter.
|
|
844
|
+
*
|
|
845
|
+
* `value` and `yoy` are display strings, already formatted (`"$109.4B"`,
|
|
846
|
+
* `"+16% YoY"`), not numbers to compute with. `yoy` is absent when the quarter
|
|
847
|
+
* carries no year-over-year comparison for that line, which is common on
|
|
848
|
+
* call highlights.
|
|
849
|
+
*/
|
|
850
|
+
interface EarningsKpiHighlight {
|
|
851
|
+
label: string;
|
|
852
|
+
value: string;
|
|
853
|
+
yoy?: string;
|
|
854
|
+
}
|
|
855
|
+
/** A citation backing a reported quarter. */
|
|
856
|
+
interface EarningsSource {
|
|
857
|
+
title: string;
|
|
858
|
+
url: string;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* One fiscal quarter of the earnings analysis report, from
|
|
862
|
+
* `client.earnings.getSummaries()`.
|
|
863
|
+
*
|
|
864
|
+
* The wire shape depends on the caller's tier, so branch on the envelope's
|
|
865
|
+
* `isPreview` rather than on field presence. `fiscalPeriod`, `reportDate`,
|
|
866
|
+
* `headline`, `hasTranscript`, `generatedAt` and `source` arrive on both tiers.
|
|
867
|
+
*
|
|
868
|
+
* PRO adds the bodies: `summaryMd`, the full `kpiHighlights`, `guidance`,
|
|
869
|
+
* `transcriptSummaryMd`, `transcriptHighlights`, `transcriptGeneratedAt` and
|
|
870
|
+
* `sources`.
|
|
871
|
+
*
|
|
872
|
+
* The FREE preview replaces those bodies with shape: up to two `kpiHighlights`
|
|
873
|
+
* cards (without `yoy`) plus `kpiHighlightCount`, the section titles in
|
|
874
|
+
* `summaryTopics` and `transcriptTopics`, and `hasGuidance` with
|
|
875
|
+
* `guidanceDirection` in place of the guidance language. It never carries a
|
|
876
|
+
* body, a KPI history, or a guidance figure.
|
|
877
|
+
*
|
|
878
|
+
* Absence is explicit: a quarter with no call summary sets `hasTranscript` to
|
|
879
|
+
* `false` rather than dropping the concept, so a client can say "no call
|
|
880
|
+
* summary yet" instead of rendering nothing.
|
|
881
|
+
*/
|
|
882
|
+
interface EarningsQuarter {
|
|
883
|
+
/** Display fiscal period, e.g. `"Q2 FY2026"`. */
|
|
884
|
+
fiscalPeriod: string;
|
|
885
|
+
/** Date the results were reported, ISO calendar day `"YYYY-MM-DD"`. */
|
|
886
|
+
reportDate: string;
|
|
887
|
+
/** One-line editorial summary of the quarter. */
|
|
888
|
+
headline: string;
|
|
889
|
+
/** True when a summary of the earnings call exists for this quarter. */
|
|
890
|
+
hasTranscript: boolean;
|
|
891
|
+
/** When the quarter summary was generated, epoch seconds. */
|
|
892
|
+
generatedAt: number;
|
|
893
|
+
/** Provenance of the quarter summary. */
|
|
894
|
+
source: "press_release" | "transcript";
|
|
895
|
+
/** PRO: markdown body summarizing the reported results. */
|
|
896
|
+
summaryMd?: string;
|
|
897
|
+
/** PRO carries the full set; a preview carries up to two cards without `yoy`. */
|
|
898
|
+
kpiHighlights?: EarningsKpiHighlight[];
|
|
899
|
+
/** PRO: forward-guidance language as reported. Absent when the quarter carries none. */
|
|
900
|
+
guidance?: string;
|
|
901
|
+
/** PRO: markdown body summarizing the call. Absent when `hasTranscript` is false. */
|
|
902
|
+
transcriptSummaryMd?: string;
|
|
903
|
+
/** PRO: call-specific highlights. Absent when there is no call summary. */
|
|
904
|
+
transcriptHighlights?: EarningsKpiHighlight[];
|
|
905
|
+
/** PRO: when the call summary was generated, epoch seconds. Can post-date `generatedAt`. */
|
|
906
|
+
transcriptGeneratedAt?: number;
|
|
907
|
+
/** PRO: citations backing the quarter. */
|
|
908
|
+
sources?: EarningsSource[];
|
|
909
|
+
/** Preview: how many KPI cards the full quarter carries. */
|
|
910
|
+
kpiHighlightCount?: number;
|
|
911
|
+
/** Preview: section titles of the summary, never body text. */
|
|
912
|
+
summaryTopics?: string[];
|
|
913
|
+
/** Preview: section titles of the call summary, never body text. */
|
|
914
|
+
transcriptTopics?: string[];
|
|
915
|
+
/** Preview: whether the quarter carries guidance at all. */
|
|
916
|
+
hasGuidance?: boolean;
|
|
917
|
+
/** Preview: the direction only, in place of the guidance language. */
|
|
918
|
+
guidanceDirection?: "RAISED" | "CUT" | "HELD" | "MIXED" | null;
|
|
919
|
+
}
|
|
920
|
+
/** One company that reported inside the recent window. */
|
|
921
|
+
interface RecentEarningsEntry {
|
|
922
|
+
ticker: string;
|
|
923
|
+
/** Display fiscal period, e.g. `"Q2 FY2026"`. */
|
|
924
|
+
fiscalPeriod: string;
|
|
925
|
+
/** Date the results were reported, ISO calendar day `"YYYY-MM-DD"`. */
|
|
926
|
+
reportDate: string;
|
|
927
|
+
headline: string;
|
|
928
|
+
/** True when a summary of the earnings call exists for this quarter. */
|
|
929
|
+
hasTranscriptSummary: boolean;
|
|
930
|
+
/** Latest content written for this quarter, epoch seconds. */
|
|
931
|
+
generatedAt: number;
|
|
932
|
+
}
|
|
933
|
+
interface GetEarningsSummariesOptions {
|
|
934
|
+
/**
|
|
935
|
+
* Max quarters returned, 1 to 40. Omitted, the API applies its own default
|
|
936
|
+
* of 12. A FREE key receives one quarter whatever you pass.
|
|
937
|
+
*/
|
|
938
|
+
limit?: number;
|
|
939
|
+
}
|
|
940
|
+
interface GetRecentEarningsOptions {
|
|
941
|
+
/** Look-back window in days, 1 to 31. Omitted, the API applies its own default of 7. */
|
|
942
|
+
days?: number;
|
|
943
|
+
/** Max rows returned, 1 to 100. Omitted, the API applies its own default of 50. */
|
|
944
|
+
limit?: number;
|
|
945
|
+
}
|
|
837
946
|
interface PreviewResponse<T> {
|
|
838
947
|
isPreview: boolean;
|
|
839
948
|
previewReason: "PRO_REQUIRED" | null;
|
|
@@ -1188,6 +1297,114 @@ interface TrackerSnapshotResponse {
|
|
|
1188
1297
|
totalCount?: number;
|
|
1189
1298
|
data: TrackerSnapshot;
|
|
1190
1299
|
}
|
|
1300
|
+
/** Per-index discovery row returned by `client.indexes.list()`. */
|
|
1301
|
+
interface IndexListing {
|
|
1302
|
+
indexId: string;
|
|
1303
|
+
displayName: string;
|
|
1304
|
+
/** One-sentence summary, suitable for a card subtitle. */
|
|
1305
|
+
description: string;
|
|
1306
|
+
/** Output scale: `"SENTIMENT"` (signed, -1 to +1) or `"PERCENT_0_100"`. Set axis bounds from this, not from the id. */
|
|
1307
|
+
scale: string;
|
|
1308
|
+
/** Access tier: `"free"` or `"pro"`. Every index is `"free"` today; read it rather than assuming. */
|
|
1309
|
+
accessTier?: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* Richest view of this index, which is NOT always the detail route. Market
|
|
1312
|
+
* Mood points at `/api/v2/market-mood`, which carries a phase band, weekly
|
|
1313
|
+
* change, per-signal breakdown and per-sector map that the shared envelope
|
|
1314
|
+
* cannot hold. Every advertised `indexId` still resolves on
|
|
1315
|
+
* {@link Indexes.get}, so a generic client can iterate the listing without
|
|
1316
|
+
* special-casing anything.
|
|
1317
|
+
*/
|
|
1318
|
+
canonicalUrl: string;
|
|
1319
|
+
}
|
|
1320
|
+
/** Discovery envelope returned by `client.indexes.list()`. */
|
|
1321
|
+
interface IndexListResponse {
|
|
1322
|
+
indexes: IndexListing[];
|
|
1323
|
+
}
|
|
1324
|
+
/** One entity's row in a basket index's constituent breakdown. */
|
|
1325
|
+
interface IndexConstituent {
|
|
1326
|
+
/** Ontology entity id, resolvable via the entities API. */
|
|
1327
|
+
kbEntityId: string;
|
|
1328
|
+
displayName: string;
|
|
1329
|
+
/** The entity's role in this basket; the role is what carries the weight. */
|
|
1330
|
+
role: string;
|
|
1331
|
+
/** Relative weight on this date. `0` when `staleness` is `"OUT_OF_SEGMENT"`. */
|
|
1332
|
+
weight: number;
|
|
1333
|
+
/** The entity's own reading. */
|
|
1334
|
+
value: number | null;
|
|
1335
|
+
/** Mentions behind that reading in the lookback window. */
|
|
1336
|
+
mentionsCount: number | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* `"FRESH"` (mentioned inside the lookback), `"CARRIED_FORWARD"` (last known
|
|
1339
|
+
* value standing in), `"EXCLUDED"` (no usable reading, renormalized out), or
|
|
1340
|
+
* `"OUT_OF_SEGMENT"` (not in the basket on this date, reported only for
|
|
1341
|
+
* transparency).
|
|
1342
|
+
*/
|
|
1343
|
+
staleness: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* Reserved. The API currently returns `null` here on every constituent, so do
|
|
1346
|
+
* not build on it. To get the same number today, compute `weight * value`
|
|
1347
|
+
* over the sum of `weight` across constituents whose `staleness` is not
|
|
1348
|
+
* `"EXCLUDED"`.
|
|
1349
|
+
*/
|
|
1350
|
+
contribution: number | null;
|
|
1351
|
+
/** Detail page for the entity, or `null` when there is no resolvable target. */
|
|
1352
|
+
link: string | null;
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Latest reading for one index, returned by `client.indexes.get()`.
|
|
1356
|
+
*
|
|
1357
|
+
* Two archetypes share this envelope, and the difference is load-bearing. A
|
|
1358
|
+
* **basket** index (`fed-sentiment`, `ai-sentiment`) weight-averages tracked
|
|
1359
|
+
* entities, so `constituents`, `basketSize`, `coverage` and `totalMentions`
|
|
1360
|
+
* describe how the headline was built. A **composite** index (`market-mood`) is
|
|
1361
|
+
* built from signals rather than entities, so those four are `null` *by
|
|
1362
|
+
* construction*, not because data is missing. Branch on them; never treat
|
|
1363
|
+
* `null` there as an error.
|
|
1364
|
+
*/
|
|
1365
|
+
interface IndexSnapshot {
|
|
1366
|
+
indexId: string;
|
|
1367
|
+
displayName: string;
|
|
1368
|
+
/** Date the reading covers, `"YYYY-MM-DD"`. Bucket start for weekly indexes. */
|
|
1369
|
+
asOf: string;
|
|
1370
|
+
/** The headline scalar, on `scale`. */
|
|
1371
|
+
value: number | null;
|
|
1372
|
+
scale: string;
|
|
1373
|
+
/** Constituents that actually contributed. `null` on a composite index. */
|
|
1374
|
+
coverage: number | null;
|
|
1375
|
+
/** Constituents in the basket on this date. `null` on a composite index. */
|
|
1376
|
+
basketSize: number | null;
|
|
1377
|
+
/** Mentions behind the reading. `null` on a composite index. */
|
|
1378
|
+
totalMentions: number | null;
|
|
1379
|
+
/** How the value was computed, and what any `null` fields mean. */
|
|
1380
|
+
methodologyNote: string;
|
|
1381
|
+
/** Per-entity breakdown. `null` on a composite index. */
|
|
1382
|
+
constituents: IndexConstituent[] | null;
|
|
1383
|
+
}
|
|
1384
|
+
/** One point on an index's scalar series. */
|
|
1385
|
+
interface IndexHistoryPoint {
|
|
1386
|
+
/** `"YYYY-MM-DD"`. */
|
|
1387
|
+
date: string;
|
|
1388
|
+
value: number | null;
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Historical series returned by `client.indexes.history()`.
|
|
1392
|
+
*
|
|
1393
|
+
* Point spacing follows the index, not the calendar: a weekly index emits one
|
|
1394
|
+
* point per Monday-Sunday bucket, a daily index one per day, and Market Mood
|
|
1395
|
+
* trading days only. Thin or low-coverage buckets are withheld rather than
|
|
1396
|
+
* published, so `history` can be shorter than `days` and can contain gaps. Plot
|
|
1397
|
+
* against `date`; never assume a fixed interval, and never read a missing date
|
|
1398
|
+
* as zero.
|
|
1399
|
+
*/
|
|
1400
|
+
interface IndexHistoryResponse {
|
|
1401
|
+
indexId: string;
|
|
1402
|
+
displayName: string;
|
|
1403
|
+
scale: string;
|
|
1404
|
+
/** The window you requested, echoed back. */
|
|
1405
|
+
days: number;
|
|
1406
|
+
history: IndexHistoryPoint[];
|
|
1407
|
+
}
|
|
1191
1408
|
|
|
1192
1409
|
interface AnalystConsensus {
|
|
1193
1410
|
ticker: string;
|
|
@@ -1309,6 +1526,58 @@ declare class Documents {
|
|
|
1309
1526
|
getStoriesByTicker(ticker: string, options?: GetStoriesByTickerOptions): Promise<Story[]>;
|
|
1310
1527
|
}
|
|
1311
1528
|
|
|
1529
|
+
/**
|
|
1530
|
+
* Earnings: what a company actually reported, after the fact.
|
|
1531
|
+
*
|
|
1532
|
+
* A quarter's results arrive as a press release, a filing, and a call, none of
|
|
1533
|
+
* which is a data structure. {@link getSummaries} is the assembled version, one
|
|
1534
|
+
* object per fiscal quarter, and {@link getRecent} is the cross-ticker view of
|
|
1535
|
+
* who reported lately. Pair them to drive a post-earnings sweep: list the
|
|
1536
|
+
* window, then pull each ticker's analysis report.
|
|
1537
|
+
*
|
|
1538
|
+
* The forward-looking half of the family lives on `client.calendar.getEarnings()`,
|
|
1539
|
+
* which covers scheduled dates and consensus EPS rather than results.
|
|
1540
|
+
*
|
|
1541
|
+
* @see EarningsQuarter
|
|
1542
|
+
*/
|
|
1543
|
+
declare class Earnings {
|
|
1544
|
+
private client;
|
|
1545
|
+
constructor(client: APIClient);
|
|
1546
|
+
/**
|
|
1547
|
+
* Per-quarter earnings analysis report for one ticker, newest first.
|
|
1548
|
+
*
|
|
1549
|
+
* Each quarter carries the editorial headline, the KPI cards that matter for
|
|
1550
|
+
* that company with year-over-year deltas, the guidance language as
|
|
1551
|
+
* management phrased it, and a summary of the earnings call.
|
|
1552
|
+
*
|
|
1553
|
+
* Branch on `isPreview`: a PRO key receives every hydrated quarter in full, a
|
|
1554
|
+
* FREE key receives the latest quarter shaped rather than truncated, plus
|
|
1555
|
+
* `totalCount`. {@link EarningsQuarter} documents which fields each tier
|
|
1556
|
+
* carries.
|
|
1557
|
+
*
|
|
1558
|
+
* A quarter typically appears within 48 hours of the company reporting, and
|
|
1559
|
+
* the call summary can arrive after the press-release content for the same
|
|
1560
|
+
* quarter, so read `generatedAt` and `transcriptGeneratedAt` rather than
|
|
1561
|
+
* assuming a fixed lag. A ticker with no stored quarter answers with an empty
|
|
1562
|
+
* `data` array, not a 404.
|
|
1563
|
+
*
|
|
1564
|
+
* Use canonical ticker symbols: `GOOGL` (not `GOOG`), `BRK.B` (not `BRK-B`).
|
|
1565
|
+
*/
|
|
1566
|
+
getSummaries(ticker: string, options?: GetEarningsSummariesOptions): Promise<PreviewResponse<EarningsQuarter[]>>;
|
|
1567
|
+
/**
|
|
1568
|
+
* Which covered companies reported on or after `today - days`, newest first.
|
|
1569
|
+
*
|
|
1570
|
+
* Every API key receives the full window it asks for, so `isPreview` is
|
|
1571
|
+
* always `false` here. The window is bounded by `reportDate`, so a quarter
|
|
1572
|
+
* reported inside it appears even when its call summary lands later, and an
|
|
1573
|
+
* empty `data` array means nobody in the covered set reported in that window.
|
|
1574
|
+
*
|
|
1575
|
+
* This is the backward-looking feed; `client.calendar.getEarnings()` is the
|
|
1576
|
+
* forward-looking one.
|
|
1577
|
+
*/
|
|
1578
|
+
getRecent(options?: GetRecentEarningsOptions): Promise<PreviewResponse<RecentEarningsEntry[]>>;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1312
1581
|
declare class EntityMetrics {
|
|
1313
1582
|
private client;
|
|
1314
1583
|
constructor(client: APIClient);
|
|
@@ -1502,7 +1771,7 @@ declare class Insider {
|
|
|
1502
1771
|
/**
|
|
1503
1772
|
* Get market-wide insider activity: top buys and sells aggregated by ticker.
|
|
1504
1773
|
*
|
|
1505
|
-
* PRO-gated. Free
|
|
1774
|
+
* PRO-gated. Free-tier users receive a preview (top 5 per direction)
|
|
1506
1775
|
* with `isPreview: true` in the response.
|
|
1507
1776
|
*/
|
|
1508
1777
|
getActivity(options?: GetInsiderOptions): Promise<PreviewResponse<InsiderActivityResponse>>;
|
|
@@ -1526,7 +1795,7 @@ declare class Politicians {
|
|
|
1526
1795
|
/**
|
|
1527
1796
|
* Get recent congressional STOCK Act trading activity across all politicians.
|
|
1528
1797
|
*
|
|
1529
|
-
* PRO-gated. Free
|
|
1798
|
+
* PRO-gated. Free-tier users receive a preview (top 5 trades)
|
|
1530
1799
|
* with `isPreview: true` in the response.
|
|
1531
1800
|
*
|
|
1532
1801
|
* The feed is longer than one response: a default 90-day window is routinely well over a
|
|
@@ -1621,7 +1890,7 @@ declare class Insights {
|
|
|
1621
1890
|
user(options?: GetUserInsightsOptions): Promise<PreviewResponse<Insight[]>>;
|
|
1622
1891
|
/**
|
|
1623
1892
|
* Get available insight types for a specific stock.
|
|
1624
|
-
*
|
|
1893
|
+
* API key required.
|
|
1625
1894
|
*
|
|
1626
1895
|
* Returns an array of insight type strings (e.g., `["sentiment_shift", "options_activity"]`).
|
|
1627
1896
|
*/
|
|
@@ -1755,7 +2024,14 @@ declare class Stocks {
|
|
|
1755
2024
|
getSentiment(ticker: string): Promise<PreviewResponse<StockSentiment>>;
|
|
1756
2025
|
/** Get related KB entities (people, products, partners). */
|
|
1757
2026
|
getEntities(ticker: string): Promise<StockEntity[]>;
|
|
1758
|
-
/**
|
|
2027
|
+
/**
|
|
2028
|
+
* Get AI-generated stock analysis report. Requires PRO tier.
|
|
2029
|
+
*
|
|
2030
|
+
* `depth: "deep"` returns the full curated report and consumes one report view on
|
|
2031
|
+
* metered tiers; the default `"basic"` returns the one-paragraph summary.
|
|
2032
|
+
*
|
|
2033
|
+
* The deprecated `forceRefresh` option is accepted and discarded, not forwarded.
|
|
2034
|
+
*/
|
|
1759
2035
|
getAISummary(ticker: string, options?: GetAISummaryOptions): Promise<AISummary>;
|
|
1760
2036
|
/** Get sentiment/mention metrics breakdown by entity. */
|
|
1761
2037
|
getMetricsBreakdown(ticker: string, metricType: string, options?: GetMetricsBreakdownOptions): Promise<MetricsBreakdown>;
|
|
@@ -1823,6 +2099,54 @@ declare class Stocks {
|
|
|
1823
2099
|
getKpiTypes(ticker: string): Promise<KpiTypeEntry[]>;
|
|
1824
2100
|
}
|
|
1825
2101
|
|
|
2102
|
+
/**
|
|
2103
|
+
* Indexes: composite scalars tracked over time, each blending its own inputs
|
|
2104
|
+
* into one number on a stated scale. Every index answers on the same envelope,
|
|
2105
|
+
* so you write one renderer and get every current and future SentiSense index.
|
|
2106
|
+
*
|
|
2107
|
+
* Two archetypes share that envelope. A **basket** index weight-averages
|
|
2108
|
+
* tracked entities and fills `constituents` / `basketSize` / `coverage` /
|
|
2109
|
+
* `totalMentions`; a **composite** index is built from signals instead and
|
|
2110
|
+
* returns `null` for all four by construction. See {@link IndexSnapshot}.
|
|
2111
|
+
*
|
|
2112
|
+
* @see IndexSnapshot
|
|
2113
|
+
*/
|
|
2114
|
+
declare class Indexes {
|
|
2115
|
+
private client;
|
|
2116
|
+
constructor(client: APIClient);
|
|
2117
|
+
/**
|
|
2118
|
+
* List every index the platform publishes: id, display name, one-line
|
|
2119
|
+
* description, the scale it lives on, its access tier, and where its richest
|
|
2120
|
+
* view lives.
|
|
2121
|
+
*
|
|
2122
|
+
* Iterate this rather than hardcoding ids. Every `indexId` it advertises
|
|
2123
|
+
* resolves on {@link get} and {@link history}.
|
|
2124
|
+
*/
|
|
2125
|
+
list(): Promise<IndexListResponse>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Latest reading for one index.
|
|
2128
|
+
*
|
|
2129
|
+
* Check `constituents` for `null` before iterating: it is `null` on a
|
|
2130
|
+
* composite index like `market-mood`, which has no constituents by
|
|
2131
|
+
* construction. For Market Mood this is the narrowed view; the phase band,
|
|
2132
|
+
* weekly change, per-signal breakdown and per-sector map live on
|
|
2133
|
+
* `client.marketMood.get()`, and both report the same headline number.
|
|
2134
|
+
*
|
|
2135
|
+
* @param indexId slug from {@link list}, e.g. `"fed-sentiment"`.
|
|
2136
|
+
*/
|
|
2137
|
+
get(indexId: string): Promise<IndexSnapshot>;
|
|
2138
|
+
/**
|
|
2139
|
+
* Historical scalar series for one index, for charting.
|
|
2140
|
+
*
|
|
2141
|
+
* Thin or low-coverage buckets are withheld, so the series can be shorter
|
|
2142
|
+
* than `days` and can contain gaps. Plot against each point's `date`.
|
|
2143
|
+
*
|
|
2144
|
+
* @param indexId slug from {@link list}.
|
|
2145
|
+
* @param days days of history to return. Defaults to the API's own 180.
|
|
2146
|
+
*/
|
|
2147
|
+
history(indexId: string, days?: number): Promise<IndexHistoryResponse>;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
1826
2150
|
/**
|
|
1827
2151
|
* Trackers: observational data products published as a standardized
|
|
1828
2152
|
* `TrackerSnapshot` envelope. Every tracker (institution rankings,
|
|
@@ -1877,8 +2201,10 @@ declare class SentiSense implements APIClient {
|
|
|
1877
2201
|
readonly marketMood: MarketMoodResource;
|
|
1878
2202
|
readonly marketSummary: MarketSummaryResource;
|
|
1879
2203
|
readonly kb: KB;
|
|
2204
|
+
readonly indexes: Indexes;
|
|
1880
2205
|
readonly trackers: Trackers;
|
|
1881
2206
|
readonly calendar: Calendar;
|
|
2207
|
+
readonly earnings: Earnings;
|
|
1882
2208
|
constructor(options?: SentiSenseOptions);
|
|
1883
2209
|
/** @internal */
|
|
1884
2210
|
get<T = unknown>(path: string, params?: object): Promise<T>;
|
|
@@ -1924,6 +2250,6 @@ declare class APIError extends SentiSenseError {
|
|
|
1924
2250
|
constructor(message: string, status: number, code?: string);
|
|
1925
2251
|
}
|
|
1926
2252
|
|
|
1927
|
-
declare const VERSION = "0.
|
|
2253
|
+
declare const VERSION = "0.36.0";
|
|
1928
2254
|
|
|
1929
|
-
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 EtfAggregateCoverage, type EtfAnalystAggregate, type EtfAnalystContributor, type EtfHolding, type EtfHoldings, type EtfInfo, type EtfInsiderAggregate, type EtfInsiderContributor, type EtfSentimentAggregate, type EtfSentimentReading, type FloatInfo, type Fundamentals, type FundamentalsPeriod, type FundamentalsPeriodsResponse, type GetAnalystActionsOptions, type GetAnalystMarketActivityOptions, type GetEarningsCalendarOptions, type GetEtfInsiderAggregateOptions, type GetHoldersOptions, type GetInsiderOptions, type GetInsightsOptions, type GetLatestInsightsOptions, type GetPoliticianActivityOptions, type GetPoliticiansOptions, type GetStockInsightsRangeOptions, type GetUserInsightsOptions, type Holder, type HolderNotableChanges, 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, 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 };
|
|
2255
|
+
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 EtfSentimentAggregate, type EtfSentimentReading, 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, 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 };
|