sentisense 0.60.0 → 0.62.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 +10 -2
- package/dist/cli.cjs +113 -36
- package/dist/index.cjs +41 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +439 -12
- package/dist/index.d.ts +439 -12
- package/dist/index.mjs +41 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -440,6 +440,19 @@ var Etfs = class {
|
|
|
440
440
|
async list() {
|
|
441
441
|
return this.client.get("/api/v1/etfs");
|
|
442
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* Get the quote snapshot for an ETF: price, day and 52-week range, volume, dividend
|
|
445
|
+
* yield, AUM, expense ratio, NAV and inception date.
|
|
446
|
+
*
|
|
447
|
+
* Fails with a 400 `APIError` whose `code` is `"ticker_is_not_etf"` when the symbol is a
|
|
448
|
+
* stock (use `stocks.getQuote()` for those), and a `NotFoundError` when there is no
|
|
449
|
+
* price data for the fund.
|
|
450
|
+
*/
|
|
451
|
+
async quote(ticker) {
|
|
452
|
+
return this.client.get(
|
|
453
|
+
`/api/v1/etfs/${encodeURIComponent(ticker.toUpperCase())}/quote`
|
|
454
|
+
);
|
|
455
|
+
}
|
|
443
456
|
/**
|
|
444
457
|
* Get the full holdings composition for an ETF, including per-holding weights
|
|
445
458
|
* and freshness metadata. Returns 404 for unknown ETFs or commodity-only funds.
|
|
@@ -1034,6 +1047,21 @@ var Stocks = class {
|
|
|
1034
1047
|
async getEntities(ticker) {
|
|
1035
1048
|
return this.client.get(`/api/v1/stocks/${encodeURIComponent(ticker)}/entities`);
|
|
1036
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Get the company knowledge graph around a stock: the people, products, peers and other
|
|
1052
|
+
* entities linked to the company, and the typed relationships between them.
|
|
1053
|
+
*
|
|
1054
|
+
* Every identifier in the response is a slug, the same handle the metric and document
|
|
1055
|
+
* endpoints take, so a node can be passed straight to them. `depth` is 1 (default) or 2,
|
|
1056
|
+
* `cap` limits the node count (1 to 200, default 75); out-of-range values are rejected
|
|
1057
|
+
* with a 400. A ticker with no graph returns a `NotFoundError`.
|
|
1058
|
+
*/
|
|
1059
|
+
async getGraph(ticker, options) {
|
|
1060
|
+
return this.client.get(
|
|
1061
|
+
`/api/v1/stocks/${encodeURIComponent(ticker.toUpperCase())}/graph`,
|
|
1062
|
+
options
|
|
1063
|
+
);
|
|
1064
|
+
}
|
|
1037
1065
|
/**
|
|
1038
1066
|
* Get AI-generated stock analysis report. Requires PRO tier.
|
|
1039
1067
|
*
|
|
@@ -1096,17 +1124,23 @@ var Stocks = class {
|
|
|
1096
1124
|
async getHistoricalRevenue(ticker) {
|
|
1097
1125
|
return this.client.get("/api/v1/stocks/fundamentals/historical/revenue", { ticker });
|
|
1098
1126
|
}
|
|
1099
|
-
/**
|
|
1100
|
-
|
|
1101
|
-
|
|
1127
|
+
/**
|
|
1128
|
+
* Get short interest history (FINRA), newest first: shares short, days to cover and
|
|
1129
|
+
* average daily volume per settlement date. `limit` defaults to 24 settlement dates.
|
|
1130
|
+
*/
|
|
1131
|
+
async getShortInterest(ticker, options) {
|
|
1132
|
+
return this.client.get("/api/v1/stocks/short-interest", { ticker, ...options });
|
|
1102
1133
|
}
|
|
1103
1134
|
/** Get float information. */
|
|
1104
1135
|
async getFloat(ticker) {
|
|
1105
1136
|
return this.client.get("/api/v1/stocks/float", { ticker });
|
|
1106
1137
|
}
|
|
1107
|
-
/**
|
|
1108
|
-
|
|
1109
|
-
|
|
1138
|
+
/**
|
|
1139
|
+
* Get daily short volume, newest first: shares sold short against total volume on the
|
|
1140
|
+
* reporting venues. `limit` defaults to 90 trading days.
|
|
1141
|
+
*/
|
|
1142
|
+
async getShortVolume(ticker, options) {
|
|
1143
|
+
return this.client.get("/api/v1/stocks/short-volume", { ticker, ...options });
|
|
1110
1144
|
}
|
|
1111
1145
|
/**
|
|
1112
1146
|
* Get company-specific KPI time-series for a ticker. Returns curated GAAP and
|
|
@@ -1318,7 +1352,7 @@ var Trackers = class {
|
|
|
1318
1352
|
};
|
|
1319
1353
|
|
|
1320
1354
|
// src/version.ts
|
|
1321
|
-
var VERSION = "0.
|
|
1355
|
+
var VERSION = "0.62.0";
|
|
1322
1356
|
|
|
1323
1357
|
// src/client.ts
|
|
1324
1358
|
var DEFAULT_BASE_URL = "https://app.sentisense.ai";
|