@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
package/package.json
CHANGED
|
@@ -60,8 +60,8 @@ function choiceLabel(answer: HeardFromAnswer): string {
|
|
|
60
60
|
* fine). Esc, or Skip, skips; from the note, Esc (Back) goes back to the
|
|
61
61
|
* list. The card holds the keyboard while it is up, as setup does.
|
|
62
62
|
*
|
|
63
|
-
*
|
|
64
|
-
* (`onPicked`), then ask
|
|
63
|
+
* Social and AI assistant answers with a follow-up are kept when picked
|
|
64
|
+
* (`onPicked`), then ask the optional follow-up under the list: Enter
|
|
65
65
|
* sends the note (empty is fine), Esc or Skip closes the card. Either way the
|
|
66
66
|
* answer is already kept.
|
|
67
67
|
*/
|
|
@@ -75,7 +75,6 @@ function HeardFromCard({ onShown, onPicked, onDone }: {
|
|
|
75
75
|
const keybindings = useKeybindings();
|
|
76
76
|
const [cursor, setCursor] = useState(0);
|
|
77
77
|
const [noteOpen, setNoteOpen] = useState(false);
|
|
78
|
-
// The answer kept ahead of its "Which account or post?" note.
|
|
79
78
|
const [kept, setKept] = useState<HeardFromAnswer | null>(null);
|
|
80
79
|
const keptRef = useRef<HeardFromAnswer | null>(null);
|
|
81
80
|
const [note, setNote] = useState("");
|
|
@@ -131,6 +130,9 @@ function HeardFromCard({ onShown, onPicked, onDone }: {
|
|
|
131
130
|
}, [done, noteOpen]);
|
|
132
131
|
|
|
133
132
|
const fieldOpen = noteOpen || kept !== null;
|
|
133
|
+
const noteLabel = kept === "ai_assistant"
|
|
134
|
+
? t("Which AI, and what did you ask?")
|
|
135
|
+
: kept ? t("Which account or post?") : t("Where?");
|
|
134
136
|
|
|
135
137
|
const shownRef = useRef(onShown);
|
|
136
138
|
useEffect(() => shownRef.current(), []);
|
|
@@ -182,7 +184,7 @@ function HeardFromCard({ onShown, onPicked, onDone }: {
|
|
|
182
184
|
<TextField
|
|
183
185
|
inputRef={noteRef}
|
|
184
186
|
value={note}
|
|
185
|
-
placeholder={
|
|
187
|
+
placeholder={noteLabel}
|
|
186
188
|
maxLength={HEARD_FROM_NOTE_MAX_LENGTH}
|
|
187
189
|
focused
|
|
188
190
|
width={desktop ? undefined : CARD_WIDTH - 6}
|
|
@@ -48,8 +48,7 @@ export function subscribeHeardFromDue(listener: () => void): () => void {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* What the person picked: an answer (
|
|
52
|
-
* X answer, with its note), or null for Skip.
|
|
51
|
+
* What the person picked: an answer (with its note, if any), or null for Skip.
|
|
53
52
|
*/
|
|
54
53
|
export type HeardFromChoice = { answer: HeardFromAnswer; note?: string } | null;
|
|
55
54
|
|
|
@@ -60,8 +59,8 @@ export interface HeardFromQuestionDeps {
|
|
|
60
59
|
skip(): Promise<void>;
|
|
61
60
|
/**
|
|
62
61
|
* Shows the question and resolves with the choice. `shown` is called once it
|
|
63
|
-
* is on screen; `picked` the moment an answer
|
|
64
|
-
*
|
|
62
|
+
* is on screen; `picked` the moment an answer with a follow-up is picked,
|
|
63
|
+
* so the answer is kept before the note is written.
|
|
65
64
|
*/
|
|
66
65
|
ask(shown: () => void, picked: (answer: HeardFromAnswer) => void): Promise<HeardFromChoice>;
|
|
67
66
|
}
|
|
@@ -44,10 +44,10 @@ export interface ExchangeAnnouncementsRequest {
|
|
|
44
44
|
symbol: string;
|
|
45
45
|
exchange: string;
|
|
46
46
|
limit?: number;
|
|
47
|
-
kind?: "results" | "presentations";
|
|
47
|
+
kind?: "results" | "presentations" | "ownership";
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
/** A listing's announcements
|
|
50
|
+
/** A listing's announcements or an exchange-specific filing archive. */
|
|
51
51
|
export function cloudExchangeAnnouncementsPath(params: ExchangeAnnouncementsRequest): string {
|
|
52
52
|
const search = new URLSearchParams({ symbol: params.symbol, exchange: params.exchange });
|
|
53
53
|
if (params.limit != null) search.set("limit", String(params.limit));
|
|
@@ -23,17 +23,16 @@ export const HEARD_FROM_ANSWERS = [
|
|
|
23
23
|
export type HeardFromAnswer = (typeof HEARD_FROM_ANSWERS)[number];
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* field, "Which account or post?". The answer is kept the moment it is picked;
|
|
26
|
+
* Answers with an optional follow-up. The answer is kept the moment it is picked;
|
|
28
27
|
* the note is sent after it, with the same answer, if written.
|
|
29
28
|
*/
|
|
30
|
-
const HEARD_FROM_NOTE_ANSWERS: ReadonlySet<HeardFromAnswer> = new Set(["youtube", "tiktok", "instagram", "x"]);
|
|
29
|
+
const HEARD_FROM_NOTE_ANSWERS: ReadonlySet<HeardFromAnswer> = new Set(["youtube", "tiktok", "instagram", "x", "ai_assistant"]);
|
|
31
30
|
|
|
32
31
|
export function heardFromAsksForNote(answer: HeardFromAnswer): boolean {
|
|
33
32
|
return HEARD_FROM_NOTE_ANSWERS.has(answer);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
|
-
/** The longest note the service keeps
|
|
35
|
+
/** The longest note the service keeps, in characters. */
|
|
37
36
|
export const HEARD_FROM_NOTE_MAX_LENGTH = 120;
|
|
38
37
|
|
|
39
38
|
export interface HeardFromState {
|
|
@@ -69,9 +68,8 @@ export class CloudHeardFromApi {
|
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
/**
|
|
72
|
-
* An answer, with Other's text or
|
|
73
|
-
*
|
|
74
|
-
* same answer again with its note adds the note (a service without notes
|
|
71
|
+
* An answer, with Other's text or an optional follow-up. A repeat or a later
|
|
72
|
+
* answer changes nothing; the same answer again with its note adds it (a service without notes
|
|
75
73
|
* refuses it, and the answer stays).
|
|
76
74
|
*/
|
|
77
75
|
async answerHeardFrom(answer: HeardFromAnswer, note?: string): Promise<void> {
|
|
@@ -1,17 +1,36 @@
|
|
|
1
|
-
import { listingSuffixVenue } from "../sources/listing-symbols";
|
|
1
|
+
import { hongKongListingCode, listingSuffixVenue } from "../sources/listing-symbols";
|
|
2
2
|
import { canonicalExchange, parsePublicTickerKey } from "../utils/exchanges";
|
|
3
3
|
|
|
4
|
+
interface ReportedOwnershipInterest {
|
|
5
|
+
label: string;
|
|
6
|
+
value: string;
|
|
7
|
+
number: number | null;
|
|
8
|
+
direct: string | null;
|
|
9
|
+
deemed: string | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
4
12
|
export interface OwnershipDisclosure {
|
|
13
|
+
id?: string;
|
|
5
14
|
owner: string;
|
|
6
15
|
role: string;
|
|
7
|
-
date: string;
|
|
8
|
-
dateBasis: "filing" | "month end" | "register";
|
|
16
|
+
date: string | null;
|
|
17
|
+
dateBasis: "filing" | "event" | "month end" | "register" | null;
|
|
9
18
|
kind: string;
|
|
10
19
|
securities: number | null;
|
|
11
20
|
change: number | null;
|
|
12
21
|
pledged: number | null;
|
|
13
22
|
percent: number | null;
|
|
23
|
+
position?: "Long" | "Short" | "Lending pool";
|
|
24
|
+
involved?: string;
|
|
14
25
|
reason?: string;
|
|
26
|
+
direct?: string | null;
|
|
27
|
+
deemed?: string | null;
|
|
28
|
+
filing?: {
|
|
29
|
+
date: string;
|
|
30
|
+
document: string;
|
|
31
|
+
before: ReportedOwnershipInterest[];
|
|
32
|
+
after: ReportedOwnershipInterest[];
|
|
33
|
+
};
|
|
15
34
|
url: string;
|
|
16
35
|
}
|
|
17
36
|
|
|
@@ -21,15 +40,29 @@ export interface OwnershipDisclosures {
|
|
|
21
40
|
name: string;
|
|
22
41
|
total: number;
|
|
23
42
|
rows: OwnershipDisclosure[];
|
|
24
|
-
registers: Array<{
|
|
43
|
+
registers: Array<{
|
|
44
|
+
kind: "major" | "major-notices" | "insider";
|
|
45
|
+
total: number;
|
|
46
|
+
status: "read" | "stale" | "unavailable";
|
|
47
|
+
retrievedAt: string | null;
|
|
48
|
+
sourceCount?: number;
|
|
49
|
+
url?: string;
|
|
50
|
+
pending?: number;
|
|
51
|
+
unreadable?: number;
|
|
52
|
+
}>;
|
|
25
53
|
}
|
|
26
54
|
|
|
27
55
|
export function disclosureListing(key?: string | null, exchange?: string) {
|
|
28
56
|
if (!key) return null;
|
|
29
57
|
const parsed = parsePublicTickerKey(key);
|
|
30
|
-
const
|
|
58
|
+
const given = parsed.exchange || canonicalExchange(exchange);
|
|
59
|
+
const venue = given === "SES" ? "SGX" : given;
|
|
31
60
|
const suffixed = listingSuffixVenue(parsed.symbol, venue);
|
|
32
61
|
const symbol = suffixed?.symbol ?? parsed.symbol;
|
|
33
62
|
const board = suffixed?.exchange ?? venue;
|
|
63
|
+
if (board === "SGX" && /^[A-Z0-9]{1,8}$/.test(symbol)) return symbol + ":SGX";
|
|
64
|
+
if (["HKEX", "SEHK", "HKG"].includes(board) && /^0*[1-9]\d{0,3}$/.test(symbol)) {
|
|
65
|
+
return hongKongListingCode(String(Number(symbol)), "HKEX") + ":HKEX";
|
|
66
|
+
}
|
|
34
67
|
return ["TWSE", "TPEX", "KRX", "KOSDAQ"].includes(board) && /^[0-9][0-9A-Z]{3,5}$/.test(symbol) ? symbol + ":" + board : null;
|
|
35
68
|
}
|
|
@@ -4,12 +4,14 @@ import type {
|
|
|
4
4
|
HolderData,
|
|
5
5
|
HolderRecord,
|
|
6
6
|
OptionsChain,
|
|
7
|
+
StatementPeriodFiling,
|
|
7
8
|
TickerFinancials,
|
|
8
9
|
} from "../../types/financials";
|
|
9
10
|
import type { CloudQuotePayload } from "./quotes";
|
|
10
11
|
|
|
11
|
-
export interface CloudFinancialsPayload extends Omit<TickerFinancials, "quote"> {
|
|
12
|
+
export interface CloudFinancialsPayload extends Omit<TickerFinancials, "quote" | "periodFilings"> {
|
|
12
13
|
quote?: CloudQuotePayload;
|
|
14
|
+
statementFilings?: StatementPeriodFiling[];
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export interface CloudOptionsChainPayload extends OptionsChain {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"why": "Every pane gives its columns in cells (DataTableColumn.width) and rows are one line tall: the horizontal extent, the overflow decision, virtualization and paging follow from them."
|
|
29
29
|
},
|
|
30
30
|
"src/renderers/dom/data-table/row.tsx": {
|
|
31
|
-
"uses":
|
|
32
|
-
"why": "Column widths and gaps are cells in the column model every pane uses; a row is one line tall."
|
|
31
|
+
"uses": 11,
|
|
32
|
+
"why": "Column widths and gaps are cells in the column model every pane uses; a row is one line tall. A name spilling into the next column stops a blank before that column's figure, which is its text's cells."
|
|
33
33
|
},
|
|
34
34
|
"src/renderers/dom/desktop/controls.tsx": {
|
|
35
35
|
"uses": 6,
|
|
@@ -340,7 +340,7 @@ import { useKnownCoins } from "../board-coins";
|
|
|
340
340
|
import { suggestUsTicker, type ListingSuggestion } from "../listing-suggestion";
|
|
341
341
|
import { quotedPhrase, securityInputKey, splitSymbolArgs, symbolInputKey, uniqueSecuritySymbols } from "../symbol-args";
|
|
342
342
|
import { isCompanyNameInput } from "../../tickers/company-name-listing";
|
|
343
|
-
import { readNameEntries, readPhraseArgument } from "../name-entries";
|
|
343
|
+
import { readNameEntries, readNameEntryGroups, readPhraseArgument } from "../name-entries";
|
|
344
344
|
import { readSymbolList, SymbolListError, type TypedForm } from "../symbol-list";
|
|
345
345
|
import { notASymbolError, type NotASymbolError } from "../symbol-cells";
|
|
346
346
|
import { cliPerpetualContract, perpetualContractStats, type PerpetualContractPayload } from "../perpetual-contract";
|
|
@@ -568,7 +568,7 @@ async function readListedSymbols(
|
|
|
568
568
|
try {
|
|
569
569
|
const typedForms: TypedForm[] = [];
|
|
570
570
|
const list = await readSymbolList({
|
|
571
|
-
args, file, stdinPiped: false,
|
|
571
|
+
args, file, stdinPiped: false, readEntryGroups: (entries) => readNameEntryGroups(entries, market.dataProvider), typedForms,
|
|
572
572
|
});
|
|
573
573
|
// Only numbers, or nothing: the message says what was left out (`Ignored 1.899, a number, not a symbol.`).
|
|
574
574
|
if (list.symbols.length === 0) {
|
|
@@ -1554,8 +1554,10 @@ async function runQuote(rawArgs: string[], ctx: Parameters<CliCommandDef["execut
|
|
|
1554
1554
|
const sourceNameOf = market.dataProvider.sourceNameOf;
|
|
1555
1555
|
// Each quoted row cites its own source, blank when it has no name to give, so a row never takes another's.
|
|
1556
1556
|
const rowSources = new Map(data.flatMap((row) => row.quote ? [[quoteRowSymbol(row), quoteSourceName(row.quote, sourceNameOf)] as const] : []));
|
|
1557
|
+
const allUnavailable = data.every((row) => !row.quote);
|
|
1557
1558
|
ctx.printResult({
|
|
1558
1559
|
data: rows,
|
|
1560
|
+
...(allUnavailable ? { failure: { code: "quotes_unavailable", message: "No quotes were available." } } : {}),
|
|
1559
1561
|
warnings: warnings.length > 0 ? warnings : undefined,
|
|
1560
1562
|
// A Cboe yield index stops at its 15:00 ET close, before the Treasury's curve is taken: the line says so, so its
|
|
1561
1563
|
// close does not read as a contradiction of DGS10 or GC for the same day.
|
|
@@ -1589,7 +1591,7 @@ async function runQuote(rawArgs: string[], ctx: Parameters<CliCommandDef["execut
|
|
|
1589
1591
|
: columns),
|
|
1590
1592
|
});
|
|
1591
1593
|
// The table and the warnings name each symbol it found nothing for; with none found, the exit status says so too.
|
|
1592
|
-
if (
|
|
1594
|
+
if (allUnavailable) process.exitCode = CLI_EXIT_CODES.error;
|
|
1593
1595
|
});
|
|
1594
1596
|
}
|
|
1595
1597
|
|
|
@@ -66,7 +66,7 @@ import { cpiCalendarYearGapReason } from "../../plugins/builtin/shared/cpi-year-
|
|
|
66
66
|
import { fredSeriesIdForName } from "../../plugins/builtin/econ/fred-catalog";
|
|
67
67
|
import { isoDate, rejectExtraArgs, requireArg, requireOneArg, takeFlag, takeOption } from "./command-utils";
|
|
68
68
|
import { buildCorrelationSeries } from "../../plugins/builtin/correlation/matrix/model";
|
|
69
|
-
import {
|
|
69
|
+
import { correlateDailyCloses } from "../../plugins/builtin/correlation/compute";
|
|
70
70
|
import { mixedSessionCloseNote } from "../../market-data/market/session-close-note";
|
|
71
71
|
import { contradictoryBarsNote, CORRELATION_RETURN_BASIS, loadCorrelationHistory, thinCorrelationNote } from "../../plugins/builtin/correlation/history";
|
|
72
72
|
import { EXCHANGE_OPTION, failUnchosenListing, listingChoiceNotes, listingIdentity, loadBareVenues, loadForListing, loadListingQuoteAnswer, requireCliListing, type CliListing } from "../listing-arg";
|
|
@@ -75,7 +75,7 @@ import { formatChangePercentCell, formatCompactCell } from "../helpers";
|
|
|
75
75
|
import { WORLD_INDICES } from "../../plugins/builtin/world-indices/indices";
|
|
76
76
|
import { getSectorCollection, SECTOR_COLLECTIONS } from "../../plugins/builtin/sectors/sector-data";
|
|
77
77
|
import { DAILY_CLOSES } from "../../plugins/builtin/shared/report-freshness";
|
|
78
|
-
import { canonicalTimeZone, localTimeSuffix,
|
|
78
|
+
import { canonicalTimeZone, localTimeSuffix, timeZoneCity, zonedClock } from "../../utils/utc-time";
|
|
79
79
|
import { zonedDayStart } from "../../utils/zoned-date-time";
|
|
80
80
|
import { quotesFreshness, rowsFreshness } from "../freshness";
|
|
81
81
|
import type { Quote } from "../../types/financials";
|
|
@@ -1152,10 +1152,11 @@ async function runCorrelation(rawArgs: string[], ctx: Parameters<CliCommandDef["
|
|
|
1152
1152
|
undefined, request),
|
|
1153
1153
|
listingChoiceNotes(listing, services, quote, quote ? loadBareVenues(listing, services) : null),
|
|
1154
1154
|
]);
|
|
1155
|
-
|
|
1155
|
+
const closes = bars.filter((bar) => !bar.partial && !bar.unsettled);
|
|
1156
|
+
return { ...buildCorrelationSeries(listing.key, closes), bars: closes.length, notes, quote };
|
|
1156
1157
|
};
|
|
1157
1158
|
const [leftSeries, rightSeries] = await Promise.all([loadSeries(leftListing!), loadSeries(rightListing!)]);
|
|
1158
|
-
const { correlation, sampleSize } = correlateDailyCloses(leftSeries.prices, rightSeries.prices);
|
|
1159
|
+
const { correlation, sampleSize, lastSharedDate } = correlateDailyCloses(leftSeries.prices, rightSeries.prices);
|
|
1159
1160
|
// The series history reads: contradictory bars are gaps, and a thin pair says which side is short.
|
|
1160
1161
|
const seriesNotes = [
|
|
1161
1162
|
...[leftSeries, rightSeries].filter((series, index) => index === 0 || left !== right)
|
|
@@ -1168,14 +1169,11 @@ async function runCorrelation(rawArgs: string[], ctx: Parameters<CliCommandDef["
|
|
|
1168
1169
|
const sessionNote = mixedSessionCloseNote(
|
|
1169
1170
|
{ symbol: leftListing!.symbol, exchange: listingIdentity(leftListing!, leftSeries.quote).exchange, label: left },
|
|
1170
1171
|
{ symbol: rightListing!.symbol, exchange: listingIdentity(rightListing!, rightSeries.quote).exchange, label: right },
|
|
1171
|
-
|
|
1172
|
+
lastSharedDate ?? undefined,
|
|
1172
1173
|
);
|
|
1173
|
-
// The daily closes used, dated by the newest last bar as the CORR report is.
|
|
1174
|
-
const lastBars = [leftSeries, rightSeries].map((series) => series.prices.at(-1)?.dateKey);
|
|
1175
1174
|
const freshness = rowsFreshness([], {
|
|
1176
1175
|
...DAILY_CLOSES,
|
|
1177
|
-
asOf:
|
|
1178
|
-
oldest: oldestReportTime(lastBars),
|
|
1176
|
+
asOf: lastSharedDate,
|
|
1179
1177
|
});
|
|
1180
1178
|
const warnings = [
|
|
1181
1179
|
...leftSeries.notes, ...rightSeries.notes,
|
package/src/cli/listing-arg.ts
CHANGED
|
@@ -50,7 +50,7 @@ import { isNoProviderMessage, isNoSourceAnswer, isProviderBusy, isRateLimited, i
|
|
|
50
50
|
import { dashedCoinPair, exchangeLineCoinListing, isSpotCommodityOrCurrencyPair, MAJOR_COIN_NAMES, TOP_COIN_NAMES } from "../utils/crypto-pair";
|
|
51
51
|
import { boardCoinFor, primeBoardCoins } from "./board-coins";
|
|
52
52
|
import { knownGapMessage, unquotedGapMessage } from "./known-gaps";
|
|
53
|
-
import { renamedListingFor, renamedListingReadAs, renamedListingSymbol } from "../tickers/renamed-listings";
|
|
53
|
+
import { renamedListingFor, renamedListingHint, renamedListingReadAs, renamedListingSymbol } from "../tickers/renamed-listings";
|
|
54
54
|
import { currencyPairSpelling } from "../utils/currency-pair";
|
|
55
55
|
import { bareFuturesCode, futuresContractByCode, futuresContractByWord, listedFuturesSymbol } from "../market-data/futures-board";
|
|
56
56
|
import { commodityNameFuture } from "../market-data/commodity-names";
|
|
@@ -79,7 +79,7 @@ import { unreadBloombergCodeMessage } from "./terminal-code-hints";
|
|
|
79
79
|
import { isKanjiOnlyName, japaneseNameChoice, japaneseNameReadAs, readExactJapaneseName, readJapaneseName, type JapaneseNameReading } from "../tickers/search/japanese-names";
|
|
80
80
|
import { listingAbroadVenue } from "../utils/sec";
|
|
81
81
|
import { savedAbroadForBareSymbol, savedUsListingOf } from "../tickers/search/bare-symbol";
|
|
82
|
-
import { listingSuffixCandidate, listingSuffixVenue, tickerHasListingSuffix } from "../sources/listing-symbols";
|
|
82
|
+
import { hongKongWorkingCode, listingSuffixCandidate, listingSuffixVenue, tickerHasListingSuffix } from "../sources/listing-symbols";
|
|
83
83
|
import { isCurrencyPairListing } from "../utils/fx-market-hours";
|
|
84
84
|
import { coinElsewhereNote, notTheCoinNote } from "./commands/crypto-hints";
|
|
85
85
|
import { fredSeriesArgument, fredSeriesNotListing } from "../series/fred-argument";
|
|
@@ -172,8 +172,9 @@ export function meantQuestion(listing: Pick<ListingArg, "meant">): string {
|
|
|
172
172
|
export function parseListingArg(
|
|
173
173
|
rawArg: string,
|
|
174
174
|
exchangeOption?: string | null,
|
|
175
|
-
{ ownExchangeWins = false, terminalCode, listingSuffix = false }: {
|
|
175
|
+
{ ownExchangeWins = false, terminalCode, listingSuffix = false, currentSnapshot = false }: {
|
|
176
176
|
ownExchangeWins?: boolean;
|
|
177
|
+
currentSnapshot?: boolean;
|
|
177
178
|
/**
|
|
178
179
|
* The terminal code `readTerminalCodeArg` read the text as, or null for
|
|
179
180
|
* words that read as a Bloomberg code but are a name. Read here when not given.
|
|
@@ -196,10 +197,10 @@ export function parseListingArg(
|
|
|
196
197
|
const terminal = terminalCode === undefined ? readTerminalListingCode(raw) : terminalCode;
|
|
197
198
|
const nearMiss = terminal ? null : readNearMissListing(raw) ?? (typedPerpetualListing(raw) ? null : readVenueFirstListing(raw));
|
|
198
199
|
const reading = terminal ?? (nearMiss ? { typed: nearMiss.typed, key: nearMiss.symbol } : null);
|
|
199
|
-
const parsed = parseCleanListingArg(reading?.key ?? raw, exchangeOption, { ownExchangeWins });
|
|
200
|
+
const parsed = parseCleanListingArg(reading?.key ?? raw, exchangeOption, { ownExchangeWins, currentSnapshot });
|
|
200
201
|
// A vendor's suffix is the symbol's own exchange too: in a list, 9988.HK stays on HKEX under --exchange JPX.
|
|
201
202
|
const own = listingSuffix && ownExchangeWins && exchangeOption
|
|
202
|
-
? readListingSuffix(parseCleanListingArg(reading?.key ?? raw, null, { ownExchangeWins })) : null;
|
|
203
|
+
? readListingSuffix(parseCleanListingArg(reading?.key ?? raw, null, { ownExchangeWins, currentSnapshot })) : null;
|
|
203
204
|
const listing = own ?? (listingSuffix ? readListingSuffix(parsed) ?? parsed : parsed);
|
|
204
205
|
const notes = [...stripped.text ? stripped.notes : [], ...reading ? [terminalCodeReadAs(reading)] : []];
|
|
205
206
|
return notes.length > 0 ? { ...listing, readAs: notes.join(" ") } : listing;
|
|
@@ -208,7 +209,7 @@ export function parseListingArg(
|
|
|
208
209
|
function parseCleanListingArg(
|
|
209
210
|
raw: string,
|
|
210
211
|
exchangeOption: string | null | undefined,
|
|
211
|
-
{ ownExchangeWins }: { ownExchangeWins: boolean },
|
|
212
|
+
{ ownExchangeWins, currentSnapshot }: { ownExchangeWins: boolean; currentSnapshot: boolean },
|
|
212
213
|
): ListingArg {
|
|
213
214
|
const optionCode = (exchangeOption ?? "").trim().toUpperCase();
|
|
214
215
|
const option = canonicalExchange(optionCode);
|
|
@@ -217,6 +218,9 @@ function parseCleanListingArg(
|
|
|
217
218
|
if (index && !index.bare) return { symbol: index.symbol, exchange: "", key: index.symbol, readAs: brokerIndexReadAs(index) };
|
|
218
219
|
// VX=F, the continuous symbol VIX futures do not have, is the front generic VX1.
|
|
219
220
|
const generic = option ? null : continuousAliasGeneric(raw);
|
|
221
|
+
if (generic && currentSnapshot) {
|
|
222
|
+
throw new ListingArgError(`No exact current listing for "${raw}".`, `The front generic ${generic} is a lookup alias. Import the contract shown by your broker.`);
|
|
223
|
+
}
|
|
220
224
|
// It says so, as a name read as a bare symbol does: VX1 is not what was typed.
|
|
221
225
|
if (generic) return { symbol: generic, exchange: "", key: generic, readAs: `Read ${raw.trim().toUpperCase()} as ${generic}, the front VIX future.`, readFromName: true };
|
|
222
226
|
// A perpetual's market id (binance:BZUSDT, as PERP names it) is its listing on that venue (BZUSDT:BINANCE).
|
|
@@ -254,7 +258,7 @@ function parseCleanListingArg(
|
|
|
254
258
|
const listed = listedFuturesSymbol(parsed.symbol);
|
|
255
259
|
if (listed) return { symbol: listed, exchange: "", key: listed };
|
|
256
260
|
// A futures board code no security uses is its future: TTF is TTF=F.
|
|
257
|
-
const symbol = bareFuturesCode(parsed.symbol)?.symbol ?? parsed.symbol;
|
|
261
|
+
const symbol = (currentSnapshot ? null : bareFuturesCode(parsed.symbol))?.symbol ?? parsed.symbol;
|
|
258
262
|
return { symbol, exchange, key: symbol };
|
|
259
263
|
}
|
|
260
264
|
|
|
@@ -1653,9 +1657,9 @@ const SHORT_HONG_KONG_CODE = /^\d{1,3}$/;
|
|
|
1653
1657
|
* listing with it, cannot search or is too busy to say.
|
|
1654
1658
|
*/
|
|
1655
1659
|
async function readHongKongShortCode(listing: ListingArg, deps: ListingDeps): Promise<ListingArg | null> {
|
|
1656
|
-
if (listing.exchange || !SHORT_HONG_KONG_CODE.test(listing.symbol)
|
|
1657
|
-
|
|
1658
|
-
|
|
1660
|
+
if (listing.exchange || !SHORT_HONG_KONG_CODE.test(listing.symbol)) return null;
|
|
1661
|
+
const symbol = hongKongWorkingCode(listing.symbol);
|
|
1662
|
+
if (!symbol || await deps.store.loadTicker(listing.symbol)) return null;
|
|
1659
1663
|
const marked = await serviceMarkedListing(deps.dataProvider, listing.symbol, symbol);
|
|
1660
1664
|
if (marked?.exchange !== "HKEX") return null;
|
|
1661
1665
|
const key = `${symbol}:HKEX`;
|
|
@@ -1678,12 +1682,26 @@ function readListingSuffix(listing: ListingArg): ListingArg | null {
|
|
|
1678
1682
|
return venue ? { symbol: venue.symbol, exchange: venue.exchange, key: `${venue.symbol}:${venue.exchange}` } : null;
|
|
1679
1683
|
}
|
|
1680
1684
|
|
|
1685
|
+
export function snapshotListingKey(listing: { symbol: string; exchange?: string }): { symbol: string; exchange: string } | null {
|
|
1686
|
+
const parsed = parsePublicTickerKey(listing.symbol);
|
|
1687
|
+
const reported = canonicalExchange(listing.exchange);
|
|
1688
|
+
if (!parsed.symbol || (parsed.exchange && reported && parsed.exchange !== reported)) return null;
|
|
1689
|
+
const venue = parsed.exchange || reported;
|
|
1690
|
+
const suffix = listingSuffixVenue(parsed.symbol, venue);
|
|
1691
|
+
const confirmed = suffix && (!venue || suffix.exchange === venue) ? suffix : null;
|
|
1692
|
+
const exchange = confirmed?.exchange ?? venue;
|
|
1693
|
+
const symbol = confirmed?.symbol ?? parsed.symbol;
|
|
1694
|
+
return { symbol: hongKongWorkingCode(symbol, exchange) ?? symbol, exchange };
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1681
1697
|
export async function resolveCliListing(
|
|
1682
1698
|
raw: string,
|
|
1683
1699
|
exchangeOption: string | null | undefined,
|
|
1684
1700
|
deps: ListingDeps,
|
|
1685
1701
|
options: {
|
|
1686
1702
|
ownExchangeWins?: boolean;
|
|
1703
|
+
/** Resolve only the requested security for a current holdings import, not a name or successor. */
|
|
1704
|
+
currentSnapshot?: boolean;
|
|
1687
1705
|
/**
|
|
1688
1706
|
* Read a venue suffix (RY.TO) as the listing its quote names (RY:TSX).
|
|
1689
1707
|
* Only pane functions ask for it (`applyListingArgument`, which `fn` and
|
|
@@ -1722,16 +1740,16 @@ export async function resolveCliListing(
|
|
|
1722
1740
|
if (unreadCode) throw new ListingArgError(unreadBloombergCodeMessage(unreadCode));
|
|
1723
1741
|
// A name typed in Japanese (ドル円, トヨタ自動車) is the listing it names, which is named in Latin letters; one several
|
|
1724
1742
|
// companies' names start with (トヨタ) asks which. A name in kanji alone is the service's to read first, below.
|
|
1725
|
-
const japanese = exchangeOption?.trim() ? null : await readJapaneseName(typed);
|
|
1743
|
+
const japanese = exchangeOption?.trim() || options.currentSnapshot ? null : await readJapaneseName(typed);
|
|
1726
1744
|
if (japanese) return await japaneseNameListing(typed, japanese, deps, options);
|
|
1727
1745
|
// A listing that moved to a new symbol (ELET3, "eletrobras") is the one it trades as now, saying so.
|
|
1728
1746
|
const renamed = exchangeOption?.trim() ? null : renamedListingFor(typed);
|
|
1729
|
-
if (renamed) {
|
|
1747
|
+
if (renamed && !options.currentSnapshot) {
|
|
1730
1748
|
const now = await resolveCliListing(renamedListingSymbol(renamed), null, deps, options);
|
|
1731
1749
|
return { ...now, readAs: [renamedListingReadAs(typed, renamed), now.readAs].filter(Boolean).join(" "), readFromName: true };
|
|
1732
1750
|
}
|
|
1733
1751
|
// "crude oil" is the benchmark future search ranks first (CL=F, Brent beside it), never a fund named for it.
|
|
1734
|
-
const commodity = exchangeOption?.trim() ? null : commodityNameFuture(typed);
|
|
1752
|
+
const commodity = exchangeOption?.trim() || options.currentSnapshot ? null : commodityNameFuture(typed);
|
|
1735
1753
|
if (commodity) {
|
|
1736
1754
|
const future = await resolveCliListing(commodity.contract.symbol, null, deps, options);
|
|
1737
1755
|
return { ...future, readAs: [commodityFutureReadAs(typed, commodity), future.readAs].filter(Boolean).join(" "), readFromName: true };
|
|
@@ -1746,7 +1764,7 @@ export async function resolveCliListing(
|
|
|
1746
1764
|
// A company's name, an entry of a comma list (`WHR, Whirlpool Corporation`), is the listing search names for it.
|
|
1747
1765
|
// A name before a legal form ("SAP SE", "SIEMENS AG") is looked up first: SE is also SIX Swiss's market code.
|
|
1748
1766
|
const legalForm = !!read && endsInLegalForm(typed);
|
|
1749
|
-
const asName = !read || legalForm ? await companyNameListingArg(raw, deps) : null;
|
|
1767
|
+
const asName = !options.currentSnapshot && (!read || legalForm) ? await companyNameListingArg(raw, deps) : null;
|
|
1750
1768
|
// Read both ways as two companies ("ZURN SE": Zurich Insurance on SIX, Zurn Elkay by name), the code's listing wins.
|
|
1751
1769
|
const codeWins = legalForm && asName ? await codeOverCompanyName(read!, asName.found, deps) : null;
|
|
1752
1770
|
const named = codeWins ? null : asName?.listing ?? null;
|
|
@@ -1756,6 +1774,15 @@ export async function resolveCliListing(
|
|
|
1756
1774
|
// `BP.` is London's code for BP: its London line where London lists it, and `GE.` a US ticker with a stray dot.
|
|
1757
1775
|
const dotted = terminal || named || exchangeOption?.trim() ? null : readLondonDottedSymbol(typed);
|
|
1758
1776
|
let parsed = named ?? (dotted ? await londonDottedListing(dotted, deps) : parseListingArg(raw, exchangeOption, { ...options, terminalCode: terminal }));
|
|
1777
|
+
if (options.currentSnapshot) {
|
|
1778
|
+
if (parsed.exchange) {
|
|
1779
|
+
const own = snapshotListingKey(parsed);
|
|
1780
|
+
if (own && own.symbol !== parsed.symbol) parsed = { ...parsed, symbol: own.symbol, key: `${own.symbol}:${own.exchange}` };
|
|
1781
|
+
}
|
|
1782
|
+
const successor = renamed ?? renamedListingFor(parsed.key);
|
|
1783
|
+
if (successor) throw new ListingArgError(`No exact current listing for "${typed}".`,
|
|
1784
|
+
`${renamedListingHint(successor)} Reconcile the holding with your broker before importing the current symbol.`);
|
|
1785
|
+
}
|
|
1759
1786
|
if (codeWins) parsed = { ...parsed, readAs: codeWins };
|
|
1760
1787
|
if (!parsed.symbol) throw new ListingArgError("Ticker symbol is required.");
|
|
1761
1788
|
// A bare code's own quote is asked once, however many of the readings below ask whether anything trades as it.
|
|
@@ -1763,8 +1790,8 @@ export async function resolveCliListing(
|
|
|
1763
1790
|
// $VIX is Schwab's code for ^VIX, unless a security trades as VIX: $AAPL is a cashtag.
|
|
1764
1791
|
const index = named || parsed.exchange ? null : await readDollarIndexCode(raw, deps, ownQuote);
|
|
1765
1792
|
if (index) parsed = index;
|
|
1766
|
-
//
|
|
1767
|
-
const rooted = named || index || terminal || parsed.exchange ? null : await readBareIndexRoot(parsed, typed, deps, ownQuote);
|
|
1793
|
+
// Ordinary lookup reads NDX as the Nasdaq-100 when no security trades as NDX.
|
|
1794
|
+
const rooted = options.currentSnapshot || named || index || terminal || parsed.exchange ? null : await readBareIndexRoot(parsed, typed, deps, ownQuote);
|
|
1768
1795
|
if (rooted) parsed = rooted;
|
|
1769
1796
|
// USD-NGN and USDNGN are the pair USDNGN=X unless a security is listed under those letters.
|
|
1770
1797
|
const pair = parsed.exchange ? null : await readAmbiguousCurrencyPair(parsed.symbol, deps);
|
|
@@ -1773,7 +1800,7 @@ export async function resolveCliListing(
|
|
|
1773
1800
|
const hongKong = pair || named || index ? null : await readHongKongShortCode(parsed, deps);
|
|
1774
1801
|
if (hongKong) parsed = hongKong;
|
|
1775
1802
|
// A word no source quotes that names a company (`Naspers`) is its listing, for every command, as `quote` reads it.
|
|
1776
|
-
const askCompany = !(options.companyWord === false || pair || named || index || rooted || hongKong || terminal || dotted);
|
|
1803
|
+
const askCompany = !(options.currentSnapshot || options.companyWord === false || pair || named || index || rooted || hongKong || terminal || dotted);
|
|
1777
1804
|
const company = askCompany ? await readBareCompanyName(parsed, typed, deps, ownQuote) : null;
|
|
1778
1805
|
if (company) parsed = company;
|
|
1779
1806
|
// A name in kanji alone the service names no company for (中電工; 中電 is CLP in Hong Kong) is a Tokyo company's
|
|
@@ -1821,7 +1848,7 @@ export async function resolveCliListing(
|
|
|
1821
1848
|
};
|
|
1822
1849
|
// A bare code no source quotes (O8A, listed in Frankfurt alone) is the listing `quote` reads it on, for every command.
|
|
1823
1850
|
const readElse = pair || named || index || rooted || company || hongKong || terminal || dotted || suffixed || venueRow;
|
|
1824
|
-
const bare = !(options.listingAbroad === false || readElse || listing.exchange || saved);
|
|
1851
|
+
const bare = !(options.currentSnapshot || options.listingAbroad === false || readElse || listing.exchange || saved);
|
|
1825
1852
|
const abroad = bare ? await readBareListingAbroad(resolved, deps, ownQuote) : null;
|
|
1826
1853
|
// One whose own quote stopped trading (SOL's Emeren Group) is the company's line that still trades under it.
|
|
1827
1854
|
const live = bare && !abroad && mayReadPastStopped(resolved, deps) ? await readPastStoppedListing(resolved, (await ownQuote(resolved.symbol)).quote, deps) : null;
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
{"token":"GUID","label":"Company Guidance","description":"Company EPS guidance cited from filings and transcripts, against consensus.","paneId":"estimate-revisions","paneName":"Estimate Revisions","templateId":"estimate-revisions-guid","shortcut":"GUID","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["guidance","outlook","estimates","guid"],"defaultSettings":{"tab":"guidance"},"capability":{"id":"estimate-revisions-guid","botSafe":true,"tickerCardinality":"one","aliases":["EM","GUID","EEO"],"intents":["Company EPS guidance cited from filings and transcripts, against consensus."],"outputKind":"bundle","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":["Verified Gloom sign-in","Gloom Cloud analyst snapshots"],"limitations":["Actual collection days and provider backfills remain separate.","Range dispersion is not standard deviation.","Guidance has no inferred numeric comparison."],"options":[{"key":"period","type":"string","description":"Optional fiscal end date, as 2026-10-01, 1.10.2026 or \"Oct 1 2026\".","settingKey":"period"},{"key":"frequency","type":"enum","description":"Forecast frequency for a pinned fiscal period.","values":[{"value":"quarterly"},{"value":"annual"}],"defaultValue":"quarterly","settingKey":"frequency"}],"settingKeys":["period","frequency","tab"]},"pluginId":"ticker-core"},
|
|
87
87
|
{"token":"GUIDE","label":"Company Guidance","description":"Pro management guidance ranges, raises and cuts, actual versus guide and cited evidence. Free preview.","paneId":"company-guidance","paneName":"Company Guidance","templateId":"company-guidance-pane","shortcut":"GUIDE","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["guidance","outlook","raise","cut","beat","miss"],"defaultSettings":{},"capability":{"id":"company-guidance-pane","botSafe":true,"tickerCardinality":"one","aliases":["GUIDE"],"intents":["Pro management guidance ranges, raises and cuts, actual versus guide and cited evidence. Free preview."],"outputKind":"bundle","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":["Gloom Cloud company disclosures"],"limitations":["Pro dataset with a fixed latest preview on Free.","Coverage follows available company disclosures; missing data is not zero.","Compare matching definition, period, currency, basis and scope.","Fiscal labels without explicit calendar dates are retained without inferred dates."],"options":[{"key":"tab","type":"enum","settingKey":"tab","defaultValue":"table","values":[{"value":"table","label":"Tracker"},{"value":"chart"},{"value":"history"},{"value":"evidence"}],"description":"The pane section to render."},{"key":"metric","type":"string","settingKey":"metric","description":"Canonical metric ID, such as arr or subscribers."},{"key":"basis","type":"enum","values":[{"value":"reported"},{"value":"adjusted"},{"value":"constant_currency"},{"value":"organic"}],"description":"Accounting basis filter (Pro)."},{"key":"from","type":"string","placeholder":"date","description":"First calendar period end, as 2026-10-01, 1.10.2026 or \"Oct 1 2026\" (Pro)."},{"key":"to","type":"string","placeholder":"date","description":"Last calendar period end, as 2026-10-01, 1.10.2026 or \"Oct 1 2026\" (Pro)."},{"key":"asOf","type":"string","placeholder":"date","description":"Point-in-time publication cutoff, as 2026-10-01, 1.10.2026 or \"Oct 1 2026\" (Pro)."}],"settingKeys":[]},"pluginId":"ticker-core"},
|
|
88
88
|
{"token":"HALT","label":"Market Halts","description":"Current and recent US trading halts from Nasdaq Trader, with reason and resumption times.","paneId":"market-halts","paneName":"Market Halts","templateId":"market-halts-pane","shortcut":"HALT","aliases":[],"keywords":["halt","halts","pause","luld","circuit","breaker","suspension","resumption"],"defaultSettings":{},"capability":{"id":"market-halts-pane","botSafe":false,"tickerCardinality":"none","aliases":[],"intents":[],"outputKind":"rendered-view","reportReadiness":"live-dom","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":["Reports contain only values exposed by the rendered view and may omit clipped or off-screen data."],"options":[],"settingKeys":[]},"pluginId":"market-halts"},
|
|
89
|
-
{"token":"HDS","label":"Holders","description":"Institutional holders from 13F filings, 13D/13G beneficial owners, exchange disclosures and Hong Kong CCASS custody.","paneId":"holders","paneName":"Holders","templateId":"holders-pane","shortcut":"HDS","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["holders","ownership","institutional","owners","hds","13d","13g","13d/g","schedule 13d","schedule 13g","beneficial owners","beneficial ownership","activist","activists"],"defaultSettings":{},"capability":{"id":"holders-pane","botSafe":true,"tickerCardinality":"one","aliases":["holders","ownership","institutional","owners","hds","13d","13g","13d/g","schedule 13d","schedule 13g","beneficial owners","beneficial ownership","activist","activists"],"intents":["Institutional holders from 13F filings, 13D/13G beneficial owners, exchange disclosures and Hong Kong CCASS custody."],"outputKind":"rows","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":[],"options":[{"key":"sort","description":"Column used to sort holder rows.","type":"enum","values":[{"value":"holder"},{"value":"value"},{"value":"shares"},{"value":"change"},{"value":"change-percent"},{"value":"held"},{"value":"date"}],"defaultValue":"value"},{"key":"order","description":"Sort direction.","type":"enum","values":[{"value":"desc"},{"value":"asc"}],"defaultValue":"desc"},{"key":"limit","shot":{"reportOnly":"sets how many rows the text report prints"},"aliases":["count","rows"],"description":"Maximum holder rows, largest first. A US listing's 13F holders are every filer fn 13F lists; a listing abroad has only the source's largest few.","type":"integer","defaultValue":25,"minimum":1,"maximum":200},{"key":"view","description":"Rendered pane view: the holder table, the ownership treemap, 13D/13G beneficial owners, or ownership disclosures for Korea and Taiwan.","type":"enum","values":[{"value":"table"},{"value":"chart"},{"value":"13dg","aliases":["beneficial"]},{"value":"disclosures"}],"defaultValue":"table","pluginState":{"pluginId":"ticker-research","key":"viewMode"}},{"key":"form","shot":{"reportOnly":"picks the text report's rows; the pane shows 13D/13G owners with --view 13dg"},"description":"Rows: 13f for institutional holders, 13d or 13g for beneficial owners over 5% of the class (activists, crowding into large stakes), all for both kinds.","type":"enum","values":[{"value":"13f"},{"value":"13d"},{"value":"13g"},{"value":"all"}],"defaultValue":"13f"},{"key":"history","shot":{"reportOnly":"lists every 13D/13G report in the text report"},"description":"With a 13d, 13g or all form, every report newest first instead of the latest per filer.","type":"boolean","defaultValue":false}],"settingKeys":[]},"pluginId":"ownership"},
|
|
89
|
+
{"token":"HDS","label":"Holders","description":"Institutional holders from 13F filings, 13D/13G beneficial owners, exchange disclosures and Hong Kong CCASS custody.","paneId":"holders","paneName":"Holders","templateId":"holders-pane","shortcut":"HDS","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["holders","ownership","institutional","owners","hds","13d","13g","13d/g","schedule 13d","schedule 13g","beneficial owners","beneficial ownership","activist","activists"],"defaultSettings":{},"capability":{"id":"holders-pane","botSafe":true,"tickerCardinality":"one","aliases":["holders","ownership","institutional","owners","hds","13d","13g","13d/g","schedule 13d","schedule 13g","beneficial owners","beneficial ownership","activist","activists"],"intents":["Institutional holders from 13F filings, 13D/13G beneficial owners, exchange disclosures and Hong Kong CCASS custody."],"outputKind":"rows","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":[],"options":[{"key":"sort","description":"Column used to sort holder rows.","type":"enum","values":[{"value":"holder"},{"value":"value"},{"value":"shares"},{"value":"change"},{"value":"change-percent"},{"value":"held"},{"value":"date"}],"defaultValue":"value"},{"key":"order","description":"Sort direction.","type":"enum","values":[{"value":"desc"},{"value":"asc"}],"defaultValue":"desc"},{"key":"limit","shot":{"reportOnly":"sets how many rows the text report prints"},"aliases":["count","rows"],"description":"Maximum holder rows, largest first. A US listing's 13F holders are every filer fn 13F lists; a listing abroad has only the source's largest few.","type":"integer","defaultValue":25,"minimum":1,"maximum":200},{"key":"view","description":"Rendered pane view: the holder table, the ownership treemap, 13D/13G beneficial owners, or ownership disclosures for Hong Kong, Korea, Singapore and Taiwan.","type":"enum","values":[{"value":"table"},{"value":"chart"},{"value":"13dg","aliases":["beneficial"]},{"value":"disclosures"}],"defaultValue":"table","pluginState":{"pluginId":"ticker-research","key":"viewMode"}},{"key":"form","shot":{"reportOnly":"picks the text report's rows; the pane shows 13D/13G owners with --view 13dg"},"description":"Rows: 13f for institutional holders, 13d or 13g for beneficial owners over 5% of the class (activists, crowding into large stakes), all for both kinds.","type":"enum","values":[{"value":"13f"},{"value":"13d"},{"value":"13g"},{"value":"all"}],"defaultValue":"13f"},{"key":"history","shot":{"reportOnly":"lists every 13D/13G report in the text report"},"description":"With a 13d, 13g or all form, every report newest first instead of the latest per filer.","type":"boolean","defaultValue":false}],"settingKeys":[]},"pluginId":"ownership"},
|
|
90
90
|
{"token":"HELP","label":"Help","description":"Open the Help pane.","paneId":"help","paneName":"Help","shortcut":"HELP","aliases":["HL"],"keywords":[],"defaultSettings":{},"capability":{"id":"help","botSafe":false,"tickerCardinality":"none","aliases":[],"intents":[],"outputKind":"pane","reportReadiness":"unsupported","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":["This pane is an interactive surface and does not expose a data report."],"options":[],"settingKeys":[]},"pluginId":"application"},
|
|
91
91
|
{"token":"HILO","label":"New Highs / Lows","description":"Session new-high and new-low momentum with 30s/1m/5m counts.","paneId":"scanner-hilo","paneName":"New Highs / Lows","templateId":"scanner-hilo-pane","shortcut":"HILO","aliases":[],"argKind":"none","keywords":["hilo","highs","lows","new","momentum","breakout","scanner"],"defaultSettings":{"minPrice":"1","sort":"recent"},"capability":{"id":"scanner-hilo-pane","botSafe":true,"tickerCardinality":"none","aliases":["hilo","highs","lows","new","momentum","breakout","scanner"],"intents":["Session new-high and new-low momentum with 30s/1m/5m counts."],"outputKind":"snapshot","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":[],"options":[{"key":"minPrice","aliases":["min-price"],"settingKey":"minPrice","description":"Minimum stock price.","type":"enum","values":[{"value":"off"},{"value":"1"},{"value":"5"}],"defaultValue":"1"},{"key":"sort","settingKey":"sort","description":"Extreme ordering.","type":"enum","values":[{"value":"recent"},{"value":"count"}],"defaultValue":"recent"}],"settingKeys":["minPrice","sort"]},"pluginId":"screeners"},
|
|
92
92
|
{"token":"HIRE","label":"Hiring Momentum","description":"Pro hiring momentum: observed weekly open roles, additions, removals, role and location mix, peer comparisons, hiring moves against each company's own weeks and peers, first roles in a new country or city, place and role-family spikes, and primary posting evidence.","paneId":"hiring","paneName":"Hiring Momentum","templateId":"hiring-pane","shortcut":"HIRE","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["hiring","workforce","roles","recruitment","surge","freeze"],"defaultSettings":{},"capability":{"id":"hiring-pane","botSafe":true,"tickerCardinality":"one","aliases":["HIRE"],"intents":["Pro hiring momentum: observed weekly open roles, additions, removals, role and location mix, peer comparisons, hiring moves against each company's own weeks and peers, first roles in a new country or city, place and role-family spikes, and primary posting evidence."],"outputKind":"bundle","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":["Gloom Cloud account"],"limitations":["Pro: full weekly history and evidence; free preview.","Observed requisitions, not headcount or confirmed office openings.","History begins with retained captures; incomplete snapshots cannot imply hiring freezes."],"options":[{"key":"limit","shot":{"reportOnly":"sets how many rows the text report prints"},"type":"string","defaultValue":"100","description":"Rows per REST page, up to 200 for hiring and 500 for apps."},{"key":"offset","shot":{"reportOnly":"pages the text report"},"type":"string","defaultValue":"0","description":"Continuation offset from the prior report metadata."},{"key":"tab","type":"enum","settingKey":"tab","values":[{"value":"table"},{"value":"chart"},{"value":"mix","label":"Mix"},{"value":"peers","label":"Peers"},{"value":"evidence"},{"value":"moves"},{"value":"expansion"},{"value":"anomalies"},{"value":"building"}],"defaultValue":"table","description":"Table, dated history, role mix, peers, source evidence, moves against the company's own weeks and peers, first roles in a new country or city, place and role-family spikes, or the role families and themes whose share of new roles rose."},{"key":"moves","type":"enum","settingKey":"movesFilter","values":[{"value":"moves"},{"value":"accelerating"},{"value":"slowing"},{"value":"all"}],"defaultValue":"moves","description":"Which hiring moves the board lists: own moves, one direction, or every measured company."},{"key":"view","type":"enum","settingKey":"movesView","values":[{"value":"weeks"},{"value":"drivers"},{"value":"titles"},{"value":"added"},{"value":"closed"}],"defaultValue":"weeks","description":"A company's Moves tab: its weeks, the role families or titles behind the move, or the postings first seen or closed that week."},{"key":"kind","type":"enum","settingKey":"signalsKind","values":[{"value":"all"},{"value":"new_country"},{"value":"new_city"},{"value":"location_spike"},{"value":"function_spike"},{"value":"new_role_type"}],"defaultValue":"all","description":"Which signals the Expansion or Anomalies board lists: new countries or cities, place or role-family spikes, or new role families."},{"key":"signalsView","aliases":["signals-view"],"type":"enum","settingKey":"signalsView","values":[{"value":"signals"},{"value":"postings"}],"defaultValue":"signals","description":"A company's Expansion or Anomalies tab: its signals, or the postings behind this week's."},{"key":"dimension","type":"enum","settingKey":"buildingDimension","values":[{"value":"all"},{"value":"function"},{"value":"theme"}],"defaultValue":"all","description":"Which shifts the Building board lists: role families, themes, or both."},{"key":"buildingView","aliases":["building-view"],"type":"enum","settingKey":"buildingView","values":[{"value":"families"},{"value":"themes"},{"value":"shifts"},{"value":"postings"}],"defaultValue":"families","description":"A company's Building tab: its mix by role family or by theme, its shifts, or the postings behind this week's."}],"settingKeys":[]},"pluginId":"alt-data"},
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
{"token":"RV","label":"Relative Valuation","description":"Compare valuation and operating metrics across peers.","paneId":"relative-valuation","paneName":"Relative Valuation","templateId":"relative-valuation-pane","shortcut":"RV","aliases":[],"argKind":"tickers","argPlaceholder":"tickers","keywords":["relative","valuation","comps","peers","rv","comp table","comparable companies","peer comparison","competitors"],"defaultSettings":{"symbols":["AAPL","MSFT"],"symbolsText":"AAPL, MSFT"},"capability":{"id":"relative-valuation","botSafe":true,"tickerCardinality":"one-or-more","aliases":["relative valuation","peer valuation","valuation comps","compare multiples"],"intents":["Compare valuation and operating metrics across peers."],"outputKind":"rows","reportReadiness":"ready","screenshotReadiness":"partial","dataRequirements":[],"limitations":["Uses current provider fundamentals rather than a historical series.","Outside the regular session Last, Chg% and the figures measured at the price (market cap, P/E, EV/S, FCF yield) are at the last regular close; a pre-market or after-hours print is shown beside it and never enters them."],"options":[{"key":"peers","type":"boolean","settingKey":"autoPeers","description":"The CLI uses the tickers given unless this is set. The pane picks peers by default when opened on one ticker. With one symbol, add 4 to 6 competitors: the covered equities in its industry closest in market cap (an education company filed under software is compared with education companies, and an online learning company with its curated core first), or a curated list when too few are covered. The header names the method","example":"--peers"},{"key":"columns","shot":{"reportOnly":"adds columns to the text report, and the pane keeps its own"},"type":"string","settingKey":"extraColumns","placeholder":"fields","description":"Optional report columns to add, in order: shortInterest, nextEarnings, target, grossMargin, evEbitda. shortInterest is FINRA short interest as a percent of float at the latest settlement, nextEarnings the next report date on the earnings calendar, target the mean analyst target and the analyst count, grossMargin the trailing twelve months' gross margin, evEbitda the enterprise value over trailing operating income plus D&A, as GE's EV/EBITDA ends. Short interest and earnings dates cover US listings. CSV and JSON give each cell's source and as-of. The pane keeps its own columns","example":"--columns shortInterest,nextEarnings,target,grossMargin,evEbitda"},{"key":"currency","type":"string","settingKey":"capCurrency","placeholder":"ISO code","description":"Show every market cap and analyst target in this currency, converted at the app's FX rates; the status line names each rate and its time","example":"--currency USD"}],"settingKeys":["symbolsText"]},"pluginId":"ticker-core","listArgument":true},
|
|
139
139
|
{"token":"SCAN","label":"Live Scanner","description":"Your own intraday scan of US stocks: moves, volume spikes, new highs and lows, VWAP crosses and gaps, with alerts.","paneId":"scanner-live","paneName":"Live Scanner","templateId":"scanner-live-pane","shortcut":"SCAN","aliases":[],"argKind":"none","keywords":["scan","scanner","intraday","momentum","volume","vwap","gap","breakout","alert","screener"],"defaultSettings":{},"capability":{"id":"scanner-live-pane","botSafe":true,"tickerCardinality":"none","aliases":["scan","scanner","intraday","momentum","volume","vwap","gap","breakout","alert","screener"],"intents":["Your own intraday scan of US stocks: moves, volume spikes, new highs and lows, VWAP crosses and gaps, with alerts."],"outputKind":"snapshot","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":[],"options":[{"key":"universe","description":"all, an index (sp500, sp400, sp600, russell1000, russell2000) or a sector.","type":"string","defaultValue":"all","example":"--universe sp500","shot":{"reportOnly":"picks the universe the report scans"}},{"key":"scan","description":"Conditions and floors as JSON; the pane's default scan without it.","type":"string","defaultValue":"","placeholder":"json","shot":{"reportOnly":"sets the conditions the report scans for"}}],"settingKeys":[]},"pluginId":"screeners"},
|
|
140
140
|
{"token":"SEAS","label":"Seasonality","description":"Monthly returns by year, each month's average and hit rate, every year's path on one calendar, and returns by weekday and turn of month.","paneId":"seasonality","paneName":"Seasonality","templateId":"seasonality-pane","shortcut":"SEAS","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["seas","seasonality","seasonal","monthly returns","calendar","weekday","day of week","turn of month"],"defaultSettings":{},"capability":{"id":"seasonality-pane","botSafe":true,"tickerCardinality":"one","aliases":["seas","seasonality","seasonal","monthly returns","calendar","weekday","day of week","turn of month"],"intents":["Monthly returns by year, each month's average and hit rate, every year's path on one calendar, and returns by weekday and turn of month."],"outputKind":"bundle","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":["Local-price closes; dividends and FX are excluded.","Weekdays reads daily closes, which are served for the last five years only."],"options":[{"key":"tab","type":"enum","values":[{"value":"returns"},{"value":"overlay"},{"value":"weekdays"}],"defaultValue":"returns","description":"Initial view","pluginState":{"pluginId":"ticker-research","key":"activeTabId"}},{"key":"lookbackYears","type":"integer","minimum":1,"maximum":30,"defaultValue":10,"description":"Calendar years, the current one included; Weekdays covers every daily close served"}],"settingKeys":["lookbackYears"]},"pluginId":"quant"},
|
|
141
|
-
{"token":"SEC","label":"SEC","description":"SEC filings and covered exchange disclosures for the selected ticker.","paneId":"sec","paneName":"SEC","templateId":"sec-pane","shortcut":"SEC","aliases":["CF"],"argKind":"ticker","argPlaceholder":"ticker","keywords":["sec","filings","10-k","10-q","8-k"],"defaultSettings":{},"capability":{"id":"sec-pane","botSafe":true,"tickerCardinality":"one","aliases":["sec","filings","10-k","10-q","8-k"],"intents":["SEC filings and covered exchange disclosures for the selected ticker."],"outputKind":"rows","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":[],"options":[{"key":"limit","shot":{"reportOnly":"sets how many rows the text report prints"},"aliases":["count","rows"],"description":"Maximum recent filings.","type":"integer","defaultValue":50,"minimum":1,"maximum":200},{"key":"form","shot":{"reportOnly":"picks the report's rows by form; the pane's Form filter picks a group of forms"},"description":"Only this SEC form and its amendments, such as 8-K, 10-K or 13D. Use presentations for Taiwan investor conference decks or
|
|
141
|
+
{"token":"SEC","label":"SEC","description":"SEC filings and covered exchange disclosures for the selected ticker.","paneId":"sec","paneName":"SEC","templateId":"sec-pane","shortcut":"SEC","aliases":["CF"],"argKind":"ticker","argPlaceholder":"ticker","keywords":["sec","filings","10-k","10-q","8-k"],"defaultSettings":{},"capability":{"id":"sec-pane","botSafe":true,"tickerCardinality":"one","aliases":["sec","filings","10-k","10-q","8-k"],"intents":["SEC filings and covered exchange disclosures for the selected ticker."],"outputKind":"rows","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":[],"options":[{"key":"limit","shot":{"reportOnly":"sets how many rows the text report prints"},"aliases":["count","rows"],"description":"Maximum recent filings.","type":"integer","defaultValue":50,"minimum":1,"maximum":200},{"key":"form","shot":{"reportOnly":"picks the report's rows by form; the pane's Form filter picks a group of forms"},"description":"Only this SEC form and its amendments, such as 8-K, 10-K or 13D. Use presentations for Taiwan investor conference decks, results for Hong Kong, Japan, Singapore and Vietnam earnings materials, or ownership for Singapore ownership disclosures.","type":"string","placeholder":"form","example":"--form 8-K"},{"key":"all","description":"Also list what is left out by default: the pricing supplements and term sheets (424B2, FWP, and a 424B3 filed among them) a bank files for each structured note, and a fund trust's filings for its other funds.","type":"boolean","defaultValue":false,"pluginState":{"pluginId":"ticker-research","key":"pricingSupplements"}}],"settingKeys":[]},"pluginId":"filings"},
|
|
142
142
|
{"token":"SEG","label":"Revenue Breakdown","description":"Reported revenue by product, segment or region from company filings.","paneId":"revenue-breakdown","paneName":"Revenue Breakdown","templateId":"revenue-breakdown-seg","shortcut":"SEG","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["revenue","segments","segment","products","product","geography","regions","seg"],"defaultSettings":{"view":"product"},"capability":{"id":"revenue-breakdown-seg","botSafe":true,"tickerCardinality":"one","aliases":["SEG"],"intents":["Reported revenue by product, segment or region from company filings."],"outputKind":"bundle","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":["Revenue breakdowns from company filings"],"limitations":["Rows are the members that add up to reported revenue; subtotals are dropped.","Hong Kong filings give annual and interim periods, including for matching A shares. Korean filings give reported three-month periods. US filings give fiscal quarters.","Free accounts get the two largest rows."],"options":[{"key":"view","type":"enum","settingKey":"view","description":"Split revenue by product, segment or region.","defaultValue":"product","values":[{"value":"product"},{"value":"segment"},{"value":"region"}]}],"settingKeys":[]},"pluginId":"ticker-core"},
|
|
143
143
|
{"token":"SI","label":"Short Interest","description":"US FINRA settlements, Hong Kong reportable positions, Japanese short seller disclosures, Korean net short positions and daily Taiwan and mainland China lending data.","paneId":"short-interest","paneName":"Short Interest","templateId":"short-interest-pane","shortcut":"SI","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["short","interest","si","shorts","days","cover"],"defaultSettings":{},"capability":{"id":"short-interest-pane","botSafe":true,"tickerCardinality":"one","aliases":["short","interest","si","shorts","days","cover"],"intents":["US FINRA settlements, Hong Kong reportable positions, Japanese short seller disclosures, Korean net short positions and daily Taiwan and mainland China lending data."],"outputKind":"rows","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":[],"limitations":["Borrow fee, utilization and locate availability are not available: FINRA short interest counts shares short, not what they cost to borrow.","Percent of float is each settlement's shares short over the float of its day: the 10-K or 10-Q share count known when FINRA published it, at the part of today's count that floats; the latest is over the current float. A settlement no count was known for stays blank."],"options":[{"key":"order","shot":{"reportOnly":"orders the text report, and the pane opens in its own order"},"description":"Settlement date order.","type":"enum","values":[{"value":"newest"},{"value":"oldest"}],"defaultValue":"newest"},{"key":"asOf","type":"string","placeholder":"date","description":"Only FINRA settlements published or exchange reports observed by this date, as 2026-10-01, 1.10.2026 or \"Oct 1 2026\"."},{"key":"limit","shot":{"reportOnly":"sets how many rows the text report prints"},"aliases":["count","rows"],"description":"Maximum settlement rows.","type":"integer","defaultValue":24,"minimum":1,"maximum":100}],"settingKeys":["shortVolumeScope","finraSymbol"]},"pluginId":"ownership"},
|
|
144
144
|
{"token":"SIV","label":"Daily Short Volume","description":"Daily executed short sales on SGX and US off-exchange short-volume ratios and quantities from FINRA.","paneId":"short-interest","paneName":"Short Interest","templateId":"short-volume-pane","shortcut":"SIV","aliases":[],"argKind":"ticker","argPlaceholder":"ticker","keywords":["daily","short","volume","finra","siv"],"defaultSettings":{},"capability":{"id":"short-volume-pane","botSafe":true,"tickerCardinality":"one","aliases":["SIV"],"intents":["Daily executed short sales on SGX and US off-exchange short-volume ratios and quantities from FINRA."],"outputKind":"bundle","reportReadiness":"ready","screenshotReadiness":"live-dom","dataRequirements":["FINRA or SGX daily short sale reports"],"limitations":["Regular-session off-exchange volume, not short interest.","Short volume includes exempt volume.","One-year history depends on source discovery and ingestion."],"options":[{"key":"scope","type":"enum","description":"FINRA reporting scope.","values":[{"value":"nms"},{"value":"otc"}],"defaultValue":"nms","settingKey":"shortVolumeScope"},{"key":"finra-symbol","type":"string","settingKey":"finraSymbol","description":"Exact case-sensitive FINRA identity, for example ABRpD."}],"settingKeys":["shortVolumeScope","finraSymbol"]},"pluginId":"ownership"},
|