@invinite-org/invinite-data-cli 0.1.19

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.
Files changed (93) hide show
  1. package/README.md +693 -0
  2. package/claude-plugin/.claude-plugin/plugin.json +11 -0
  3. package/claude-plugin/agents/invinite-data.md +46 -0
  4. package/claude-plugin/commands/financial-research.md +69 -0
  5. package/claude-plugin/skills/invinite-data-cli/SKILL.md +251 -0
  6. package/dist/bin/invd.d.ts +2 -0
  7. package/dist/bin/invd.js +5 -0
  8. package/dist/bin/invd.js.map +1 -0
  9. package/dist/src/cli.d.ts +2 -0
  10. package/dist/src/cli.js +47 -0
  11. package/dist/src/cli.js.map +1 -0
  12. package/dist/src/client/api-client.d.ts +6 -0
  13. package/dist/src/client/api-client.js +40 -0
  14. package/dist/src/client/api-client.js.map +1 -0
  15. package/dist/src/client/pagination.d.ts +3 -0
  16. package/dist/src/client/pagination.js +27 -0
  17. package/dist/src/client/pagination.js.map +1 -0
  18. package/dist/src/client/websocket-client.d.ts +1 -0
  19. package/dist/src/client/websocket-client.js +57 -0
  20. package/dist/src/client/websocket-client.js.map +1 -0
  21. package/dist/src/commands/company.d.ts +2 -0
  22. package/dist/src/commands/company.js +220 -0
  23. package/dist/src/commands/company.js.map +1 -0
  24. package/dist/src/commands/config.d.ts +2 -0
  25. package/dist/src/commands/config.js +56 -0
  26. package/dist/src/commands/config.js.map +1 -0
  27. package/dist/src/commands/filings.d.ts +2 -0
  28. package/dist/src/commands/filings.js +139 -0
  29. package/dist/src/commands/filings.js.map +1 -0
  30. package/dist/src/commands/financials.d.ts +2 -0
  31. package/dist/src/commands/financials.js +162 -0
  32. package/dist/src/commands/financials.js.map +1 -0
  33. package/dist/src/commands/health.d.ts +2 -0
  34. package/dist/src/commands/health.js +18 -0
  35. package/dist/src/commands/health.js.map +1 -0
  36. package/dist/src/commands/insider-trades.d.ts +2 -0
  37. package/dist/src/commands/insider-trades.js +56 -0
  38. package/dist/src/commands/insider-trades.js.map +1 -0
  39. package/dist/src/commands/ipos.d.ts +2 -0
  40. package/dist/src/commands/ipos.js +42 -0
  41. package/dist/src/commands/ipos.js.map +1 -0
  42. package/dist/src/commands/market.d.ts +2 -0
  43. package/dist/src/commands/market.js +34 -0
  44. package/dist/src/commands/market.js.map +1 -0
  45. package/dist/src/commands/metadata.d.ts +2 -0
  46. package/dist/src/commands/metadata.js +39 -0
  47. package/dist/src/commands/metadata.js.map +1 -0
  48. package/dist/src/commands/metrics.d.ts +2 -0
  49. package/dist/src/commands/metrics.js +158 -0
  50. package/dist/src/commands/metrics.js.map +1 -0
  51. package/dist/src/commands/ownership.d.ts +2 -0
  52. package/dist/src/commands/ownership.js +152 -0
  53. package/dist/src/commands/ownership.js.map +1 -0
  54. package/dist/src/commands/plugin.d.ts +2 -0
  55. package/dist/src/commands/plugin.js +303 -0
  56. package/dist/src/commands/plugin.js.map +1 -0
  57. package/dist/src/commands/segments.d.ts +2 -0
  58. package/dist/src/commands/segments.js +64 -0
  59. package/dist/src/commands/segments.js.map +1 -0
  60. package/dist/src/commands/ws.d.ts +2 -0
  61. package/dist/src/commands/ws.js +14 -0
  62. package/dist/src/commands/ws.js.map +1 -0
  63. package/dist/src/config/auth.d.ts +2 -0
  64. package/dist/src/config/auth.js +70 -0
  65. package/dist/src/config/auth.js.map +1 -0
  66. package/dist/src/config/config-manager.d.ts +6 -0
  67. package/dist/src/config/config-manager.js +37 -0
  68. package/dist/src/config/config-manager.js.map +1 -0
  69. package/dist/src/formatters/json-formatter.d.ts +1 -0
  70. package/dist/src/formatters/json-formatter.js +4 -0
  71. package/dist/src/formatters/json-formatter.js.map +1 -0
  72. package/dist/src/formatters/table-formatter.d.ts +3 -0
  73. package/dist/src/formatters/table-formatter.js +63 -0
  74. package/dist/src/formatters/table-formatter.js.map +1 -0
  75. package/dist/src/formatters/tree-formatter.d.ts +11 -0
  76. package/dist/src/formatters/tree-formatter.js +30 -0
  77. package/dist/src/formatters/tree-formatter.js.map +1 -0
  78. package/dist/src/shared/errors.d.ts +6 -0
  79. package/dist/src/shared/errors.js +32 -0
  80. package/dist/src/shared/errors.js.map +1 -0
  81. package/dist/src/shared/options.d.ts +13 -0
  82. package/dist/src/shared/options.js +14 -0
  83. package/dist/src/shared/options.js.map +1 -0
  84. package/dist/src/shared/output.d.ts +3 -0
  85. package/dist/src/shared/output.js +13 -0
  86. package/dist/src/shared/output.js.map +1 -0
  87. package/dist/src/shared/spinner.d.ts +3 -0
  88. package/dist/src/shared/spinner.js +12 -0
  89. package/dist/src/shared/spinner.js.map +1 -0
  90. package/dist/src/shared/types.d.ts +11 -0
  91. package/dist/src/shared/types.js +2 -0
  92. package/dist/src/shared/types.js.map +1 -0
  93. package/package.json +54 -0
package/README.md ADDED
@@ -0,0 +1,693 @@
1
+ # @invinite-org/invinite-data-cli
2
+
3
+ Command-line interface for the [Invinite Data API](https://invinite.com/docs/data-api/overview) — access company data, financial statements, SEC filings, institutional ownership, and more from your terminal.
4
+
5
+ ## Installation
6
+
7
+ ### From npm
8
+
9
+ ```bash
10
+ npm install -g @invinite-org/invinite-data-cli
11
+ ```
12
+
13
+ To update to the latest version:
14
+
15
+ ```bash
16
+ npm update -g @invinite-org/invinite-data-cli
17
+ ```
18
+
19
+ ### From source
20
+
21
+ ```bash
22
+ git clone https://github.com/outraday-org/invinite-data-cli.git
23
+ cd invinite-data-cli
24
+ npm install
25
+ npm run build
26
+ npm link
27
+ ```
28
+
29
+ Requires Node.js >= 20.
30
+
31
+ ## Authentication
32
+
33
+ The CLI requires an Invinite Data API key. The key is resolved in the following order:
34
+
35
+ 1. **Environment variable** — `INVINITE_DATA_API_KEY`
36
+ 2. **OS keychain** — via the optional `keytar` package
37
+ 3. **Stored config** — set with the CLI
38
+
39
+ ### Set your API key
40
+
41
+ ```bash
42
+ invd config set-key
43
+ ```
44
+
45
+ You'll be prompted to enter your key (input is masked). Alternatively, export it as an environment variable:
46
+
47
+ ```bash
48
+ export INVINITE_DATA_API_KEY=your-api-key
49
+ ```
50
+
51
+ ## AI Plugin
52
+
53
+ This repo includes plugins for AI coding tools that enable AI-powered financial data retrieval and analysis. Supports **Claude Code**, **OpenCode**, **Codex**, and **Copilot**.
54
+
55
+ ### Quick install
56
+
57
+ ```bash
58
+ # Interactive — prompts for runtime and scope
59
+ npx @invinite-org/invinite-data-cli@latest plugin install
60
+
61
+ # Non-interactive examples
62
+ npx @invinite-org/invinite-data-cli@latest plugin install --claude --global
63
+ npx @invinite-org/invinite-data-cli@latest plugin install --claude --local
64
+ npx @invinite-org/invinite-data-cli@latest plugin install --opencode --global
65
+ npx @invinite-org/invinite-data-cli@latest plugin install --codex --global
66
+ npx @invinite-org/invinite-data-cli@latest plugin install --copilot --local
67
+ npx @invinite-org/invinite-data-cli@latest plugin install --all --global
68
+ ```
69
+
70
+ ### Update
71
+
72
+ To update the plugin to the latest version, re-run the install command:
73
+
74
+ ```bash
75
+ npx @invinite-org/invinite-data-cli@latest plugin install --claude --global
76
+ npx @invinite-org/invinite-data-cli@latest plugin install --all --global
77
+ ```
78
+
79
+ ### Uninstall
80
+
81
+ ```bash
82
+ npx @invinite-org/invinite-data-cli@latest plugin uninstall --claude --global
83
+ npx @invinite-org/invinite-data-cli@latest plugin uninstall --all --global
84
+ ```
85
+
86
+ ### What gets installed
87
+
88
+ | Runtime | Skill | Agent | Command |
89
+ |---------|-------|-------|---------|
90
+ | **Claude Code** | `skills/invinite-data-cli/SKILL.md` | `agents/invinite-data.md` | `commands/financial-research.md` |
91
+ | **OpenCode** | `command/invinite-data-cli.md` | `agents/invinite-data.md` | — |
92
+ | **Codex** | `skills/invinite-data-cli/SKILL.md` | — | `skills/invinite-financial-research/SKILL.md` |
93
+ | **Copilot** | `skills/invinite-data-cli/SKILL.md` | — | `skills/invinite-financial-research/SKILL.md` |
94
+
95
+ ### Alternative: Claude Code plugin directory
96
+
97
+ ```bash
98
+ claude --plugin-dir /path/to/invinite-data-cli/claude-plugin
99
+ ```
100
+
101
+ ### Usage examples
102
+
103
+ Use `/financial-research` for multi-step analysis:
104
+
105
+ ```
106
+ /financial-research Compare Apple, Microsoft, and Google's profitability and growth over the last 3 years
107
+ /financial-research Who are the largest institutional holders of TSLA and what are recent ownership changes?
108
+ /financial-research Analyze risk factors from NVDA's latest 10-K filing
109
+ ```
110
+
111
+ Or ask questions directly — the AI will auto-trigger the skill and delegate to the data agent as needed.
112
+
113
+ > **Note:** The CLI must be installed and authenticated (see [Authentication](#authentication)) for the plugin to work.
114
+
115
+ ## Global Options
116
+
117
+ These options are available on all data commands:
118
+
119
+ | Flag | Description |
120
+ |------|-------------|
121
+ | `--json` | Output raw JSON (pipe-friendly) |
122
+ | `--all` | Auto-paginate through all results |
123
+
124
+ ## Commands
125
+
126
+ - [config](#config) — Manage CLI configuration
127
+ - [health](#health) — Check API health
128
+ - [company](#company) — Company information
129
+ - [financials](#financials) — Financial statements
130
+ - [metrics](#metrics) — Financial metrics, ratios, and growth
131
+ - [segments](#segments) — Segmented financials
132
+ - [filings](#filings) — SEC filings
133
+ - [ownership](#ownership) — Institutional ownership
134
+ - [insider-trades](#insider-trades) — Insider trading data
135
+ - [ipos](#ipos) — IPO listings
136
+ - [market](#market) — Market data
137
+ - [metadata](#metadata) — API metadata
138
+ - [ws](#ws) — WebSocket streaming
139
+
140
+ ---
141
+
142
+ ### config
143
+
144
+ Manage CLI configuration.
145
+
146
+ ```bash
147
+ # Set API key (interactive, masked input)
148
+ invd config set-key
149
+
150
+ # Set custom API base URL
151
+ invd config set-url https://custom-api.example.com
152
+
153
+ # Show current configuration
154
+ invd config show
155
+
156
+ # Reset all configuration to defaults
157
+ invd config reset
158
+ ```
159
+
160
+ ---
161
+
162
+ ### health
163
+
164
+ Check API health status.
165
+
166
+ ```bash
167
+ invd health
168
+ ```
169
+
170
+ ---
171
+
172
+ ### company
173
+
174
+ Company information, search, and corporate actions.
175
+
176
+ #### `company list`
177
+
178
+ List all available companies.
179
+
180
+ ```bash
181
+ invd company list
182
+ ```
183
+
184
+ #### `company search`
185
+
186
+ Search companies by ticker or name.
187
+
188
+ | Option | Description | Default |
189
+ |--------|-------------|---------|
190
+ | `-q, --query <text>` | Search query **(required)** | — |
191
+ | `-l, --limit <n>` | Maximum results | `10` |
192
+ | `--offset <n>` | Pagination offset | `0` |
193
+
194
+ ```bash
195
+ invd company search -q "Apple"
196
+ invd company search -q MSFT --limit 5
197
+ ```
198
+
199
+ #### `company details`
200
+
201
+ Fetch company details.
202
+
203
+ | Option | Description |
204
+ |--------|-------------|
205
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** |
206
+
207
+ ```bash
208
+ invd company details -i AAPL
209
+ ```
210
+
211
+ #### `company dividends`
212
+
213
+ Fetch stock dividends.
214
+
215
+ | Option | Description | Default |
216
+ |--------|-------------|---------|
217
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
218
+ | `--start-date <date>` | Start date (YYYY-MM-DD) | — |
219
+ | `--end-date <date>` | End date (YYYY-MM-DD) | — |
220
+ | `-s, --sort <dir>` | Sort direction (`asc` / `desc`) | `desc` |
221
+ | `-l, --limit <n>` | Maximum results | `40` |
222
+ | `--offset <n>` | Pagination offset | `0` |
223
+
224
+ ```bash
225
+ invd company dividends -i AAPL --start-date 2023-01-01
226
+ ```
227
+
228
+ #### `company fiscal-periods`
229
+
230
+ Fetch available fiscal periods.
231
+
232
+ | Option | Description | Default |
233
+ |--------|-------------|---------|
234
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
235
+ | `-s, --sort <dir>` | Sort direction (`asc` / `desc`) | `desc` |
236
+ | `-l, --limit <n>` | Maximum results | `40` |
237
+ | `--offset <n>` | Pagination offset | `0` |
238
+
239
+ ```bash
240
+ invd company fiscal-periods -i MSFT
241
+ ```
242
+
243
+ #### `company splits`
244
+
245
+ Fetch stock splits.
246
+
247
+ | Option | Description | Default |
248
+ |--------|-------------|---------|
249
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
250
+ | `-s, --sort <dir>` | Sort direction (`asc` / `desc`) | `desc` |
251
+ | `-l, --limit <n>` | Maximum results | `40` |
252
+ | `--offset <n>` | Pagination offset | `0` |
253
+
254
+ ```bash
255
+ invd company splits -i AAPL
256
+ ```
257
+
258
+ ---
259
+
260
+ ### financials
261
+
262
+ Financial statements — standardized and as-reported.
263
+
264
+ All statement commands share these options:
265
+
266
+ | Option | Description | Default |
267
+ |--------|-------------|---------|
268
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
269
+ | `-p, --period <type>` | Fiscal period: `quarterly`, `annual`, `ytd`, `ttm` **(required)** | — |
270
+ | `-s, --sort <dir>` | Sort direction (`asc` / `desc`) | `desc` |
271
+ | `-l, --limit <n>` | Maximum results | `10` |
272
+ | `--offset <n>` | Pagination offset | `0` |
273
+ | `--detailed` | Include formula, accession number, HTML tag info | — |
274
+ | `--presentation` | Return nested tree structure | — |
275
+ | `--as-reported` | Use as-reported data instead of standardized | — |
276
+ | `--with-formula` | Include formula info (only with `--detailed`) | — |
277
+
278
+ > `--detailed` and `--presentation` are mutually exclusive.
279
+
280
+ #### `financials income-statement`
281
+
282
+ ```bash
283
+ invd financials income-statement -i AAPL -p annual
284
+ invd financials income-statement -i AAPL -p quarterly --detailed
285
+ invd financials income-statement -i AAPL -p annual --presentation
286
+ invd financials income-statement -i AAPL -p annual --as-reported
287
+ ```
288
+
289
+ #### `financials balance-sheet`
290
+
291
+ ```bash
292
+ invd financials balance-sheet -i MSFT -p quarterly --limit 4
293
+ ```
294
+
295
+ #### `financials cash-flow`
296
+
297
+ ```bash
298
+ invd financials cash-flow -i GOOGL -p annual
299
+ ```
300
+
301
+ #### `financials snapshot`
302
+
303
+ Fetch the latest complete financial snapshot. Uses comma-separated identifiers instead of a single identifier.
304
+
305
+ | Option | Description | Default |
306
+ |--------|-------------|---------|
307
+ | `-i, --identifiers <tickers>` | Comma-separated ticker symbols or CIKs **(required)** | — |
308
+ | `-p, --period <type>` | Fiscal period **(required)** | — |
309
+ | `--calendar-year <year>` | Filter by calendar year | — |
310
+ | `--calendar-quarter <q>` | Filter by calendar quarter | — |
311
+ | `--detailed` | Include detailed info | — |
312
+ | `--presentation` | Return nested tree structure | — |
313
+ | `--as-reported` | Use as-reported data | — |
314
+
315
+ ```bash
316
+ invd financials snapshot -i AAPL,MSFT,GOOGL -p annual
317
+ invd financials snapshot -i AAPL -p quarterly --calendar-year 2024 --calendar-quarter 3
318
+ ```
319
+
320
+ ---
321
+
322
+ ### metrics
323
+
324
+ Financial metrics, ratios, and growth rates.
325
+
326
+ #### `metrics ratios`
327
+
328
+ Fetch financial ratios.
329
+
330
+ | Option | Description | Default |
331
+ |--------|-------------|---------|
332
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
333
+ | `-p, --period <type>` | Fiscal period **(required)** | — |
334
+ | `--category <cat>` | Filter: `valuation`, `profitability`, `liquidity`, `solvency` | — |
335
+ | `-s, --sort <dir>` | Sort direction | `desc` |
336
+ | `-l, --limit <n>` | Maximum results | `10` |
337
+ | `--offset <n>` | Pagination offset | `0` |
338
+
339
+ ```bash
340
+ invd metrics ratios -i AAPL -p annual --category profitability
341
+ ```
342
+
343
+ #### `metrics cagr`
344
+
345
+ Fetch compound annual growth rate metrics.
346
+
347
+ | Option | Description | Default |
348
+ |--------|-------------|---------|
349
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
350
+ | `--period-years <years>` | CAGR period: `3`, `5`, `10` | — |
351
+ | `-s, --sort <dir>` | Sort direction | `desc` |
352
+ | `-l, --limit <n>` | Maximum results | `10` |
353
+ | `--offset <n>` | Pagination offset | `0` |
354
+
355
+ ```bash
356
+ invd metrics cagr -i AAPL --period-years 5
357
+ ```
358
+
359
+ #### `metrics growth`
360
+
361
+ Fetch growth metrics.
362
+
363
+ | Option | Description | Default |
364
+ |--------|-------------|---------|
365
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
366
+ | `-p, --period <type>` | Fiscal period **(required)** | — |
367
+ | `--growth-type <type>` | `year_over_year` or `quarter_over_quarter` | — |
368
+ | `-s, --sort <dir>` | Sort direction | `desc` |
369
+ | `-l, --limit <n>` | Maximum results | `10` |
370
+ | `--offset <n>` | Pagination offset | `0` |
371
+
372
+ ```bash
373
+ invd metrics growth -i MSFT -p quarterly --growth-type year_over_year
374
+ ```
375
+
376
+ ---
377
+
378
+ ### segments
379
+
380
+ Segmented financial data.
381
+
382
+ #### `segments list`
383
+
384
+ | Option | Description | Default |
385
+ |--------|-------------|---------|
386
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
387
+ | `-p, --period <type>` | Fiscal period **(required)** | — |
388
+ | `--segment-id <id>` | Filter by segment ID | — |
389
+ | `--detailed` | Include detailed breakdown | — |
390
+ | `-s, --sort <dir>` | Sort direction | `desc` |
391
+ | `-l, --limit <n>` | Maximum results | `10` |
392
+ | `--offset <n>` | Pagination offset | `0` |
393
+
394
+ ```bash
395
+ invd segments list -i AAPL -p annual
396
+ invd segments list -i AAPL -p annual --detailed
397
+ ```
398
+
399
+ ---
400
+
401
+ ### filings
402
+
403
+ SEC filings data.
404
+
405
+ #### `filings list`
406
+
407
+ Fetch SEC filings for a company.
408
+
409
+ | Option | Description | Default |
410
+ |--------|-------------|---------|
411
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
412
+ | `--form-type <type>` | Filter by form type (e.g., `10-K`, `10-Q`, `8-K`) | — |
413
+ | `-s, --sort <dir>` | Sort direction | `desc` |
414
+ | `-l, --limit <n>` | Maximum results | `40` |
415
+ | `--offset <n>` | Pagination offset | `0` |
416
+
417
+ ```bash
418
+ invd filings list -i AAPL --form-type 10-K
419
+ ```
420
+
421
+ #### `filings search`
422
+
423
+ Search SEC filings using natural language.
424
+
425
+ | Option | Description |
426
+ |--------|-------------|
427
+ | `-r, --request <text>` | Search query **(required)** |
428
+ | `-i, --identifier <ticker>` | Filter by company |
429
+ | `--accession-number <num>` | Filter by accession number |
430
+
431
+ ```bash
432
+ invd filings search -r "revenue recognition policy changes" -i AAPL
433
+ ```
434
+
435
+ #### `filings sections`
436
+
437
+ Fetch SEC filing sections.
438
+
439
+ | Option | Description |
440
+ |--------|-------------|
441
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** |
442
+ | `--form-type <type>` | Form type: `10-Q`, `10-K`, `8-K` **(required)** |
443
+ | `--section-id <id>` | Filter by section ID |
444
+ | `--accession-number <num>` | Filter by accession number |
445
+ | `--fiscal-year <year>` | Filter by fiscal year |
446
+ | `--fiscal-quarter <q>` | Filter by fiscal quarter |
447
+
448
+ ```bash
449
+ invd filings sections -i AAPL --form-type 10-K --section-id risk_factors
450
+ ```
451
+
452
+ #### `filings form-types`
453
+
454
+ List available SEC form types.
455
+
456
+ | Option | Description |
457
+ |--------|-------------|
458
+ | `-i, --identifier <ticker>` | Filter by company (optional) |
459
+
460
+ ```bash
461
+ invd filings form-types
462
+ invd filings form-types -i AAPL
463
+ ```
464
+
465
+ ---
466
+
467
+ ### ownership
468
+
469
+ Institutional ownership data.
470
+
471
+ #### `ownership holdings-by-investor`
472
+
473
+ Fetch all holdings for an institutional investor.
474
+
475
+ | Option | Description | Default |
476
+ |--------|-------------|---------|
477
+ | `--cik <cik>` | Institution CIK **(required)** | — |
478
+ | `-s, --sort <dir>` | Sort direction | `desc` |
479
+ | `-l, --limit <n>` | Maximum results | `100` |
480
+ | `--offset <n>` | Pagination offset | `0` |
481
+
482
+ ```bash
483
+ invd ownership holdings-by-investor --cik 0001067983
484
+ ```
485
+
486
+ #### `ownership holdings-by-company`
487
+
488
+ Fetch institutional holders of a company.
489
+
490
+ | Option | Description | Default |
491
+ |--------|-------------|---------|
492
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
493
+ | `--min-value <n>` | Minimum holding value filter | — |
494
+ | `-s, --sort <dir>` | Sort direction | `desc` |
495
+ | `-l, --limit <n>` | Maximum results | `100` |
496
+ | `--offset <n>` | Pagination offset | `0` |
497
+
498
+ ```bash
499
+ invd ownership holdings-by-company -i AAPL --min-value 1000000
500
+ ```
501
+
502
+ #### `ownership transactions`
503
+
504
+ Fetch institutional ownership transactions.
505
+
506
+ | Option | Description | Default |
507
+ |--------|-------------|---------|
508
+ | `--cik <cik>` | Institution CIK | — |
509
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK | — |
510
+ | `--start-date <date>` | Start date (YYYY-MM-DD) | — |
511
+ | `--end-date <date>` | End date (YYYY-MM-DD) | — |
512
+ | `--type <type>` | Transaction type: `new_buy`, `added`, `reduced`, `sold_out` | — |
513
+ | `--calendar-year <year>` | Filter by calendar year | — |
514
+ | `--calendar-quarter <q>` | Filter by calendar quarter | — |
515
+ | `-s, --sort <dir>` | Sort direction | `desc` |
516
+ | `-l, --limit <n>` | Maximum results | `100` |
517
+ | `--offset <n>` | Pagination offset | `0` |
518
+
519
+ ```bash
520
+ invd ownership transactions -i AAPL --type new_buy
521
+ invd ownership transactions --cik 0001067983 --calendar-year 2024
522
+ ```
523
+
524
+ #### `ownership institutions`
525
+
526
+ List institutional investors.
527
+
528
+ | Option | Description | Default |
529
+ |--------|-------------|---------|
530
+ | `--ciks <ciks>` | Comma-separated institution CIKs | — |
531
+ | `-s, --sort <dir>` | Sort direction | `asc` |
532
+ | `-l, --limit <n>` | Maximum results | `100` |
533
+ | `--offset <n>` | Pagination offset | `0` |
534
+
535
+ ```bash
536
+ invd ownership institutions
537
+ invd ownership institutions --ciks 0001067983,0001364742
538
+ ```
539
+
540
+ ---
541
+
542
+ ### insider-trades
543
+
544
+ Insider trading data.
545
+
546
+ #### `insider-trades list`
547
+
548
+ | Option | Description | Default |
549
+ |--------|-------------|---------|
550
+ | `-i, --identifier <ticker>` | Ticker symbol or CIK **(required)** | — |
551
+ | `--start-date <date>` | Start date (YYYY-MM-DD) | — |
552
+ | `--end-date <date>` | End date (YYYY-MM-DD) | — |
553
+ | `--acquired-disposed <ad>` | `A` (acquisition) or `D` (disposition) | — |
554
+ | `-s, --sort <dir>` | Sort direction | `desc` |
555
+ | `-l, --limit <n>` | Maximum results | `100` |
556
+ | `--offset <n>` | Pagination offset | `0` |
557
+
558
+ ```bash
559
+ invd insider-trades list -i AAPL
560
+ invd insider-trades list -i TSLA --acquired-disposed D --limit 20
561
+ ```
562
+
563
+ ---
564
+
565
+ ### ipos
566
+
567
+ IPO listings.
568
+
569
+ #### `ipos list`
570
+
571
+ | Option | Description | Default |
572
+ |--------|-------------|---------|
573
+ | `--start-date <date>` | Start date (YYYY-MM-DD) | — |
574
+ | `--end-date <date>` | End date (YYYY-MM-DD) | — |
575
+ | `-s, --sort <dir>` | Sort direction | `desc` |
576
+ | `-l, --limit <n>` | Maximum results | `100` |
577
+ | `--offset <n>` | Pagination offset | `0` |
578
+
579
+ ```bash
580
+ invd ipos list --start-date 2024-01-01 --end-date 2024-12-31
581
+ ```
582
+
583
+ ---
584
+
585
+ ### market
586
+
587
+ Market data.
588
+
589
+ #### `market holidays`
590
+
591
+ Fetch market holidays.
592
+
593
+ | Option | Description | Default |
594
+ |--------|-------------|---------|
595
+ | `-s, --sort <dir>` | Sort direction | `asc` |
596
+ | `-l, --limit <n>` | Maximum results | `100` |
597
+ | `--offset <n>` | Pagination offset | `0` |
598
+
599
+ ```bash
600
+ invd market holidays
601
+ ```
602
+
603
+ ---
604
+
605
+ ### metadata
606
+
607
+ API metadata and available identifiers.
608
+
609
+ #### `metadata metrics`
610
+
611
+ List all available standardized financial metrics.
612
+
613
+ ```bash
614
+ invd metadata metrics
615
+ ```
616
+
617
+ #### `metadata section-ids`
618
+
619
+ List available section IDs for SEC filings.
620
+
621
+ ```bash
622
+ invd metadata section-ids
623
+ ```
624
+
625
+ ---
626
+
627
+ ### ws
628
+
629
+ Real-time WebSocket streaming.
630
+
631
+ #### `ws listen`
632
+
633
+ Listen to real-time SEC filing notifications. Automatically reconnects on disconnection with exponential backoff.
634
+
635
+ ```bash
636
+ invd ws listen
637
+ ```
638
+
639
+ Press `Ctrl+C` to disconnect.
640
+
641
+ ---
642
+
643
+ ## Output Formats
644
+
645
+ By default, data is displayed as formatted tables with aligned columns and number formatting.
646
+
647
+ ```bash
648
+ # Default table output
649
+ invd company search -q Apple
650
+
651
+ # Raw JSON output (useful for piping to jq or other tools)
652
+ invd company search -q Apple --json
653
+
654
+ # Pipe to jq
655
+ invd financials income-statement -i AAPL -p annual --json | jq '.data[0]'
656
+ ```
657
+
658
+ Financial statements with `--presentation` are displayed as indented trees showing the hierarchical structure of line items.
659
+
660
+ ## Pagination
661
+
662
+ Results are paginated by default. Use `--limit` and `--offset` to control pagination manually, or use `--all` to automatically fetch all pages:
663
+
664
+ ```bash
665
+ # Get first 10 results (default)
666
+ invd company dividends -i AAPL
667
+
668
+ # Get results 20-30
669
+ invd company dividends -i AAPL --limit 10 --offset 20
670
+
671
+ # Fetch all results automatically
672
+ invd company dividends -i AAPL --all
673
+ ```
674
+
675
+ ## Development
676
+
677
+ ```bash
678
+ # Run in development mode (no build step)
679
+ npm run dev -- company search -q Apple
680
+
681
+ # Build
682
+ npm run build
683
+
684
+ # Run tests
685
+ npm test
686
+
687
+ # Lint
688
+ npm run lint
689
+ ```
690
+
691
+ ## License
692
+
693
+ ISC
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "invd",
3
+ "description": "Fetch and analyze financial data using the Invinite Data API — company fundamentals, financial statements, SEC filings, institutional ownership, insider trades, and more.",
4
+ "version": "0.1.0",
5
+ "author": {
6
+ "name": "Outraday"
7
+ },
8
+ "homepage": "https://github.com/outraday-org/invinite-data-cli",
9
+ "repository": "https://github.com/outraday-org/invinite-data-cli",
10
+ "license": "ISC"
11
+ }