tn-financial-data 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/cli.js +920 -691
- package/dist/client/index.d.ts +65 -1
- package/dist/client/index.js +31 -0
- package/package.json +5 -2
- package/skills/tn-financial-data/SKILL.md +7 -1
- package/skills/tn-financial-data/agents/claude.md +1 -1
- package/skills/tn-financial-data/agents/openai.yaml +1 -1
- package/skills/tn-financial-data/agents/opencode.md +1 -1
- package/skills/tn-financial-data/references/cli.md +33 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tn-financial-data
|
|
2
2
|
|
|
3
|
-
Hosted US equity financial data for agents.
|
|
3
|
+
Hosted US equity financial data and SEC filings for agents.
|
|
4
4
|
|
|
5
5
|
`tn-financial-data` is the published agent-facing surface for the hosted API:
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ This package is the hosted agent-facing surface only. The repo's website, local
|
|
|
25
25
|
|
|
26
26
|
## Features
|
|
27
27
|
|
|
28
|
-
- Company facts, financials, prices, news, insider trades, ownership,
|
|
28
|
+
- Company facts, financials, prices, news, insider trades, ownership, global rates, and raw SEC filings through one hosted API
|
|
29
29
|
- Agent-friendly CLI with clean error output, scoped subcommand help, and self-description via `tn-financial-data describe opencli`
|
|
30
30
|
- Packaged skill bundle for Claude and OpenCode installs
|
|
31
31
|
- Typed TypeScript client from the root package export
|
|
@@ -63,6 +63,7 @@ https://api.truenorth-financial.ai/v1
|
|
|
63
63
|
```bash
|
|
64
64
|
tn-financial-data query available-tickers
|
|
65
65
|
tn-financial-data query company --ticker AAPL
|
|
66
|
+
tn-financial-data query filings --ticker AAPL --filing-type 8-K --limit 5
|
|
66
67
|
tn-financial-data query general-overview --ticker AAPL --period quarterly --financial-limit 4 --news-limit 5
|
|
67
68
|
tn-financial-data skill install --tool claude
|
|
68
69
|
tn-financial-data describe opencli
|
|
@@ -89,6 +90,8 @@ tn-financial-data query financials --ticker AAPL --period annual --statement all
|
|
|
89
90
|
tn-financial-data query financial-metrics --ticker AAPL --period annual --limit 4
|
|
90
91
|
tn-financial-data query earnings --ticker AAPL --period quarterly --limit 8
|
|
91
92
|
tn-financial-data query quarterly-highlights --ticker AAPL
|
|
93
|
+
tn-financial-data query filings --ticker AAPL --filing-type 10-K,10-Q,8-K --limit 10
|
|
94
|
+
tn-financial-data query filing-items --ticker AAPL --accession-number 0000320193-26-000005 --item 2.02 --include-exhibits
|
|
92
95
|
tn-financial-data query prices --ticker AAPL --interval day --start-date 2025-01-01 --end-date 2025-01-31
|
|
93
96
|
tn-financial-data query institutional-ownership --ticker AAPL --limit 20
|
|
94
97
|
tn-financial-data query investor-portfolio --investor vanguard --limit 20
|
|
@@ -166,9 +169,22 @@ const client = new TnFinancialData({
|
|
|
166
169
|
apiKey: process.env.TN_FINANCIAL_DATA_API_KEY!,
|
|
167
170
|
});
|
|
168
171
|
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
|
|
172
|
+
const filings = await client.getFilings("AAPL", {
|
|
173
|
+
filingType: ["8-K"],
|
|
174
|
+
limit: 3,
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
console.log(filings.filings[0]?.accession_number);
|
|
178
|
+
|
|
179
|
+
const filingItems = await client.getFilingItems("AAPL", {
|
|
180
|
+
accessionNumber: "0000320193-26-000005",
|
|
181
|
+
filingType: "8-K",
|
|
182
|
+
item: ["2.02"],
|
|
183
|
+
includeExhibits: true,
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
console.log(filingItems.filing_document.exhibits?.[0]?.number);
|
|
187
|
+
console.log(filingItems._rateLimit);
|
|
172
188
|
```
|
|
173
189
|
|
|
174
190
|
## Package Scope
|