yfin-cli 0.2.0__tar.gz → 0.2.2__tar.gz

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 (51) hide show
  1. yfin_cli-0.2.2/.github/workflows/publish.yml +35 -0
  2. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/PKG-INFO +3 -3
  3. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/pyproject.toml +2 -2
  4. yfin_cli-0.2.2/skills/yahoo-finance/SKILL.md +63 -0
  5. yfin_cli-0.2.2/skills/yahoo-finance/references/analysis.md +240 -0
  6. yfin_cli-0.2.2/skills/yahoo-finance/references/calendar.md +75 -0
  7. yfin_cli-0.2.2/skills/yahoo-finance/references/financials.md +107 -0
  8. yfin_cli-0.2.2/skills/yahoo-finance/references/industry.md +81 -0
  9. yfin_cli-0.2.2/skills/yahoo-finance/references/screen.md +102 -0
  10. yfin_cli-0.2.2/skills/yahoo-finance/references/sector.md +119 -0
  11. yfin_cli-0.2.2/skills/yahoo-finance/references/stock.md +129 -0
  12. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/cli.py +3 -3
  13. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/decorators.py +11 -4
  14. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/conftest.py +10 -3
  15. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_fast_info.py +2 -1
  16. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/uv.lock +346 -149
  17. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/.gitignore +0 -0
  18. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/.python-version +0 -0
  19. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/COMMANDS.md +0 -0
  20. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/LICENSE +0 -0
  21. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/README.md +0 -0
  22. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/__init__.py +0 -0
  23. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/__init__.py +0 -0
  24. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/analysis.py +0 -0
  25. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/calendar.py +0 -0
  26. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/financials.py +0 -0
  27. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/industry.py +0 -0
  28. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/market.py +0 -0
  29. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/screen.py +0 -0
  30. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/sector.py +0 -0
  31. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/commands/stock.py +0 -0
  32. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/typer.py +0 -0
  33. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/utils.py +0 -0
  34. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/src/writer.py +0 -0
  35. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_analysis.py +0 -0
  36. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_balance_sheet.py +0 -0
  37. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_calendar_earnings.py +0 -0
  38. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_calendar_economic_events.py +0 -0
  39. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_calendar_ipo.py +0 -0
  40. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_cashflow.py +0 -0
  41. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_dividends.py +0 -0
  42. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_earnings_dates.py +0 -0
  43. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_history.py +0 -0
  44. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_income_statement.py +0 -0
  45. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_industry.py +0 -0
  46. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_market_status.py +0 -0
  47. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_news.py +0 -0
  48. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_screen.py +0 -0
  49. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_sec_filings.py +0 -0
  50. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_sector.py +0 -0
  51. {yfin_cli-0.2.0 → yfin_cli-0.2.2}/tests/test_writer.py +0 -0
@@ -0,0 +1,35 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ environment: pypi
12
+ permissions:
13
+ id-token: write # required for PyPI trusted publishing
14
+ contents: read
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: astral-sh/setup-uv@v6
19
+
20
+ - name: Check tag matches package version
21
+ run: |
22
+ version=$(uv version --short)
23
+ if [ "v$version" != "$GITHUB_REF_NAME" ]; then
24
+ echo "Tag $GITHUB_REF_NAME does not match pyproject version $version"
25
+ exit 1
26
+ fi
27
+
28
+ - name: Run tests
29
+ run: uv run --frozen pytest -q
30
+
31
+ - name: Build
32
+ run: uv build
33
+
34
+ - name: Publish
35
+ run: uv publish --trusted-publishing always
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: yfin-cli
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A command-line interface for Yahoo Finance data
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -8,7 +8,7 @@ Requires-Python: >=3.10
8
8
  Requires-Dist: lxml>=6.0.2
9
9
  Requires-Dist: rich>=14.2.0
10
10
  Requires-Dist: typer>=0.21.1
11
- Requires-Dist: yfinance>=1.1.0
11
+ Requires-Dist: yfinance>=1.8.0
12
12
  Description-Content-Type: text/markdown
13
13
 
14
14
  # yfin-cli
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "yfin-cli"
3
- version = "0.2.0"
3
+ version = "0.2.2"
4
4
  license = "MIT"
5
5
  description = "A command-line interface for Yahoo Finance data"
6
6
  readme = { file = "README.md", content-type = "text/markdown" }
@@ -8,7 +8,7 @@ requires-python = ">=3.10"
8
8
  dependencies = [
9
9
  "lxml>=6.0.2",
10
10
  "typer>=0.21.1",
11
- "yfinance>=1.1.0",
11
+ "yfinance>=1.8.0",
12
12
  "rich>=14.2.0",
13
13
  ]
14
14
 
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: yahoo-finance
3
+ description: Provides comprehensive financial market data and news from Yahoo Finance. Use this when the user needs to screen for stocks using granular filters, or requires historical price data, news articles, financial statements, and sector analysis.
4
+ ---
5
+
6
+ # Yahoo Finance
7
+
8
+ `yfin` is the ultimate command-line interface for financial data, it provides immediate access to a massive spectrum of market intelligence—from historical price data and real-time news to deep-dive corporate financials, earnings calendars, and institutional holding records. While it excels at standard lookups across sectors and industries, the tool's true power lies in its robust stock screener: a highly flexible query engine capable of handling complex boolean logic and granular filtering, empowering you to search for and isolate exactly the assets you need based on virtually any criteria.
9
+
10
+ ## Prerequisites
11
+
12
+ Assume `yfin` is already installed. However, if you attempt to run a `yfin` command and receive a "command not found" error, you MUST install it using one of the following methods:
13
+
14
+ ```bash
15
+ uv tool install yfin-cli
16
+ # or
17
+ pipx install yfin-cli
18
+ # or
19
+ pip install yfin-cli
20
+ ```
21
+
22
+ ## Quick Examples
23
+
24
+ ```bash
25
+ # Get historical stock data
26
+ yfin history AAPL
27
+
28
+ # Get quick summary metrics
29
+ yfin fast-info TSLA
30
+
31
+ # Get news for a stock
32
+ yfin news MSFT
33
+
34
+ # Check market status
35
+ yfin market-status
36
+
37
+ # View quarterly income statement
38
+ yfin income-stmt MSFT --frequency quarterly
39
+
40
+ # Screen stocks by simple filters
41
+ yfin screen --filter "sector eq Technology" --filter "intradaymarketcap gt 100000000000"
42
+
43
+ # Use a predefined screener
44
+ yfin screen --predefined day_gainers
45
+
46
+ # Screen stocks by complex filters
47
+ yfin screen --json-query '{ "operator": "and", "queries": ["region eq us", "intradaymarketcap gte 2000000000", "dayvolume gt 5000000"] }' --sort-field dayvolume --sort-order desc --limit 5
48
+
49
+ ```
50
+
51
+ ## Available Commands
52
+
53
+ For the complete command reference with all options and parameters, see the corresponding reference.
54
+
55
+ | Category | Commands | Reference |
56
+ | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
57
+ | **Stock** | `history`, `dividends`, `fast-info`, `info`, `news`, `market-status` | `references/stock.md` |
58
+ | **Calendar** | `calendar-earnings`, `calendar-economic-events`, `calendar-ipo` | `references/calendar.md` |
59
+ | **Financials** | `income-stmt`, `balance-sheet`, `cashflow`, `earnings-dates`, `sec-filings` | `references/financials.md` |
60
+ | **Analysis** | `recommendations`, `upgrades-downgrades`, `price-targets`, `earnings-estimate`, `revenue-estimate`, `earnings-history`, `eps-trend`, `eps-revisions`, `growth-estimates`, `insider-purchases`, `insider-transactions`, `insider-roster-holders`, `major-holders`, `institutional-holders`, `mutualfund-holders` | `references/analysis.md` |
61
+ | **Screen** | `screen`, `screen-query-fields`, `screen-query-values`, `screen-predefined-queries` | `references/screen.md` |
62
+ | **Sector** | `sector-keys`, `sector-industries`, `sector-overview`, `sector-research-reports`, `sector-top-companies`, `sector-top-etfs`, `sector-top-mutual-funds` | `references/sector.md` |
63
+ | **Industry** | `industry-overview`, `industry-research-reports`, `industry-top-companies`, `industry-top-growth-companies`, `industry-top-performing-companies` | `references/industry.md` |
@@ -0,0 +1,240 @@
1
+ # Analysis
2
+
3
+ ## `recommendations`
4
+
5
+ Get analyst recommendations — number of buy, sell, and hold ratings across time periods.
6
+
7
+ | Parameter | Type | Required | Default | Description |
8
+ |-----------|------|----------|---------|-------------|
9
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
10
+
11
+ **Examples:**
12
+
13
+ ```bash
14
+ yfin recommendations AAPL
15
+ yfin recommendations TSLA
16
+ ```
17
+
18
+ ---
19
+
20
+ ## `upgrades-downgrades`
21
+
22
+ Get the history of analyst upgrades and downgrades.
23
+
24
+ | Parameter | Type | Required | Default | Description |
25
+ |-----------|------|----------|---------|-------------|
26
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
27
+
28
+ **Examples:**
29
+
30
+ ```bash
31
+ yfin upgrades-downgrades AAPL
32
+ ```
33
+
34
+ ---
35
+
36
+ ## `price-targets`
37
+
38
+ Get analyst price targets (current, low, high, mean, median).
39
+
40
+ | Parameter | Type | Required | Default | Description |
41
+ |-----------|------|----------|---------|-------------|
42
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
43
+
44
+ **Examples:**
45
+
46
+ ```bash
47
+ yfin price-targets TSLA
48
+ ```
49
+
50
+ ---
51
+
52
+ ## `earnings-estimate`
53
+
54
+ Get analyst earnings estimates for upcoming periods.
55
+
56
+ | Parameter | Type | Required | Default | Description |
57
+ |-----------|------|----------|---------|-------------|
58
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
59
+
60
+ **Examples:**
61
+
62
+ ```bash
63
+ yfin earnings-estimate AAPL
64
+ ```
65
+
66
+ ---
67
+
68
+ ## `revenue-estimate`
69
+
70
+ Get analyst revenue estimates for upcoming periods.
71
+
72
+ | Parameter | Type | Required | Default | Description |
73
+ |-----------|------|----------|---------|-------------|
74
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
75
+
76
+ **Examples:**
77
+
78
+ ```bash
79
+ yfin revenue-estimate MSFT
80
+ ```
81
+
82
+ ---
83
+
84
+ ## `earnings-history`
85
+
86
+ Get historical earnings — actual vs. estimated EPS.
87
+
88
+ | Parameter | Type | Required | Default | Description |
89
+ |-----------|------|----------|---------|-------------|
90
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
91
+
92
+ **Examples:**
93
+
94
+ ```bash
95
+ yfin earnings-history GOOG
96
+ ```
97
+
98
+ ---
99
+
100
+ ## `eps-trend`
101
+
102
+ Get the EPS trend — how estimates have changed over time.
103
+
104
+ | Parameter | Type | Required | Default | Description |
105
+ |-----------|------|----------|---------|-------------|
106
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
107
+
108
+ **Examples:**
109
+
110
+ ```bash
111
+ yfin eps-trend AAPL
112
+ ```
113
+
114
+ ---
115
+
116
+ ## `eps-revisions`
117
+
118
+ Get EPS revisions — analyst estimate changes (up/down revisions).
119
+
120
+ | Parameter | Type | Required | Default | Description |
121
+ |-----------|------|----------|---------|-------------|
122
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
123
+
124
+ **Examples:**
125
+
126
+ ```bash
127
+ yfin eps-revisions NVDA
128
+ ```
129
+
130
+ ---
131
+
132
+ ## `growth-estimates`
133
+
134
+ Get analyst growth estimates for a stock.
135
+
136
+ | Parameter | Type | Required | Default | Description |
137
+ |-----------|------|----------|---------|-------------|
138
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
139
+
140
+ **Examples:**
141
+
142
+ ```bash
143
+ yfin growth-estimates AMZN
144
+ ```
145
+
146
+ ---
147
+
148
+ ## `insider-purchases`
149
+
150
+ Get insider purchase activity summary.
151
+
152
+ | Parameter | Type | Required | Default | Description |
153
+ |-----------|------|----------|---------|-------------|
154
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
155
+
156
+ **Examples:**
157
+
158
+ ```bash
159
+ yfin insider-purchases AAPL
160
+ ```
161
+
162
+ ---
163
+
164
+ ## `insider-transactions`
165
+
166
+ Get detailed insider transaction records (buys, sells, exercises).
167
+
168
+ | Parameter | Type | Required | Default | Description |
169
+ |-----------|------|----------|---------|-------------|
170
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
171
+
172
+ **Examples:**
173
+
174
+ ```bash
175
+ yfin insider-transactions TSLA
176
+ ```
177
+
178
+ ---
179
+
180
+ ## `insider-roster-holders`
181
+
182
+ Get the insider roster — list of insiders and their holdings.
183
+
184
+ | Parameter | Type | Required | Default | Description |
185
+ |-----------|------|----------|---------|-------------|
186
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
187
+
188
+ **Examples:**
189
+
190
+ ```bash
191
+ yfin insider-roster-holders MSFT
192
+ ```
193
+
194
+ ---
195
+
196
+ ## `major-holders`
197
+
198
+ Get major holders breakdown (% held by insiders, institutions, etc.).
199
+
200
+ | Parameter | Type | Required | Default | Description |
201
+ |-----------|------|----------|---------|-------------|
202
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
203
+
204
+ **Examples:**
205
+
206
+ ```bash
207
+ yfin major-holders AAPL
208
+ ```
209
+
210
+ ---
211
+
212
+ ## `institutional-holders`
213
+
214
+ Get the top institutional holders and their positions.
215
+
216
+ | Parameter | Type | Required | Default | Description |
217
+ |-----------|------|----------|---------|-------------|
218
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
219
+
220
+ **Examples:**
221
+
222
+ ```bash
223
+ yfin institutional-holders GOOG
224
+ ```
225
+
226
+ ---
227
+
228
+ ## `mutualfund-holders`
229
+
230
+ Get the top mutual fund holders and their positions.
231
+
232
+ | Parameter | Type | Required | Default | Description |
233
+ |-----------|------|----------|---------|-------------|
234
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
235
+
236
+ **Examples:**
237
+
238
+ ```bash
239
+ yfin mutualfund-holders MSFT
240
+ ```
@@ -0,0 +1,75 @@
1
+ # Calendar
2
+
3
+ ## `calendar-earnings`
4
+
5
+ Get the earnings calendar — upcoming and recent earnings announcements.
6
+
7
+ | Parameter | Type | Required | Default | Description |
8
+ |-----------|------|----------|---------|-------------|
9
+ | `--start` | option | — | today | Start date (`YYYY-MM-DD`) |
10
+ | `--end` | option | — | today + 7 days | End date (`YYYY-MM-DD`) |
11
+ | `--limit` | option | — | `12` | Maximum number of results |
12
+ | `--offset` | option | — | `0` | Offset for pagination |
13
+ | `--market-cap` | option | — | `0` | Minimum market cap filter |
14
+
15
+ **Examples:**
16
+
17
+ ```bash
18
+ # Get this week's earnings
19
+ yfin calendar-earnings
20
+
21
+ # Get earnings for a specific date range
22
+ yfin calendar-earnings --start 2026-02-10 --end 2026-02-14
23
+
24
+ # Get top 5 earnings by market cap
25
+ yfin calendar-earnings --limit 5
26
+
27
+ # Paginate results
28
+ yfin calendar-earnings --limit 10 --offset 10
29
+ ```
30
+
31
+ ---
32
+
33
+ ## `calendar-ipo`
34
+
35
+ Get the IPO calendar — upcoming initial public offerings.
36
+
37
+ | Parameter | Type | Required | Default | Description |
38
+ |-----------|------|----------|---------|-------------|
39
+ | `--start` | option | — | today | Start date (`YYYY-MM-DD`) |
40
+ | `--end` | option | — | today + 7 days | End date (`YYYY-MM-DD`) |
41
+ | `--limit` | option | — | `12` | Maximum number of results |
42
+ | `--offset` | option | — | `0` | Offset for pagination |
43
+
44
+ **Examples:**
45
+
46
+ ```bash
47
+ # Get upcoming IPOs this week
48
+ yfin calendar-ipo
49
+
50
+ # Get IPOs for next month
51
+ yfin calendar-ipo --start 2026-03-01 --end 2026-03-31
52
+ ```
53
+
54
+ ---
55
+
56
+ ## `calendar-economic-events`
57
+
58
+ Get the economic events calendar — scheduled economic data releases and events.
59
+
60
+ | Parameter | Type | Required | Default | Description |
61
+ |-----------|------|----------|---------|-------------|
62
+ | `--start` | option | — | today | Start date (`YYYY-MM-DD`) |
63
+ | `--end` | option | — | today + 7 days | End date (`YYYY-MM-DD`) |
64
+ | `--limit` | option | — | `12` | Maximum number of results |
65
+ | `--offset` | option | — | `0` | Offset for pagination |
66
+
67
+ **Examples:**
68
+
69
+ ```bash
70
+ # Get this week's economic events
71
+ yfin calendar-economic-events
72
+
73
+ # Get events for a specific week with more results
74
+ yfin calendar-economic-events --start 2026-02-10 --end 2026-02-14 --limit 50
75
+ ```
@@ -0,0 +1,107 @@
1
+ # Financials
2
+
3
+ ## `income-stmt`
4
+
5
+ Get the income statement for a ticker.
6
+
7
+ | Parameter | Type | Required | Default | Description |
8
+ |-----------|------|----------|---------|-------------|
9
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
10
+ | `--frequency` | option | — | `yearly` | Frequency: `yearly`, `quarterly`, `trailing` |
11
+
12
+ **Examples:**
13
+
14
+ ```bash
15
+ # Get annual income statement
16
+ yfin income-stmt AAPL
17
+
18
+ # Get quarterly income statement
19
+ yfin income-stmt MSFT --frequency quarterly
20
+
21
+ # Get trailing twelve months
22
+ yfin income-stmt GOOG --frequency trailing
23
+ ```
24
+
25
+ ---
26
+
27
+ ## `balance-sheet`
28
+
29
+ Get the balance sheet for a ticker.
30
+
31
+ | Parameter | Type | Required | Default | Description |
32
+ |-----------|------|----------|---------|-------------|
33
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
34
+ | `--frequency` | option | — | `yearly` | Frequency: `yearly`, `quarterly` |
35
+
36
+ **Examples:**
37
+
38
+ ```bash
39
+ # Get annual balance sheet
40
+ yfin balance-sheet AAPL
41
+
42
+ # Get quarterly balance sheet
43
+ yfin balance-sheet TSLA --frequency quarterly
44
+ ```
45
+
46
+ ---
47
+
48
+ ## `cashflow`
49
+
50
+ Get the cash flow statement for a ticker.
51
+
52
+ | Parameter | Type | Required | Default | Description |
53
+ |-----------|------|----------|---------|-------------|
54
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
55
+ | `--frequency` | option | — | `yearly` | Frequency: `yearly`, `quarterly`, `trailing` |
56
+
57
+ **Examples:**
58
+
59
+ ```bash
60
+ # Get annual cash flow
61
+ yfin cashflow AAPL
62
+
63
+ # Get quarterly cash flow
64
+ yfin cashflow NVDA --frequency quarterly
65
+ ```
66
+
67
+ ---
68
+
69
+ ## `earnings-dates`
70
+
71
+ Get earnings dates, estimates, and reported EPS for a ticker.
72
+
73
+ | Parameter | Type | Required | Default | Description |
74
+ |-----------|------|----------|---------|-------------|
75
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
76
+ | `--limit` | option | — | `12` | Maximum number of results |
77
+ | `--offset` | option | — | `0` | Offset for pagination |
78
+
79
+ **Examples:**
80
+
81
+ ```bash
82
+ # Get upcoming/recent earnings dates
83
+ yfin earnings-dates AAPL
84
+
85
+ # Get more earnings dates
86
+ yfin earnings-dates MSFT --limit 20
87
+
88
+ # Paginate to older earnings
89
+ yfin earnings-dates GOOG --limit 10 --offset 10
90
+ ```
91
+
92
+ ---
93
+
94
+ ## `sec-filings`
95
+
96
+ Get SEC filings for a ticker.
97
+
98
+ | Parameter | Type | Required | Default | Description |
99
+ |-----------|------|----------|---------|-------------|
100
+ | `TICKER` | argument | ✅ | — | Stock ticker symbol |
101
+
102
+ **Examples:**
103
+
104
+ ```bash
105
+ # Get SEC filings for Apple
106
+ yfin sec-filings AAPL
107
+ ```
@@ -0,0 +1,81 @@
1
+ # Industry
2
+
3
+ ## `industry-overview`
4
+
5
+ Get overview information for an industry.
6
+
7
+ | Parameter | Type | Required | Default | Description |
8
+ |-----------|------|----------|---------|-------------|
9
+ | `KEY` | argument | ✅ | — | A valid industry key (use `yfin sector-industries <sector-key>` to find) |
10
+
11
+ **Examples:**
12
+
13
+ ```bash
14
+ yfin industry-overview semiconductors
15
+ yfin industry-overview software-application
16
+ ```
17
+
18
+ ---
19
+
20
+ ## `industry-research-reports`
21
+
22
+ Get research reports related to an industry.
23
+
24
+ | Parameter | Type | Required | Default | Description |
25
+ |-----------|------|----------|---------|-------------|
26
+ | `KEY` | argument | ✅ | — | A valid industry key |
27
+
28
+ **Examples:**
29
+
30
+ ```bash
31
+ yfin industry-research-reports biotechnology
32
+ ```
33
+
34
+ ---
35
+
36
+ ## `industry-top-companies`
37
+
38
+ Get the top companies within an industry.
39
+
40
+ | Parameter | Type | Required | Default | Description |
41
+ |-----------|------|----------|---------|-------------|
42
+ | `KEY` | argument | ✅ | — | A valid industry key |
43
+
44
+ **Examples:**
45
+
46
+ ```bash
47
+ yfin industry-top-companies semiconductors
48
+ yfin industry-top-companies internet-retail
49
+ ```
50
+
51
+ ---
52
+
53
+ ## `industry-top-growth-companies`
54
+
55
+ Get the top growth companies in an industry.
56
+
57
+ | Parameter | Type | Required | Default | Description |
58
+ |-----------|------|----------|---------|-------------|
59
+ | `KEY` | argument | ✅ | — | A valid industry key |
60
+
61
+ **Examples:**
62
+
63
+ ```bash
64
+ yfin industry-top-growth-companies software-infrastructure
65
+ ```
66
+
67
+ ---
68
+
69
+ ## `industry-top-performing-companies`
70
+
71
+ Get the top performing companies in an industry.
72
+
73
+ | Parameter | Type | Required | Default | Description |
74
+ |-----------|------|----------|---------|-------------|
75
+ | `KEY` | argument | ✅ | — | A valid industry key |
76
+
77
+ **Examples:**
78
+
79
+ ```bash
80
+ yfin industry-top-performing-companies auto-manufacturers
81
+ ```