sentisense 0.63.1 → 0.65.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 +42 -7
- package/dist/cli.cjs +128 -13
- package/dist/index.cjs +31 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +212 -9
- package/dist/index.d.ts +212 -9
- package/dist/index.mjs +31 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1207,7 +1207,9 @@ var Stocks = class {
|
|
|
1207
1207
|
*
|
|
1208
1208
|
* Tiering: a PRO key always receives the full dossier. A FREE key receives it for the first
|
|
1209
1209
|
* ten calls each calendar month and a headline-only preview after that, with `isPreview`
|
|
1210
|
-
* true; calls that return a null `data` never spend that allowance.
|
|
1210
|
+
* true; calls that return a null `data` never spend that allowance. The headline preview has
|
|
1211
|
+
* no nested objects: its readings arrive flat as `data.ivRank1y`, `data.atmIv`,
|
|
1212
|
+
* `data.expectedMove1d`, `data.pcVol`, `data.pcVolPctl1y` and `data.maxPain`.
|
|
1211
1213
|
*/
|
|
1212
1214
|
async getOptionsSummary(ticker) {
|
|
1213
1215
|
return this.client.get(
|
|
@@ -1237,6 +1239,33 @@ var Stocks = class {
|
|
|
1237
1239
|
options
|
|
1238
1240
|
);
|
|
1239
1241
|
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Get one stock's or ETF's intraday options series for one session: its numbers at every
|
|
1244
|
+
* 15-minute cycle of the intraday board, oldest cycle first.
|
|
1245
|
+
*
|
|
1246
|
+
* Use it to test an intraday signal against what the board actually showed at each point in
|
|
1247
|
+
* the day, then compare it with the session's end-of-day row from
|
|
1248
|
+
* {@link Stocks.getOptionsHistory}. Each point carries call and put volume so far, the
|
|
1249
|
+
* put/call ratio, the unusual-contract count, the percentile of the largest qualifying
|
|
1250
|
+
* contract against the ticker's own year, and the ATM implied volatility. It never carries a
|
|
1251
|
+
* contract symbol, strike, price, premium, open interest or print size.
|
|
1252
|
+
*
|
|
1253
|
+
* **PRO only.** A FREE key receives the standard preview: `isPreview` true, `previewReason`
|
|
1254
|
+
* `"PRO_REQUIRED"`, an `upgrade` hint, and `data: null`.
|
|
1255
|
+
*
|
|
1256
|
+
* **No data is an empty `series`, not a null payload.** A weekend, a holiday, a session from
|
|
1257
|
+
* before the history was kept, a ticker outside the board and an unknown symbol all answer
|
|
1258
|
+
* with `data.series` empty. `data.missingCycles` lists cycles whose stored point could not be
|
|
1259
|
+
* read, which are unknown rather than absent. A malformed or future `session` rejects with
|
|
1260
|
+
* an `APIError` (status 400, code `invalid_session`). A 503 means the stored series could
|
|
1261
|
+
* not be read; it is retried like any other 503 and never answered with a partial series.
|
|
1262
|
+
*/
|
|
1263
|
+
async getOptionsIntradayHistory(ticker, options) {
|
|
1264
|
+
return this.client.get(
|
|
1265
|
+
`/api/v1/stocks/${encodeURIComponent(ticker.toUpperCase())}/options/intraday-history`,
|
|
1266
|
+
options
|
|
1267
|
+
);
|
|
1268
|
+
}
|
|
1240
1269
|
/**
|
|
1241
1270
|
* Get the SentiSense Rating for one stock: where it ranks against the other stocks rated
|
|
1242
1271
|
* that day, and the six dimensions the rank is blended from.
|
|
@@ -1359,7 +1388,7 @@ var Trackers = class {
|
|
|
1359
1388
|
};
|
|
1360
1389
|
|
|
1361
1390
|
// src/version.ts
|
|
1362
|
-
var VERSION = "0.
|
|
1391
|
+
var VERSION = "0.65.0";
|
|
1363
1392
|
|
|
1364
1393
|
// src/client.ts
|
|
1365
1394
|
var DEFAULT_BASE_URL = "https://app.sentisense.ai";
|