@gloom-sh/terminal 0.20.22 → 0.20.23
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/package.json +1 -1
- package/src/account/heard-from-question.tsx +6 -4
- package/src/account/heard-from.ts +3 -4
- package/src/api-client/exchange-announcements.ts +2 -2
- package/src/api-client/heard-from.ts +5 -7
- package/src/api-client/ownership-disclosures.ts +38 -5
- package/src/api-client/types/ticker-data.ts +3 -1
- package/src/architecture/dom-cell-metrics-allowlist.json +2 -2
- package/src/cli/commands/market.ts +5 -3
- package/src/cli/commands/overview.ts +7 -9
- package/src/cli/listing-arg.ts +45 -18
- package/src/cli/pane-functions/catalog-snapshot.json +2 -2
- package/src/cli/pane-functions/data.ts +3 -1
- package/src/cli/pane-functions/freshness.ts +6 -1
- package/src/cli/pane-functions/function-help.ts +0 -2
- package/src/cli/pane-functions/market-session.ts +12 -2
- package/src/cli/pane-functions/screenshot-payload.ts +3 -1
- package/src/cli/symbol-list.ts +52 -14
- package/src/cli/ticker-resolution.ts +133 -38
- package/src/components/chart/composite/composite-chart.tsx +12 -0
- package/src/components/chart/composite/types.ts +18 -0
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +38 -15
- package/src/components/chart-table/header.tsx +11 -5
- package/src/components/chart-table/selection.ts +20 -1
- package/src/components/data-table/view.tsx +2 -0
- package/src/components/feed-data-table/stack-view.tsx +85 -5
- package/src/components/layout/pane/header.tsx +12 -30
- package/src/components/ticker/badge/index.tsx +9 -4
- package/src/components/ticker/badge/list.tsx +3 -1
- package/src/components/ui/data-table/index.tsx +7 -1
- package/src/components/ui/data-table/muted-row.tsx +47 -0
- package/src/components/ui/data-table/opentui/index.tsx +42 -11
- package/src/components/ui/data-table/spill.ts +36 -0
- package/src/components/ui/data-table/types.ts +17 -1
- package/src/components/ui/data-table/use-column-order.ts +11 -0
- package/src/components/ui/icon.tsx +50 -3
- package/src/components/ui/list-view.tsx +2 -2
- package/src/components/ui/table-layout.ts +32 -0
- package/src/components/ui/terminal-hover-label.tsx +49 -0
- package/src/components/use-pinned-moment.ts +222 -13
- package/src/core/state/app/state.ts +11 -2
- package/src/core/state/app/types.ts +2 -1
- package/src/data/sqlite/access.ts +14 -1
- package/src/data/sqlite/checkpointer.ts +2 -2
- package/src/data/sqlite/database.ts +4 -0
- package/src/docs/snapshot.json +180 -26
- package/src/i18n/es.ts +1 -0
- package/src/i18n/ja.ts +1 -0
- package/src/i18n/ko.ts +1 -0
- package/src/i18n/zh-cn.ts +1 -0
- package/src/i18n/zh-tw.ts +1 -0
- package/src/market-data/market/freshness.ts +2 -2
- package/src/market-data/market/globex-day.ts +14 -0
- package/src/market-data/published-us-sessions.ts +3 -2
- package/src/market-data/quotes/live-valuation.ts +4 -2
- package/src/market-data/quotes/metadata.ts +48 -5
- package/src/market-data/quotes/regular-session-valuation.ts +12 -1
- package/src/plugins/builtin/alerts/history-pane.tsx +19 -3
- package/src/plugins/builtin/broker-trading/orders.tsx +4 -2
- package/src/plugins/builtin/chat/attachments/desktop.tsx +46 -12
- package/src/plugins/builtin/chat/channels.ts +5 -2
- package/src/plugins/builtin/chat/content/composer-runtime.ts +64 -65
- package/src/plugins/builtin/chat/content/footer.tsx +17 -7
- package/src/plugins/builtin/chat/content/index.tsx +108 -36
- package/src/plugins/builtin/chat/content/new-dm-dialog.tsx +21 -8
- package/src/plugins/builtin/chat/content/selection-runtime.ts +16 -0
- package/src/plugins/builtin/chat/content/shortcuts.ts +3 -0
- package/src/plugins/builtin/chat/content/snapshot.ts +37 -13
- package/src/plugins/builtin/chat/content/transcript.tsx +12 -0
- package/src/plugins/builtin/chat/content/types.ts +2 -0
- package/src/plugins/builtin/chat/controller/channels.ts +15 -15
- package/src/plugins/builtin/chat/controller/index.ts +140 -34
- package/src/plugins/builtin/chat/controller/lifecycle.ts +8 -12
- package/src/plugins/builtin/chat/controller/persistence.ts +32 -4
- package/src/plugins/builtin/chat/controller/send.ts +41 -17
- package/src/plugins/builtin/chat/controller/session-runtime.ts +28 -27
- package/src/plugins/builtin/chat/controller/state.ts +17 -8
- package/src/plugins/builtin/chat/controller/storage.ts +41 -4
- package/src/plugins/builtin/chat/controller/view.ts +6 -3
- package/src/plugins/builtin/chat/index.tsx +1 -1
- package/src/plugins/builtin/chat/layout.ts +8 -1
- package/src/plugins/builtin/chat/message/desktop.tsx +15 -11
- package/src/plugins/builtin/chat/message/header.tsx +112 -30
- package/src/plugins/builtin/chat/message/reactions.tsx +10 -11
- package/src/plugins/builtin/chat/message/render-state.ts +4 -2
- package/src/plugins/builtin/chat/message/terminal.tsx +13 -15
- package/src/plugins/builtin/chat/message/types.ts +5 -0
- package/src/plugins/builtin/cloud-tweets/table.tsx +25 -2
- package/src/plugins/builtin/company-kpis/model.ts +11 -3
- package/src/plugins/builtin/correlation/compute.ts +6 -1
- package/src/plugins/builtin/custom-view/loader.ts +95 -34
- package/src/plugins/builtin/custom-view/pane.tsx +31 -41
- package/src/plugins/builtin/custom-view/table.ts +201 -0
- package/src/plugins/builtin/dividend-yield/client.ts +14 -17
- package/src/plugins/builtin/dividend-yield/headless.ts +0 -1
- package/src/plugins/builtin/dividend-yield/model.ts +45 -6
- package/src/plugins/builtin/dividend-yield/pane.tsx +70 -7
- package/src/plugins/builtin/dividend-yield/types.ts +2 -3
- package/src/plugins/builtin/dividend-yield/view.ts +22 -2
- package/src/plugins/builtin/econ/calendar-model.ts +135 -0
- package/src/plugins/builtin/econ/columns.ts +132 -0
- package/src/plugins/builtin/econ/index.tsx +25 -65
- package/src/plugins/builtin/holders/disclosures-view.tsx +9 -6
- package/src/plugins/builtin/holders/disclosures.ts +20 -6
- package/src/plugins/builtin/holders/headless.ts +2 -2
- package/src/plugins/builtin/ipo-calendar/model.ts +30 -1
- package/src/plugins/builtin/ipo-calendar/pane.tsx +7 -3
- package/src/plugins/builtin/kelly-sizer/headless.ts +9 -4
- package/src/plugins/builtin/kelly-sizer/pane.tsx +19 -9
- package/src/plugins/builtin/kelly-sizer/units.ts +26 -0
- package/src/plugins/builtin/market-halts/pane.tsx +14 -2
- package/src/plugins/builtin/news/wire/news/row.ts +5 -12
- package/src/plugins/builtin/news/wire/news/table.tsx +32 -41
- package/src/plugins/builtin/pe-band/headless.ts +1 -1
- package/src/plugins/builtin/pe-band/model.ts +41 -18
- package/src/plugins/builtin/pe-band/pane.tsx +6 -5
- package/src/plugins/builtin/perps/equity-row.tsx +4 -6
- package/src/plugins/builtin/perps/markets-section.tsx +19 -15
- package/src/plugins/builtin/perps/model.ts +10 -2
- package/src/plugins/builtin/portfolio-list/cli/import-positions.ts +6 -18
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +1 -1
- package/src/plugins/builtin/portfolio-list/pane/purchase-date-fx.ts +1 -1
- package/src/plugins/builtin/portfolio-list/positions-import/index.tsx +1 -1
- package/src/plugins/builtin/portfolio-list/positions-import/lookup.ts +28 -57
- package/src/plugins/builtin/research/event-data.ts +3 -1
- package/src/plugins/builtin/research/event-model.ts +17 -15
- package/src/plugins/builtin/research/relative-valuation-columns.ts +19 -6
- package/src/plugins/builtin/research/relative-valuation-headless.ts +1 -1
- package/src/plugins/builtin/scanner/flow-pane.tsx +10 -0
- package/src/plugins/builtin/sec/exchange-filings.ts +32 -7
- package/src/plugins/builtin/sec/headless.ts +8 -8
- package/src/plugins/builtin/sec/index.tsx +69 -29
- package/src/plugins/builtin/shared/report-freshness.ts +4 -1
- package/src/plugins/builtin/ticker-detail/financials/aggregation.ts +1 -2
- package/src/plugins/builtin/ticker-detail/financials/exchange-table.tsx +61 -0
- package/src/plugins/builtin/ticker-detail/financials/model.ts +38 -4
- package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +9 -2
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +68 -39
- package/src/plugins/builtin/ticker-detail/headless.ts +4 -1
- package/src/plugins/builtin/ticker-detail/overview/model.ts +61 -15
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +5 -0
- package/src/plugins/builtin/time-sales/model.ts +16 -9
- package/src/plugins/builtin/time-sales/pane.tsx +27 -24
- package/src/plugins/builtin/treasury-daily/client.ts +43 -9
- package/src/plugins/builtin/treasury-daily/pane.tsx +48 -27
- package/src/plugins/builtin/treasury-daily/resource.ts +33 -0
- package/src/portfolio/positions-import/parse.ts +14 -6
- package/src/portfolio/positions-import/plan.ts +3 -2
- package/src/react/async-resource.ts +3 -1
- package/src/renderers/dom/data-table/index.tsx +40 -0
- package/src/renderers/dom/data-table/row.tsx +39 -3
- package/src/renderers/dom/desktop/icons.tsx +147 -3
- package/src/renderers/dom/desktop/popover.tsx +2 -2
- package/src/renderers/dom/host/media-surface.tsx +204 -45
- package/src/renderers/dom/host/tabs.tsx +1 -0
- package/src/renderers/dom/styles.css +14 -2
- package/src/renderers/electrobun/bun/desktop/backend.ts +2 -0
- package/src/renderers/electrobun/bun/desktop/rpc-timing.ts +9 -3
- package/src/renderers/electrobun/shared/protocol.ts +2 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +5 -2
- package/src/renderers/electrobun/view/rpc-timeout.ts +44 -3
- package/src/sources/gloomberb-cloud/index.ts +8 -7
- package/src/sources/gloomberb-cloud/normalizers.ts +7 -2
- package/src/sources/listing-symbols.ts +7 -1
- package/src/sources/provider-router/cache.ts +5 -4
- package/src/sources/provider-router/financials.ts +40 -18
- package/src/state/app/tab-cursor.ts +47 -6
- package/src/telemetry/stall-clocks.ts +3 -0
- package/src/telemetry/stall-reports.ts +12 -3
- package/src/telemetry/windows-process-activity.ts +41 -0
- package/src/telemetry/windows-time.ts +32 -0
- package/src/test-support/scoped-earnings.ts +24 -0
- package/src/tickers/terminal-codes.ts +1 -6
- package/src/time-series/daily-valuation.ts +13 -6
- package/src/time-series/filed-trailing-eps.ts +16 -3
- package/src/time-series/fundamentals/current-valuation.ts +8 -0
- package/src/time-series/fundamentals/historical-valuation.ts +20 -0
- package/src/time-series/fundamentals/series.ts +13 -1
- package/src/time-series/valuation-currency.ts +2 -0
- package/src/types/financials.ts +46 -10
- package/src/ui/dialog-context.ts +8 -0
- package/src/utils/datetime-format.ts +23 -1
- package/src/utils/declared-dividends.ts +12 -2
- package/src/utils/exchange-announcements.ts +4 -1
- package/src/utils/exchange-notation.generated.ts +3 -1
- package/src/utils/exchanges.ts +2 -1
- package/src/utils/fundamentals.ts +1 -0
- package/src/utils/main-thread-stall.ts +9 -1
- package/src/utils/rpc-timeout-error.ts +36 -11
- package/src/utils/sec.ts +3 -1
- package/src/utils/share-multiples.ts +1 -1
- package/src/utils/stall-process-activity.ts +70 -0
- package/src/utils/statement-scope.ts +103 -0
- package/src/utils/trailing-eps.ts +1 -1
- package/src/utils/zoned-date-time.ts +1 -0
|
@@ -42,6 +42,8 @@ export {
|
|
|
42
42
|
};
|
|
43
43
|
export type { AppAction, AppState, CollectionSortPreference, PaneRuntimeState };
|
|
44
44
|
|
|
45
|
+
const defaultInputCaptureOwner = {};
|
|
46
|
+
|
|
45
47
|
/** One more open of the empty command bar; past the introduction the count stays put. */
|
|
46
48
|
function countEmptyCommandBarOpen(state: AppState): AppState {
|
|
47
49
|
const commandBarOpens = recordCommandBarOpen(state.config.commandBarOpens);
|
|
@@ -251,8 +253,15 @@ export function appReducer(state: AppState, action: AppAction): AppState {
|
|
|
251
253
|
: { ...state, config };
|
|
252
254
|
}
|
|
253
255
|
|
|
254
|
-
case "SET_INPUT_CAPTURED":
|
|
255
|
-
|
|
256
|
+
case "SET_INPUT_CAPTURED": {
|
|
257
|
+
const owner = action.owner ?? defaultInputCaptureOwner;
|
|
258
|
+
const owners = state.inputCaptureOwners ?? (state.inputCaptured ? [defaultInputCaptureOwner] : []);
|
|
259
|
+
const inputCaptureOwners = new Set(owners);
|
|
260
|
+
if (inputCaptureOwners.has(owner) === action.captured) return state;
|
|
261
|
+
if (action.captured) inputCaptureOwners.add(owner);
|
|
262
|
+
else inputCaptureOwners.delete(owner);
|
|
263
|
+
return { ...state, inputCaptureOwners, inputCaptured: inputCaptureOwners.size > 0 };
|
|
264
|
+
}
|
|
256
265
|
|
|
257
266
|
case "SET_EXCHANGE_RATE": {
|
|
258
267
|
const exchangeRates = new Map(state.exchangeRates);
|
|
@@ -113,6 +113,7 @@ export interface AppState {
|
|
|
113
113
|
initialized: boolean;
|
|
114
114
|
statusBarVisible: boolean;
|
|
115
115
|
inputCaptured: boolean;
|
|
116
|
+
inputCaptureOwners?: ReadonlySet<object>;
|
|
116
117
|
updateAvailable: ReleaseInfo | null;
|
|
117
118
|
updateProgress: UpdateProgress | null;
|
|
118
119
|
updateCheckInProgress: boolean;
|
|
@@ -172,7 +173,7 @@ export type AppAction =
|
|
|
172
173
|
| { type: "SET_UPDATE_NOTICE"; notice: string | null }
|
|
173
174
|
/** Plugins switched on or off; `focusedPaneId` moves focus off a pane that just went hidden. */
|
|
174
175
|
| { type: "SET_DISABLED_PLUGINS"; disabledPlugins: string[]; focusedPaneId?: string | null }
|
|
175
|
-
| { type: "SET_INPUT_CAPTURED"; captured: boolean }
|
|
176
|
+
| { type: "SET_INPUT_CAPTURED"; captured: boolean; owner?: object }
|
|
176
177
|
/** @deprecated Only writes the unused `AppState.exchangeRates`. Use `useFxRatesMap`. */
|
|
177
178
|
| { type: "SET_EXCHANGE_RATE"; currency: string; rate: number }
|
|
178
179
|
/** @deprecated Only writes the unused `AppState.exchangeRates`. Use `useFxRatesMap`. */
|
|
@@ -114,6 +114,8 @@ export interface SqliteAccessOptions {
|
|
|
114
114
|
* command has nothing better to do.
|
|
115
115
|
*/
|
|
116
116
|
interactive?: boolean;
|
|
117
|
+
/** Deadline for a command's durable write only; reads and cache work keep their own retries. */
|
|
118
|
+
commandWriteWaitMs?: number;
|
|
117
119
|
/**
|
|
118
120
|
* The connection runs `synchronous=NORMAL`, as it does once WAL took, and
|
|
119
121
|
* a write of user data switches to `FULL` for its commit. Without it the
|
|
@@ -211,6 +213,17 @@ export function createSqliteAccess(db: Database, options: SqliteAccessOptions =
|
|
|
211
213
|
};
|
|
212
214
|
|
|
213
215
|
if (!options.interactive) {
|
|
216
|
+
const commandWriteWaitMs = options.commandWriteWaitMs;
|
|
217
|
+
const writeWithLockWait = (operationName: string, write: () => void): void => {
|
|
218
|
+
if (commandWriteWaitMs === undefined) return withSqliteBusyRetry(operationName, write);
|
|
219
|
+
const previous = db.query<{ timeout: number }, []>("PRAGMA busy_timeout").get()!.timeout;
|
|
220
|
+
db.exec("PRAGMA busy_timeout=0");
|
|
221
|
+
try {
|
|
222
|
+
withSqliteLockWait(operationName, write, commandWriteWaitMs);
|
|
223
|
+
} finally {
|
|
224
|
+
db.exec(`PRAGMA busy_timeout=${previous}`);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
214
227
|
return {
|
|
215
228
|
readCache: (operationName, read) => trySqliteBusyOperation(operationName, read),
|
|
216
229
|
writeCache: (operationName, write) => trySqliteBusyOperation(operationName, () => {
|
|
@@ -220,7 +233,7 @@ export function createSqliteAccess(db: Database, options: SqliteAccessOptions =
|
|
|
220
233
|
run: (operationName, statement) => withSqliteBusyRetry(operationName, statement),
|
|
221
234
|
write: (operationName, write, writeOptions) => {
|
|
222
235
|
try {
|
|
223
|
-
durable(() =>
|
|
236
|
+
durable(() => writeWithLockWait(operationName, write));
|
|
224
237
|
} finally {
|
|
225
238
|
settle({ settled: writeOptions?.settled });
|
|
226
239
|
}
|
|
@@ -28,7 +28,7 @@ const CLOSE_WAIT_MS = 1_000;
|
|
|
28
28
|
* checkpoint measured on Windows took under a second, and the slowest
|
|
29
29
|
* flush in stall reports 8 s.
|
|
30
30
|
*/
|
|
31
|
-
const
|
|
31
|
+
export const CHECKPOINTER_STUCK_AFTER_MS = 30_000;
|
|
32
32
|
|
|
33
33
|
const checkpointLog = debugLog.createLogger("sqlite");
|
|
34
34
|
|
|
@@ -159,7 +159,7 @@ export function startWalCheckpointer(
|
|
|
159
159
|
if (typeof Worker === "undefined" || typeof Blob === "undefined" || typeof URL.createObjectURL !== "function") return null;
|
|
160
160
|
let worker: Worker;
|
|
161
161
|
const source = URL.createObjectURL(new Blob([options.workerSource ?? WORKER_SOURCE], { type: "application/javascript" }));
|
|
162
|
-
const stuckAfterMs = options.stuckAfterMs ??
|
|
162
|
+
const stuckAfterMs = options.stuckAfterMs ?? CHECKPOINTER_STUCK_AFTER_MS;
|
|
163
163
|
try {
|
|
164
164
|
worker = new Worker(source);
|
|
165
165
|
} catch (error) {
|
|
@@ -5,6 +5,7 @@ import { restrictFileSync } from "../../utils/private-files";
|
|
|
5
5
|
import { createSqliteAccess, type SqliteAccess } from "./access";
|
|
6
6
|
import {
|
|
7
7
|
CHECKPOINT_DELAY_MS,
|
|
8
|
+
CHECKPOINTER_STUCK_AFTER_MS,
|
|
8
9
|
LAZY_CHECKPOINT_DELAY_MS,
|
|
9
10
|
SQLITE_BACKSTOP_AUTOCHECKPOINT_PAGES,
|
|
10
11
|
SQLITE_DEFAULT_AUTOCHECKPOINT_PAGES,
|
|
@@ -101,6 +102,8 @@ export interface SqliteDatabaseOptions {
|
|
|
101
102
|
holdCommitsDuringFlush?: boolean;
|
|
102
103
|
/** Tests only: the WAL checkpointer's thread, how long it may go silent, and what it reports. */
|
|
103
104
|
checkpointer?: WalCheckpointerOptions;
|
|
105
|
+
/** Overrides the command's user-write lock deadline. */
|
|
106
|
+
commandWriteWaitMs?: number;
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
export class SqliteDatabase {
|
|
@@ -170,6 +173,7 @@ export class SqliteDatabase {
|
|
|
170
173
|
this.access = createSqliteAccess(this.connection, {
|
|
171
174
|
interactive: options.interactive,
|
|
172
175
|
relaxedCommits: wal,
|
|
176
|
+
commandWriteWaitMs: options.commandWriteWaitMs ?? (onDisk && wal && process.platform === "win32" ? CHECKPOINTER_STUCK_AFTER_MS : undefined),
|
|
173
177
|
...(checkpointer ? {
|
|
174
178
|
onCommit: (kind) => checkpointer.nudge(kind === "user" ? CHECKPOINT_DELAY_MS : LAZY_CHECKPOINT_DELAY_MS),
|
|
175
179
|
flushedElsewhere: () => checkpointerRunning,
|
package/src/docs/snapshot.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"site": "https://gloom.sh",
|
|
4
|
-
"updatedAt": "2026-11-
|
|
4
|
+
"updatedAt": "2026-11-27",
|
|
5
5
|
"categories": [
|
|
6
6
|
{
|
|
7
7
|
"id": "research",
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"code": "RV",
|
|
232
232
|
"name": "Relative valuation",
|
|
233
233
|
"description": "Multiples across peers",
|
|
234
|
-
"detail": "
|
|
234
|
+
"detail": "Valuation and operating metrics for a peer group in one table: market cap, P/E, EV/EBITDA, margins, growth, and more.",
|
|
235
235
|
"category": "research",
|
|
236
236
|
"arg": "NVDA, AMD, AVGO",
|
|
237
237
|
"shot": "https://gloom.sh/screenshots/fn/RV.png",
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
"code": "MEMB",
|
|
746
746
|
"name": "Index and ETF members",
|
|
747
747
|
"description": "ETF holdings, member returns and index changes",
|
|
748
|
-
"detail": "Holdings of SPY, QQQ, IVV, IWM and other index, sector, thematic and bond ETFs, with weights, member returns, daily contributions and index changes. Leveraged funds, USO and BITO list their swaps and futures, bond funds their bonds, and the gold, silver and crypto trusts the metal or coin they hold. SPX uses IVV holdings.",
|
|
748
|
+
"detail": "Holdings of SPY, QQQ, IVV, IWM and other index, sector, thematic and bond ETFs, with weights, member returns, daily contributions and index changes. Leveraged funds, single-stock funds such as NVDL, USO and BITO list their swaps and futures, bond funds their largest 2,000 bonds, and the gold, silver and crypto trusts the metal or coin they hold. SPX uses IVV holdings.",
|
|
749
749
|
"category": "markets",
|
|
750
750
|
"arg": "SPY",
|
|
751
751
|
"shot": "https://gloom.sh/screenshots/fn/MEMB.png"
|
|
@@ -1390,6 +1390,15 @@
|
|
|
1390
1390
|
"shot": "https://gloom.sh/screenshots/fn/HDS.png",
|
|
1391
1391
|
"lesson": "/academy/compare-screen-follow-money/who-owns-it/holders-and-13f"
|
|
1392
1392
|
},
|
|
1393
|
+
{
|
|
1394
|
+
"code": "CCASSM",
|
|
1395
|
+
"name": "Hong Kong custody scanner",
|
|
1396
|
+
"description": "CCASS custody changes and broker holdings",
|
|
1397
|
+
"detail": "CCASSM opens Big Changes, alongside Deposits, Concentration, Southbound and Broker. Enter on a row opens the stock’s CCASS view; a custody change alone does not prove a trade.",
|
|
1398
|
+
"category": "ownership",
|
|
1399
|
+
"arg": "B01955",
|
|
1400
|
+
"lesson": "/academy/compare-screen-follow-money/who-owns-it/hong-kong-custody"
|
|
1401
|
+
},
|
|
1393
1402
|
{
|
|
1394
1403
|
"code": "13F",
|
|
1395
1404
|
"name": "13F funds",
|
|
@@ -1409,6 +1418,15 @@
|
|
|
1409
1418
|
"shot": "https://gloom.sh/screenshots/fn/INS.png",
|
|
1410
1419
|
"lesson": "/academy/compare-screen-follow-money/who-owns-it/insider-trades"
|
|
1411
1420
|
},
|
|
1421
|
+
{
|
|
1422
|
+
"code": "DILU",
|
|
1423
|
+
"name": "Equity dilution",
|
|
1424
|
+
"description": "Shelves, offerings and Form 144 notices",
|
|
1425
|
+
"detail": "DILU MSTR shows shelf and at-the-market offering capacity, offering records and proposed resales. Capacity is not issuance, and a Form 144 notice is not a completed sale.",
|
|
1426
|
+
"category": "ownership",
|
|
1427
|
+
"arg": "MSTR",
|
|
1428
|
+
"lesson": "/academy/fundamentals-and-earnings/events-and-deals/equity-dilution"
|
|
1429
|
+
},
|
|
1412
1430
|
{
|
|
1413
1431
|
"code": "CG",
|
|
1414
1432
|
"name": "Congress trades",
|
|
@@ -1885,7 +1903,8 @@
|
|
|
1885
1903
|
"items": [
|
|
1886
1904
|
"**Checksum:** compare `Get-FileHash` on the installer with the SHA-256 on the [release page](https://github.com/gloom-sh/gloomberb/releases/latest).",
|
|
1887
1905
|
"**Plugins from GitHub**, such as Interactive Brokers, need [Git for Windows](https://git-scm.com/download/win).",
|
|
1888
|
-
"**Versions:** Windows 11 x64 is tested. Windows on Arm runs the x64 build."
|
|
1906
|
+
"**Versions:** Windows 11 x64 is tested. Windows on Arm runs the x64 build.",
|
|
1907
|
+
"**CSV in Excel:** open an export with **Data > From Text/CSV**, File Origin **65001: Unicode (UTF-8)**, delimiter **Comma** (**Semicolon** with `--decimal comma`). A double-click misreads characters such as `·`."
|
|
1889
1908
|
]
|
|
1890
1909
|
}
|
|
1891
1910
|
]
|
|
@@ -2400,7 +2419,7 @@
|
|
|
2400
2419
|
},
|
|
2401
2420
|
{
|
|
2402
2421
|
"type": "paragraph",
|
|
2403
|
-
"text": "Related: [PF](/docs/functions#pf), [PORT](/docs/functions#port) for risk, [CLI](/docs/cli-portfolios)."
|
|
2422
|
+
"text": "Related: [PF](/docs/functions#pf), [PORT](/docs/functions#port) for risk, [CLI](/docs/cli-portfolios), and IBKR statement guides on [Forex realized P/L](/answers/ibkr-forex-realized-pnl-explained), [cost basis vs average price](/answers/ibkr-cost-basis-price-vs-average-price) and [TWR vs MWR](/answers/ibkr-performance-twr-vs-mwr-deposits)."
|
|
2404
2423
|
}
|
|
2405
2424
|
]
|
|
2406
2425
|
},
|
|
@@ -3878,7 +3897,77 @@
|
|
|
3878
3897
|
},
|
|
3879
3898
|
{
|
|
3880
3899
|
"type": "paragraph",
|
|
3881
|
-
"text": "Learn the idea in the Academy: [Dealer gamma](/academy/options-and-volatility/positioning-and-flow/dealer-gamma)."
|
|
3900
|
+
"text": "Learn the idea in the Academy: [Dealer gamma](/academy/options-and-volatility/positioning-and-flow/dealer-gamma). Screening puts or covered calls? See [cash-secured put and covered call screeners](/answers/cash-secured-put-and-covered-call-screener)."
|
|
3901
|
+
}
|
|
3902
|
+
]
|
|
3903
|
+
},
|
|
3904
|
+
{
|
|
3905
|
+
"slug": "equity-dilution",
|
|
3906
|
+
"title": "Equity dilution (DILU)",
|
|
3907
|
+
"lead": "Run `DILU MSTR` to open Strategy's **Overview**. A shelf registration lets a company offer securities over time.",
|
|
3908
|
+
"category": "Understand the data",
|
|
3909
|
+
"tags": [
|
|
3910
|
+
"DILU",
|
|
3911
|
+
"dilution",
|
|
3912
|
+
"shelf",
|
|
3913
|
+
"ATM",
|
|
3914
|
+
"Form 144"
|
|
3915
|
+
],
|
|
3916
|
+
"updatedAt": "2026-11-27",
|
|
3917
|
+
"blocks": [
|
|
3918
|
+
{
|
|
3919
|
+
"type": "paragraph",
|
|
3920
|
+
"text": "An at-the-market (ATM) program lets it sell shares at prevailing market prices. Capacity is what could be sold, not how much has been issued. **Offerings** lists individual offering entries."
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"type": "paragraph",
|
|
3924
|
+
"text": "**Form 144** is a notice of a proposed resale, not confirmation that the sale happened. A holder selling existing shares does not itself create new shares."
|
|
3925
|
+
},
|
|
3926
|
+
{
|
|
3927
|
+
"type": "paragraph",
|
|
3928
|
+
"text": "Open the **Scanner** tab for **Form 144 Feed**, **Active ATMs** or **All Active Shelves**. `DILU` alone uses the active ticker if there is one; otherwise it asks for a ticker rather than opening the scanner."
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
"type": "paragraph",
|
|
3932
|
+
"text": "On the web: [Equity dilution](/dilution), [MSTR](/dilution/MSTR), [Form 144 feed](/dilution/form-144). In the Academy: [Capacity, issuance and resale](/academy/fundamentals-and-earnings/events-and-deals/equity-dilution)."
|
|
3933
|
+
}
|
|
3934
|
+
]
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
"slug": "ccass",
|
|
3938
|
+
"title": "Hong Kong custody scanner (CCASSM)",
|
|
3939
|
+
"lead": "Scan Hong Kong CCASS custody changes and drill into a stock or participant.",
|
|
3940
|
+
"category": "Understand the data",
|
|
3941
|
+
"tags": [
|
|
3942
|
+
"CCASSM",
|
|
3943
|
+
"CCASS",
|
|
3944
|
+
"Hong Kong",
|
|
3945
|
+
"custody",
|
|
3946
|
+
"Stock Connect"
|
|
3947
|
+
],
|
|
3948
|
+
"updatedAt": "2026-11-27",
|
|
3949
|
+
"blocks": [
|
|
3950
|
+
{
|
|
3951
|
+
"type": "paragraph",
|
|
3952
|
+
"text": "Run `CCASSM` for **Big Changes**, then switch tabs to compare five views of Hong Kong's Central Clearing and Settlement System (CCASS):"
|
|
3953
|
+
},
|
|
3954
|
+
{
|
|
3955
|
+
"type": "list",
|
|
3956
|
+
"items": [
|
|
3957
|
+
"**Big Changes:** large changes in a participant's holdings of a stock.",
|
|
3958
|
+
"**Deposits:** changes marked as physical share deposits. Jump there with `CCASSM deposits`.",
|
|
3959
|
+
"**Concentration:** how much of a stock sits with its top five or ten participants.",
|
|
3960
|
+
"**Southbound:** Stock Connect Southbound holdings and changes by stock.",
|
|
3961
|
+
"**Broker:** holdings by stock for one participant. Try `CCASSM B01955`."
|
|
3962
|
+
]
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
"type": "paragraph",
|
|
3966
|
+
"text": "Select a stock row and press Enter to open its **CCASS** custody view. For Tencent, you can open it directly with `CCASS 0700.HK`. A custody change or deposit is not proof of a trade, a change in beneficial ownership or a placement."
|
|
3967
|
+
},
|
|
3968
|
+
{
|
|
3969
|
+
"type": "paragraph",
|
|
3970
|
+
"text": "On the web: [Hong Kong custody](/ccass), [Tencent custody](/ccass/0700), [participant B01955](/ccass/brokers/B01955). In the Academy: [Custody versus ownership](/academy/compare-screen-follow-money/who-owns-it/hong-kong-custody)."
|
|
3882
3971
|
}
|
|
3883
3972
|
]
|
|
3884
3973
|
},
|
|
@@ -4478,6 +4567,7 @@
|
|
|
4478
4567
|
"type": "list",
|
|
4479
4568
|
"items": [
|
|
4480
4569
|
"`--output <file>` writes the export as UTF-8 and prints its path. On Windows, use it rather than `>`, which writes UTF-16 in PowerShell 5.1.",
|
|
4570
|
+
"In Excel, load a `--csv` export with **Data > From Text/CSV**: File Origin **65001: Unicode (UTF-8)**, delimiter **Comma**, or **Semicolon** with `--decimal comma`. Exports carry no byte-order mark, so a double-click misreads characters such as `·`.",
|
|
4481
4571
|
"`--limit n` caps rows and `--refresh` skips the cache.",
|
|
4482
4572
|
"`--plain` writes for a screen reader. It is on when output is piped.",
|
|
4483
4573
|
"Reports end with a dated status line. Times are in UTC, with your clock beside them once `timezone` is set.",
|
|
@@ -4648,7 +4738,7 @@
|
|
|
4648
4738
|
{
|
|
4649
4739
|
"slug": "mcp",
|
|
4650
4740
|
"title": "MCP server",
|
|
4651
|
-
"lead": "Gloom Cloud's [MCP](https://modelcontextprotocol.io) server at `https://api.gloom.sh/mcp`
|
|
4741
|
+
"lead": "Gloom Cloud's [MCP](https://modelcontextprotocol.io) server at `https://api.gloom.sh/mcp` exposes Gloom's research tools, workflow prompts, live resources and interactive MCP Apps widgets.",
|
|
4652
4742
|
"category": "Agents",
|
|
4653
4743
|
"tags": [
|
|
4654
4744
|
"mcp",
|
|
@@ -4659,7 +4749,7 @@
|
|
|
4659
4749
|
"terminal",
|
|
4660
4750
|
"remote control"
|
|
4661
4751
|
],
|
|
4662
|
-
"updatedAt": "2026-11-
|
|
4752
|
+
"updatedAt": "2026-11-25",
|
|
4663
4753
|
"blocks": [
|
|
4664
4754
|
{
|
|
4665
4755
|
"type": "paragraph",
|
|
@@ -4694,6 +4784,19 @@
|
|
|
4694
4784
|
"type": "code",
|
|
4695
4785
|
"code": "{\n \"mcpServers\": {\n \"gloom\": {\n \"url\": \"https://api.gloom.sh/mcp\",\n \"headers\": { \"Authorization\": \"Bearer gloom_mcp_...\" }\n }\n }\n}"
|
|
4696
4786
|
},
|
|
4787
|
+
{
|
|
4788
|
+
"type": "heading",
|
|
4789
|
+
"level": 3,
|
|
4790
|
+
"text": "URL options for smaller context and strict tool APIs"
|
|
4791
|
+
},
|
|
4792
|
+
{
|
|
4793
|
+
"type": "list",
|
|
4794
|
+
"items": [
|
|
4795
|
+
"`?groups=market,company,filings` lists only those groups (`market`, `company`, `filings`, `macro`, `credit`, `derivatives`, `alt`, `workspace`, `portfolio`, `brokers`, `terminal`, or `research`).",
|
|
4796
|
+
"`?mode=compact` lists three discovery tools (`gloom.tools`, `gloom.describe`, `gloom.call`, ~3 KB total) that reach every tool on demand. Large multi-broker lists auto-switch to compact mode over 160 KB unless `?mode=full` is passed.",
|
|
4797
|
+
"`?naming=underscore` lists tools with `_` instead of `.` (`market_quotes`, `company_transcripts`) for harnesses whose tool APIs reject dots. Both dotted and underscore names, as well as legacy tool names, work on `tools/call`."
|
|
4798
|
+
]
|
|
4799
|
+
},
|
|
4697
4800
|
{
|
|
4698
4801
|
"type": "heading",
|
|
4699
4802
|
"level": 2,
|
|
@@ -4711,10 +4814,10 @@
|
|
|
4711
4814
|
{
|
|
4712
4815
|
"type": "list",
|
|
4713
4816
|
"items": [
|
|
4714
|
-
"Creating keys needs Pro. Any valid
|
|
4715
|
-
"Keys allow 120 requests a minute and 5,000 a day. Over the limit returns `429` with `Retry-After`.",
|
|
4716
|
-
"If Pro lapses, keys stay but tool calls are refused.",
|
|
4717
|
-
"Results are capped at 256 KB."
|
|
4817
|
+
"Creating keys needs Pro. Any valid account can `initialize`, `tools/list`, call `market.search`, read the daily GPU settle (`gpu.prices` with `view: \"settles\"`), and read connected brokerage accounts (`portfolio.*`). Every other tool call needs Pro.",
|
|
4818
|
+
"Keys and OAuth sessions allow 120 requests a minute and 5,000 a day. Over the limit returns `429` with `Retry-After`.",
|
|
4819
|
+
"If Pro lapses, keys stay but Pro tool calls are refused.",
|
|
4820
|
+
"Results are capped at 256 KB. Pass optional `fields` or `sections` on heavy tools to trim payloads."
|
|
4718
4821
|
]
|
|
4719
4822
|
},
|
|
4720
4823
|
{
|
|
@@ -4724,7 +4827,7 @@
|
|
|
4724
4827
|
},
|
|
4725
4828
|
{
|
|
4726
4829
|
"type": "paragraph",
|
|
4727
|
-
"text": "Read-only unless marked write. `tools/list` gives each tool's arguments."
|
|
4830
|
+
"text": "Read-only unless marked write. `tools/list` gives each tool's arguments and `outputSchema`. Legacy un-consolidated tool names remain callable as aliases."
|
|
4728
4831
|
},
|
|
4729
4832
|
{
|
|
4730
4833
|
"type": "heading",
|
|
@@ -4733,7 +4836,11 @@
|
|
|
4733
4836
|
},
|
|
4734
4837
|
{
|
|
4735
4838
|
"type": "paragraph",
|
|
4736
|
-
"text": "`market.search`, `market.quotes`, `market.history`, `market.screener`, `market.options_chain`, `market.short_interest`, `market.
|
|
4839
|
+
"text": "`market.search`, `market.quotes`, `market.history`, `market.screener`, `market.options_chain`, `market.options_flow`, `market.short_interest`, `market.stock_funds`, `market.attention`"
|
|
4840
|
+
},
|
|
4841
|
+
{
|
|
4842
|
+
"type": "paragraph",
|
|
4843
|
+
"text": "`market.screener` covers both intraday movers (`category`) and multi-factor fundamental screens (`mode: \"fundamentals\"` with `definition`)."
|
|
4737
4844
|
},
|
|
4738
4845
|
{
|
|
4739
4846
|
"type": "heading",
|
|
@@ -4742,7 +4849,7 @@
|
|
|
4742
4849
|
},
|
|
4743
4850
|
{
|
|
4744
4851
|
"type": "paragraph",
|
|
4745
|
-
"text": "`company.profile`, `company.
|
|
4852
|
+
"text": "`company.profile`, `company.statements`, `company.financials`, `company.holders`, `company.analyst_research`, `company.corporate_actions`, `equity.diagnostic`"
|
|
4746
4853
|
},
|
|
4747
4854
|
{
|
|
4748
4855
|
"type": "heading",
|
|
@@ -4751,7 +4858,11 @@
|
|
|
4751
4858
|
},
|
|
4752
4859
|
{
|
|
4753
4860
|
"type": "paragraph",
|
|
4754
|
-
"text": "`sec.filings`, `sec.
|
|
4861
|
+
"text": "`sec.filings`, `sec.filing_content`, `sec.insider_transactions`, `sec.thirteenf`, `congress.trades`, `company.transcripts`, `research.search`, `company.filings_intel`"
|
|
4862
|
+
},
|
|
4863
|
+
{
|
|
4864
|
+
"type": "paragraph",
|
|
4865
|
+
"text": "`sec.filing_content` lists filing exhibits and reads cleaned filing text with paging. `company.transcripts` lists earnings calls and reads full transcripts and Q&A. `research.search` runs full-text search across SEC filings, transcripts and news. `company.filings_intel` covers segment revenue breakdowns, 10-K risk factors, executive pay proxies, M&A deals, IPOs, depositary receipts and Hong Kong CCASS custody flows."
|
|
4755
4866
|
},
|
|
4756
4867
|
{
|
|
4757
4868
|
"type": "heading",
|
|
@@ -4760,7 +4871,11 @@
|
|
|
4760
4871
|
},
|
|
4761
4872
|
{
|
|
4762
4873
|
"type": "paragraph",
|
|
4763
|
-
"text": "`macro.calendar`, `macro.
|
|
4874
|
+
"text": "`macro.calendar`, `macro.series`, `macro.yield_curve`, `macro.rates`, `news.stories`, `social.posts`"
|
|
4875
|
+
},
|
|
4876
|
+
{
|
|
4877
|
+
"type": "paragraph",
|
|
4878
|
+
"text": "`macro.rates` covers global central bank policy rates, market-implied rate paths, CPI breakdowns and EIA energy inventories."
|
|
4764
4879
|
},
|
|
4765
4880
|
{
|
|
4766
4881
|
"type": "heading",
|
|
@@ -4769,7 +4884,11 @@
|
|
|
4769
4884
|
},
|
|
4770
4885
|
{
|
|
4771
4886
|
"type": "paragraph",
|
|
4772
|
-
"text": "`market.catalysts`, `
|
|
4887
|
+
"text": "`market.catalysts`, `credit.query`"
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"type": "paragraph",
|
|
4891
|
+
"text": "`market.catalysts` covers regulatory/clinical/legal calendars, company litigation dockets, event revision history and change feeds. `credit.query` covers credit covenants and headroom screens, TRACE corporate bonds and trade prints, CDS curves/trades/entities/indexes/sovereigns, and debt maturity walls."
|
|
4773
4892
|
},
|
|
4774
4893
|
{
|
|
4775
4894
|
"type": "heading",
|
|
@@ -4778,7 +4897,7 @@
|
|
|
4778
4897
|
},
|
|
4779
4898
|
{
|
|
4780
4899
|
"type": "paragraph",
|
|
4781
|
-
"text": "`company.
|
|
4900
|
+
"text": "`company.kpis_guidance`, `company.awards`, `company.hiring`, `apps.attention`"
|
|
4782
4901
|
},
|
|
4783
4902
|
{
|
|
4784
4903
|
"type": "heading",
|
|
@@ -4787,7 +4906,11 @@
|
|
|
4787
4906
|
},
|
|
4788
4907
|
{
|
|
4789
4908
|
"type": "paragraph",
|
|
4790
|
-
"text": "`
|
|
4909
|
+
"text": "`derivatives.futures`, `perps.query`, `gpu.prices`"
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
"type": "paragraph",
|
|
4913
|
+
"text": "`derivatives.futures` covers futures curves, archived curves, contract history, continuous generic series, CFTC Commitments of Traders and FINRA daily short volume. `gpu.prices` covers the live GPU board, price history, availability changes and Gloom's daily 20:00 UTC settle."
|
|
4791
4914
|
},
|
|
4792
4915
|
{
|
|
4793
4916
|
"type": "heading",
|
|
@@ -4796,7 +4919,11 @@
|
|
|
4796
4919
|
},
|
|
4797
4920
|
{
|
|
4798
4921
|
"type": "paragraph",
|
|
4799
|
-
"text": "`company.
|
|
4922
|
+
"text": "`company.supply_chain`, `power.query`"
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
"type": "paragraph",
|
|
4926
|
+
"text": "`company.supply_chain` covers multi-hop supplier/customer graphs, path rankings and primary-source evidence tiers. `power.query` covers interconnection queues, large loads, regional summaries, history, project evidence and source coverage."
|
|
4800
4927
|
},
|
|
4801
4928
|
{
|
|
4802
4929
|
"type": "heading",
|
|
@@ -4820,6 +4947,19 @@
|
|
|
4820
4947
|
"type": "paragraph",
|
|
4821
4948
|
"text": "`portfolio.accounts`, `portfolio.positions`, `portfolio.performance`, `portfolio.exposure`"
|
|
4822
4949
|
},
|
|
4950
|
+
{
|
|
4951
|
+
"type": "heading",
|
|
4952
|
+
"level": 2,
|
|
4953
|
+
"text": "Prompts, resources and MCP Apps"
|
|
4954
|
+
},
|
|
4955
|
+
{
|
|
4956
|
+
"type": "list",
|
|
4957
|
+
"items": [
|
|
4958
|
+
"**Prompts (`prompts/list`):** `company_brief`, `earnings_prep`, `insider_and_13f`, `options_flow_scan`, `credit_and_debt_check`, `macro_week_ahead`, `portfolio_risk_review`, and `supply_chain_exposure`.",
|
|
4959
|
+
"**Resources (`resources/list`):** `gloom://catalog/tools`, `gloom://portfolio/summary`, `gloom://terminal/snapshot`, plus templates `gloom://notes/{id}` and `gloom://collections/{teamId}/{collectionId}`.",
|
|
4960
|
+
"**Interactive MCP Apps widgets:** `ui://gloom/quote-card`, `ui://gloom/yield-curve`, `ui://gloom/options-flow`, and `ui://gloom/portfolio-summary` attach to their corresponding tools in MCP Apps hosts."
|
|
4961
|
+
]
|
|
4962
|
+
},
|
|
4823
4963
|
{
|
|
4824
4964
|
"type": "heading",
|
|
4825
4965
|
"level": 2,
|
|
@@ -4827,7 +4967,7 @@
|
|
|
4827
4967
|
},
|
|
4828
4968
|
{
|
|
4829
4969
|
"type": "paragraph",
|
|
4830
|
-
"text": "Terminal control drives your open, signed-in app through the [remote API](/docs/agents). `terminal.
|
|
4970
|
+
"text": "Terminal control drives your open, signed-in app through the [remote API](/docs/agents). Five read tools (`terminal.devices`, `terminal.call_result`, `terminal.snapshot`, `terminal.pane_content`, `terminal.pane.screenshot`) and four grouped action tools (`terminal.navigate`, `terminal.pane`, `terminal.layout`, `terminal.app`) cover every remote operation (all 47 individual `terminal.*` names also remain callable as aliases)."
|
|
4831
4971
|
},
|
|
4832
4972
|
{
|
|
4833
4973
|
"type": "paragraph",
|
|
@@ -4852,7 +4992,7 @@
|
|
|
4852
4992
|
},
|
|
4853
4993
|
{
|
|
4854
4994
|
"type": "paragraph",
|
|
4855
|
-
"text": "Background: [IBKR in Claude or ChatGPT](/answers/ibkr-claude-chatgpt-connector)."
|
|
4995
|
+
"text": "Background: [IBKR in Claude or ChatGPT](/answers/ibkr-claude-chatgpt-connector) and [data sources for an AI stock research agent](/answers/ai-stock-research-agent-data)."
|
|
4856
4996
|
},
|
|
4857
4997
|
{
|
|
4858
4998
|
"type": "heading",
|
|
@@ -4861,7 +5001,7 @@
|
|
|
4861
5001
|
},
|
|
4862
5002
|
{
|
|
4863
5003
|
"type": "paragraph",
|
|
4864
|
-
"text": "Each call returns text plus `structuredContent` with `status`, `rowCount`, `truncated`, `asOf` and `data`."
|
|
5004
|
+
"text": "Each call returns text plus `structuredContent` with `status`, `rowCount`, `truncated`, `asOf` and `data`. Clients that send `_meta.progressToken` with `Accept: text/event-stream` receive periodic `notifications/progress` updates during long-running calls."
|
|
4865
5005
|
}
|
|
4866
5006
|
]
|
|
4867
5007
|
},
|
|
@@ -5266,7 +5406,7 @@
|
|
|
5266
5406
|
},
|
|
5267
5407
|
{
|
|
5268
5408
|
"type": "paragraph",
|
|
5269
|
-
"text": "Paid plans start at $49 a month, for one band of datasets or all of them.
|
|
5409
|
+
"text": "Paid plans start at $49 a month, for one band of datasets or all of them. Credit costs depend on the endpoint, parameters and listings read. Use `GET /v1/datasets/cost` to [quote your request](/datasets/docs/credits); `X-Credits-Remaining` says what is left. See [Pricing](/datasets/pricing)."
|
|
5270
5410
|
},
|
|
5271
5411
|
{
|
|
5272
5412
|
"type": "heading",
|
|
@@ -5279,7 +5419,7 @@
|
|
|
5279
5419
|
},
|
|
5280
5420
|
{
|
|
5281
5421
|
"type": "paragraph",
|
|
5282
|
-
"text": "A paid plan's `gds_` key does read the [News API](/docs/news-api), at no credit cost. The [API reference](/datasets/docs) has every route."
|
|
5422
|
+
"text": "A paid plan's `gds_` key does read the [News API](/docs/news-api), at no credit cost. The [API reference](/datasets/docs) has every route. Comparing options for an agent? See [data sources for an AI stock research agent](/answers/ai-stock-research-agent-data)."
|
|
5283
5423
|
}
|
|
5284
5424
|
]
|
|
5285
5425
|
},
|
|
@@ -5784,6 +5924,13 @@
|
|
|
5784
5924
|
"chapter": "Fundamentals and earnings",
|
|
5785
5925
|
"minutes": 5
|
|
5786
5926
|
},
|
|
5927
|
+
{
|
|
5928
|
+
"url": "/academy/fundamentals-and-earnings/events-and-deals/equity-dilution",
|
|
5929
|
+
"title": "Equity dilution (DILU)",
|
|
5930
|
+
"summary": "Keep three things separate: what the company could issue, what it actually issued, and what an existing holder plans to sell.",
|
|
5931
|
+
"chapter": "Fundamentals and earnings",
|
|
5932
|
+
"minutes": 1
|
|
5933
|
+
},
|
|
5787
5934
|
{
|
|
5788
5935
|
"url": "/academy/compare-screen-follow-money/compare-and-screen/comparison-chart",
|
|
5789
5936
|
"title": "Comparing returns (CMP)",
|
|
@@ -5875,6 +6022,13 @@
|
|
|
5875
6022
|
"chapter": "Compare, screen and follow the money",
|
|
5876
6023
|
"minutes": 5
|
|
5877
6024
|
},
|
|
6025
|
+
{
|
|
6026
|
+
"url": "/academy/compare-screen-follow-money/who-owns-it/hong-kong-custody",
|
|
6027
|
+
"title": "Hong Kong custody (CCASSM)",
|
|
6028
|
+
"summary": "A CCASS position tells you where shares are held, not who ultimately owns them or how they got there.",
|
|
6029
|
+
"chapter": "Compare, screen and follow the money",
|
|
6030
|
+
"minutes": 1
|
|
6031
|
+
},
|
|
5878
6032
|
{
|
|
5879
6033
|
"url": "/academy/compare-screen-follow-money/filings-and-attention/sec-filings",
|
|
5880
6034
|
"title": "SEC filings and 8-K events (SEC, EK)",
|
package/src/i18n/es.ts
CHANGED
|
@@ -1627,6 +1627,7 @@ export const es: Record<string, string> = {
|
|
|
1627
1627
|
"Article or newsletter": "Un artículo o newsletter",
|
|
1628
1628
|
"Where?": "¿Dónde?",
|
|
1629
1629
|
"Which account or post?": "¿Qué cuenta o publicación?",
|
|
1630
|
+
"Which AI, and what did you ask?": "¿Qué IA usaste y qué le preguntaste?",
|
|
1630
1631
|
"Skip": "Omitir",
|
|
1631
1632
|
"Equities": "Renta variable",
|
|
1632
1633
|
"Futures & commodities": "Futuros y materias primas",
|
package/src/i18n/ja.ts
CHANGED
|
@@ -1624,6 +1624,7 @@ export const ja: Record<string, string> = {
|
|
|
1624
1624
|
"Article or newsletter": "記事・ニュースレター",
|
|
1625
1625
|
"Where?": "どこで?",
|
|
1626
1626
|
"Which account or post?": "どのアカウントや投稿ですか?",
|
|
1627
|
+
"Which AI, and what did you ask?": "どのAIに、何を聞きましたか?",
|
|
1627
1628
|
"Skip": "スキップ",
|
|
1628
1629
|
"Equities": "株式",
|
|
1629
1630
|
"Futures & commodities": "先物・コモディティ",
|
package/src/i18n/ko.ts
CHANGED
|
@@ -1622,6 +1622,7 @@ export const ko: Record<string, string> = {
|
|
|
1622
1622
|
"Article or newsletter": "기사 또는 뉴스레터",
|
|
1623
1623
|
"Where?": "어디서?",
|
|
1624
1624
|
"Which account or post?": "어떤 계정이나 게시물인가요?",
|
|
1625
|
+
"Which AI, and what did you ask?": "어떤 AI에 무엇을 물어보셨나요?",
|
|
1625
1626
|
"Skip": "건너뛰기",
|
|
1626
1627
|
"Equities": "주식",
|
|
1627
1628
|
"Futures & commodities": "선물 및 원자재",
|
package/src/i18n/zh-cn.ts
CHANGED
|
@@ -1624,6 +1624,7 @@ export const zhCN: Record<string, string> = {
|
|
|
1624
1624
|
"Article or newsletter": "文章或新闻通讯",
|
|
1625
1625
|
"Where?": "在哪里?",
|
|
1626
1626
|
"Which account or post?": "哪个账号或帖子?",
|
|
1627
|
+
"Which AI, and what did you ask?": "你用了哪个 AI,问了什么?",
|
|
1627
1628
|
"Skip": "跳过",
|
|
1628
1629
|
"Equities": "股票",
|
|
1629
1630
|
"Futures & commodities": "期货与大宗商品",
|
package/src/i18n/zh-tw.ts
CHANGED
|
@@ -1624,6 +1624,7 @@ export const zhTW: Record<string, string> = {
|
|
|
1624
1624
|
"Article or newsletter": "文章或電子報",
|
|
1625
1625
|
"Where?": "在哪裡?",
|
|
1626
1626
|
"Which account or post?": "哪個帳號或貼文?",
|
|
1627
|
+
"Which AI, and what did you ask?": "你用了哪個 AI,問了什麼?",
|
|
1627
1628
|
"Skip": "略過",
|
|
1628
1629
|
"Equities": "股票",
|
|
1629
1630
|
"Futures & commodities": "期貨與大宗商品",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MarketState, Quote, QuoteIndexSession } from "../../types/financials";
|
|
2
|
-
import { canonicalExchange, EXCHANGE_TIME_ZONES, isUsListingExchange } from "../../utils/exchanges";
|
|
2
|
+
import { canonicalExchange, EXCHANGE_TIME_ZONES, isUsListingExchange, isUsOtcVenue } from "../../utils/exchanges";
|
|
3
3
|
import { hasPublishedApacCalendar, isPublishedApacClosure, publishedApacEarlyClose } from "../published-apac-sessions";
|
|
4
4
|
import { hasPublishedCnCalendar, isPublishedCnClosure } from "../published-cn-sessions";
|
|
5
5
|
import { hasPublishedFuturesCalendar, isPublishedFuturesClosure, isPublishedFuturesVenue } from "../published-futures-sessions";
|
|
@@ -264,7 +264,7 @@ function getExchangeLocalTimeFormatter(timeZone: string): Intl.DateTimeFormat {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
function exchangeLocalDate(exchange: string, timestampMs: number): string | null {
|
|
267
|
-
const timeZone = EXCHANGE_TIME_ZONES[canonicalExchange(exchange)];
|
|
267
|
+
const timeZone = isUsOtcVenue(exchange) ? "America/New_York" : EXCHANGE_TIME_ZONES[canonicalExchange(exchange)];
|
|
268
268
|
if (!timeZone) return null;
|
|
269
269
|
const minute = Math.floor(timestampMs / 60_000);
|
|
270
270
|
return perMinute(localDateCache, `${timeZone}:${minute}`, () => zonedDateKey(minute * 60_000, timeZone));
|
|
@@ -78,3 +78,17 @@ export function globexPrintSession(exchange: string | null | undefined, time: nu
|
|
|
78
78
|
while (new Date(trade * MS_PER_DAY).getUTCDay() % 6 === 0) trade += 1;
|
|
79
79
|
return { tradeDate: isoDay(trade), overnight: trade > local || minutes < DAY_SESSION_MINUTES };
|
|
80
80
|
}
|
|
81
|
+
|
|
82
|
+
export function publishedGlobexPrintTradeDate(venue: string, time: number): string | null {
|
|
83
|
+
const print = globexPrintSession(venue, time);
|
|
84
|
+
if (!print) return null;
|
|
85
|
+
const first = Date.parse(print.tradeDate) / MS_PER_DAY;
|
|
86
|
+
for (let offset = 0; offset < 7; offset += 1) {
|
|
87
|
+
const day = new Date((first + offset) * MS_PER_DAY);
|
|
88
|
+
if (day.getUTCDay() % 6 === 0) continue;
|
|
89
|
+
const date = isoDay(first + offset);
|
|
90
|
+
if (!hasPublishedFuturesCalendar(venue, date)) return null;
|
|
91
|
+
if (!isPublishedFuturesClosure(venue, date)) return date;
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { canonicalExchange } from "../utils/exchanges";
|
|
1
|
+
import { canonicalExchange, isUsOtcVenue } from "../utils/exchanges";
|
|
2
2
|
import { zonedWallClockToUtcMs } from "../utils/zoned-date-time";
|
|
3
3
|
|
|
4
4
|
// Cboe's US equity exchanges (BZX/BATS) close on the same published US equity holidays and early closes.
|
|
@@ -43,7 +43,7 @@ export const PUBLISHED_US_EQUITY_SESSION_BASIS = {
|
|
|
43
43
|
export function getPublishedUsEquityCalendarYears(exchange: string): readonly number[] | null {
|
|
44
44
|
const venue = canonicalExchange(exchange);
|
|
45
45
|
return venue === "NASDAQ" ? PUBLISHED_US_EQUITY_SESSION_BASIS.nasdaq.years
|
|
46
|
-
: NYSE_VENUES.has(venue) ? PUBLISHED_US_EQUITY_SESSION_BASIS.nyse.years : null;
|
|
46
|
+
: NYSE_VENUES.has(venue) || isUsOtcVenue(venue) ? PUBLISHED_US_EQUITY_SESSION_BASIS.nyse.years : null;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
function calendarDate(value: string): Date | null {
|
|
@@ -81,6 +81,7 @@ function publishedSession(venue: string, date: string): PublishedUsEquitySession
|
|
|
81
81
|
const kind = getPublishedUsEquityCalendarDay(venue, date);
|
|
82
82
|
if (!kind) return null;
|
|
83
83
|
if (kind === "closed") return Object.freeze({ kind });
|
|
84
|
+
if (isUsOtcVenue(venue)) return null;
|
|
84
85
|
const at = (hour: number, minute = 0) => zonedWallClockToUtcMs("America/New_York",
|
|
85
86
|
day.getUTCFullYear(), day.getUTCMonth() + 1, day.getUTCDate(), hour, minute, 0);
|
|
86
87
|
return Object.freeze({ kind, open: at(9, 30), close: at(NYSE_EARLY_CLOSES.has(date) ? 13 : 16) });
|