massive-cli 0.0.1 → 0.0.2

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.
@@ -1,174 +0,0 @@
1
- # Indices Commands Reference
2
-
3
- This document provides a reference for the indices-related commands available in the Polygon CLI.
4
-
5
- ## Commands
6
-
7
- ### indices-aggs
8
- Get aggregate bars (OHLCV) for an index over a given date range.
9
-
10
- **Usage:**
11
- ```bash
12
- bun cli.js indices-aggs --ticker <ticker> --from <YYYY-MM-DD> --to <YYYY-MM-DD> [options]
13
- ```
14
-
15
- **Parameters:**
16
- - `--ticker` (required): Index ticker symbol (e.g., I:SPX).
17
- - `--from` (required): Start date (YYYY-MM-DD).
18
- - `--to` (required): End date (YYYY-MM-DD).
19
- - `--multiplier` (number): Timespan multiplier (default: 1).
20
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `second`, `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
21
- - `--sort` (string): Sort order (default: 'asc'). Values: `asc`, `desc`.
22
- - `--limit` (number): Max results (default: 120).
23
-
24
- **Example:**
25
- ```bash
26
- bun cli.js indices-aggs --ticker I:SPX --from 2025-01-01 --to 2025-01-31 --timespan day --limit 10
27
- ```
28
-
29
- ### indices-open-close
30
- Get the daily open, close, and after-hours prices for an index on a specific date.
31
-
32
- **Usage:**
33
- ```bash
34
- bun cli.js indices-open-close --ticker <ticker> --date <YYYY-MM-DD>
35
- ```
36
-
37
- **Parameters:**
38
- - `--ticker` (required): Index ticker symbol.
39
- - `--date` (required): Date of the requested open/close (YYYY-MM-DD).
40
-
41
- **Example:**
42
- ```bash
43
- bun cli.js indices-open-close --ticker I:SPX --date 2025-01-15
44
- ```
45
-
46
- ### indices-snapshot
47
- Get the most recent snapshot for an index.
48
-
49
- **Usage:**
50
- ```bash
51
- bun cli.js indices-snapshot [--ticker <ticker>]
52
- ```
53
-
54
- **Parameters:**
55
- - `--ticker`: Index ticker symbol (e.g., I:SPX).
56
-
57
- **Example:**
58
- ```bash
59
- bun cli.js indices-snapshot --ticker I:SPX
60
- ```
61
-
62
- ### indices-previous
63
- Get the previous day's open, high, low, and close (OHLC) for an index.
64
-
65
- **Usage:**
66
- ```bash
67
- bun cli.js indices-previous --ticker <ticker>
68
- ```
69
-
70
- **Parameters:**
71
- - `--ticker` (required): Index ticker symbol.
72
-
73
- **Example:**
74
- ```bash
75
- bun cli.js indices-previous --ticker I:SPX
76
- ```
77
-
78
- ### indices-sma
79
- Get Simple Moving Average (SMA) for an index.
80
-
81
- **Usage:**
82
- ```bash
83
- bun cli.js indices-sma --ticker <ticker> [options]
84
- ```
85
-
86
- **Parameters:**
87
- - `--ticker` (required): Index ticker symbol.
88
- - `--timestamp` (string): Query by specific timestamp.
89
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
90
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
91
- - `--window` (number): Window size (default: 50).
92
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
93
- - `--expand-underlying` (boolean): Include underlying aggregates.
94
- - `--order` (string): Sort order. Values: `asc`, `desc`.
95
- - `--limit` (number): Max results (default: 10).
96
-
97
- **Example:**
98
- ```bash
99
- bun cli.js indices-sma --ticker I:SPX --window 50
100
- ```
101
-
102
- ### indices-ema
103
- Get Exponential Moving Average (EMA) for an index.
104
-
105
- **Usage:**
106
- ```bash
107
- bun cli.js indices-ema --ticker <ticker> [options]
108
- ```
109
-
110
- **Parameters:**
111
- - `--ticker` (required): Index ticker symbol.
112
- - `--timestamp` (string): Query by specific timestamp.
113
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
114
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
115
- - `--window` (number): Window size (default: 50).
116
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
117
- - `--expand-underlying` (boolean): Include underlying aggregates.
118
- - `--order` (string): Sort order. Values: `asc`, `desc`.
119
- - `--limit` (number): Max results (default: 10).
120
-
121
- **Example:**
122
- ```bash
123
- bun cli.js indices-ema --ticker I:SPX --window 50
124
- ```
125
-
126
- ### indices-rsi
127
- Get Relative Strength Index (RSI) for an index.
128
-
129
- **Usage:**
130
- ```bash
131
- bun cli.js indices-rsi --ticker <ticker> [options]
132
- ```
133
-
134
- **Parameters:**
135
- - `--ticker` (required): Index ticker symbol.
136
- - `--timestamp` (string): Query by specific timestamp.
137
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
138
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
139
- - `--window` (number): Window size (default: 14).
140
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
141
- - `--expand-underlying` (boolean): Include underlying aggregates.
142
- - `--order` (string): Sort order. Values: `asc`, `desc`.
143
- - `--limit` (number): Max results (default: 10).
144
-
145
- **Example:**
146
- ```bash
147
- bun cli.js indices-rsi --ticker I:SPX --window 14
148
- ```
149
-
150
- ### indices-macd
151
- Get Moving Average Convergence/Divergence (MACD) for an index.
152
-
153
- **Usage:**
154
- ```bash
155
- bun cli.js indices-macd --ticker <ticker> [options]
156
- ```
157
-
158
- **Parameters:**
159
- - `--ticker` (required): Index ticker symbol.
160
- - `--timestamp` (string): Query by specific timestamp.
161
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
162
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
163
- - `--short-window` (number): Short window size.
164
- - `--long-window` (number): Long window size.
165
- - `--signal-window` (number): Signal window size.
166
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
167
- - `--expand-underlying` (boolean): Include underlying aggregates.
168
- - `--order` (string): Sort order. Values: `asc`, `desc`.
169
- - `--limit` (number): Max results (default: 10).
170
-
171
- **Example:**
172
- ```bash
173
- bun cli.js indices-macd --ticker I:SPX
174
- ```
@@ -1,37 +0,0 @@
1
- # Market Data Commands Reference
2
-
3
- This document provides a reference for the market data commands available in the Polygon CLI.
4
-
5
- ## Commands
6
-
7
- ### market-status
8
- Get the prompt status of the market.
9
-
10
- **Usage:**
11
- ```bash
12
- bun cli.js market-status
13
- ```
14
-
15
- **Parameters:**
16
- None.
17
-
18
- **Example:**
19
- ```bash
20
- bun cli.js market-status
21
- ```
22
-
23
- ### market-holidays
24
- Get upcoming market holidays.
25
-
26
- **Usage:**
27
- ```bash
28
- bun cli.js market-holidays
29
- ```
30
-
31
- **Parameters:**
32
- None.
33
-
34
- **Example:**
35
- ```bash
36
- bun cli.js market-holidays
37
- ```
@@ -1,33 +0,0 @@
1
- # News Commands Reference
2
-
3
- This document provides a reference for the news commands available in the Polygon CLI.
4
-
5
- ## Commands
6
-
7
- ### news
8
- Get the most recent news articles relating to a stock ticker symbol, including a summary of the article and a link to the original source.
9
-
10
- **Usage:**
11
- ```bash
12
- bun cli.js news [options]
13
- ```
14
-
15
- **Parameters:**
16
- - `--ticker` (string): Filter by ticker.
17
- - `--published-utc` (string): Filter by publication date.
18
- - `--ticker-gte` (string): Range by ticker.
19
- - `--ticker-gt` (string): Range by ticker.
20
- - `--ticker-lte` (string): Range by ticker.
21
- - `--ticker-lt` (string): Range by ticker.
22
- - `--published-utc-gte` (string): Range by publication date.
23
- - `--published-utc-gt` (string): Range by publication date.
24
- - `--published-utc-lte` (string): Range by publication date.
25
- - `--published-utc-lt` (string): Range by publication date.
26
- - `--sort` (string): Sort field.
27
- - `--order` (string): Sort order.
28
- - `--limit` (number): Max results.
29
-
30
- **Example:**
31
- ```bash
32
- bun cli.js news --ticker AAPL --limit 5
33
- ```
@@ -1,258 +0,0 @@
1
- # Options Commands Reference
2
-
3
- This document provides a reference for the options-related commands available in the Polygon CLI.
4
-
5
- ## Commands
6
-
7
- ### options-aggs
8
- Get aggregate bars (OHLCV) for an options contract over a given date range.
9
-
10
- **Usage:**
11
- ```bash
12
- bun cli.js options-aggs --ticker <ticker> --from <YYYY-MM-DD> --to <YYYY-MM-DD> [options]
13
- ```
14
-
15
- **Parameters:**
16
- - `--ticker` (required): Options ticker symbol (e.g., O:AAPL230616C00150000).
17
- - `--from` (required): Start date (YYYY-MM-DD).
18
- - `--to` (required): End date (YYYY-MM-DD).
19
- - `--multiplier` (number): Timespan multiplier (default: 1).
20
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `second`, `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
21
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
22
- - `--sort` (string): Sort order (default: 'asc'). Values: `asc`, `desc`.
23
- - `--limit` (number): Max results (default: 120).
24
-
25
- **Example:**
26
- ```bash
27
- bun cli.js options-aggs --ticker O:AAPL230616C00150000 --from 2025-01-01 --to 2025-01-31 --timespan day --limit 10
28
- ```
29
-
30
- ### options-trades
31
- Get trades for an options contract.
32
-
33
- **Usage:**
34
- ```bash
35
- bun cli.js options-trades --ticker <ticker> [options]
36
- ```
37
-
38
- **Parameters:**
39
- - `--ticker` (required): Options ticker symbol.
40
- - `--timestamp` (string): Query by specific timestamp.
41
- - `--timestamp-gte`, `--timestamp-gt`, `--timestamp-lte`, `--timestamp-lt` (string): Timestamp range filters.
42
- - `--limit` (number): Max results (default: 10).
43
- - `--sort` (string): Sort field (default: 'timestamp'). Values: `timestamp`.
44
- - `--order` (string): Sort order (default: 'asc'). Values: `asc`, `desc`.
45
-
46
- **Example:**
47
- ```bash
48
- bun cli.js options-trades --ticker O:AAPL230616C00150000 --limit 5
49
- ```
50
-
51
- ### options-quotes
52
- Get quotes for an options contract.
53
-
54
- **Usage:**
55
- ```bash
56
- bun cli.js options-quotes --ticker <ticker> [options]
57
- ```
58
-
59
- **Parameters:**
60
- - `--ticker` (required): Options ticker symbol.
61
- - `--timestamp` (string): Query by specific timestamp.
62
- - `--timestamp-gte`, `--timestamp-gt`, `--timestamp-lte`, `--timestamp-lt` (string): Timestamp range filters.
63
- - `--limit` (number): Max results (default: 10).
64
- - `--sort` (string): Sort field (default: 'timestamp'). Values: `timestamp`.
65
- - `--order` (string): Sort order (default: 'asc'). Values: `asc`, `desc`.
66
-
67
- **Example:**
68
- ```bash
69
- bun cli.js options-quotes --ticker O:AAPL230616C00150000 --limit 5
70
- ```
71
-
72
- ### options-open-close
73
- Get the daily open, close, and after-hours prices for an options contract on a specific date.
74
-
75
- **Usage:**
76
- ```bash
77
- bun cli.js options-open-close --ticker <ticker> --date <YYYY-MM-DD> [options]
78
- ```
79
-
80
- **Parameters:**
81
- - `--ticker` (required): Options ticker symbol.
82
- - `--date` (required): Date of the requested open/close (YYYY-MM-DD).
83
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
84
-
85
- **Example:**
86
- ```bash
87
- bun cli.js options-open-close --ticker O:AAPL230616C00150000 --date 2025-01-15
88
- ```
89
-
90
- ### options-chain
91
- Get a snapshot of options chain for an underlying asset.
92
-
93
- **Usage:**
94
- ```bash
95
- bun cli.js options-chain --underlying <ticker> [options]
96
- ```
97
-
98
- **Parameters:**
99
- - `--underlying` (required): Underlying ticker symbol (e.g., AAPL).
100
- - `--strike` (number): Strike price.
101
- - `--expiration` (string): Expiration date (YYYY-MM-DD).
102
- - `--type` (string): Contract type. Values: `call`, `put`.
103
- - `--order` (string): Sort order. Values: `asc`, `desc`.
104
- - `--limit` (number): Max results (default: 10).
105
- - `--sort` (string): Sort field.
106
-
107
- **Example:**
108
- ```bash
109
- bun cli.js options-chain --underlying AAPL --type call
110
- ```
111
-
112
- ### options-contract
113
- Get details for a specific options contract.
114
-
115
- **Usage:**
116
- ```bash
117
- bun cli.js options-contract --underlying <ticker> --contract <contract_id>
118
- ```
119
-
120
- **Parameters:**
121
- - `--underlying` (required): Underlying ticker symbol.
122
- - `--contract` (required): Options contract identifier (e.g., O:AAPL230616C00150000).
123
-
124
- **Example:**
125
- ```bash
126
- bun cli.js options-contract --underlying AAPL --contract O:AAPL230616C00150000
127
- ```
128
-
129
- ### options-previous
130
- Get the previous day's open, high, low, and close (OHLC) for an options contract.
131
-
132
- **Usage:**
133
- ```bash
134
- bun cli.js options-previous --ticker <ticker> [options]
135
- ```
136
-
137
- **Parameters:**
138
- - `--ticker` (required): Options ticker symbol.
139
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
140
-
141
- **Example:**
142
- ```bash
143
- bun cli.js options-previous --ticker O:AAPL230616C00150000
144
- ```
145
-
146
- ### options-sma
147
- Get Simple Moving Average (SMA) for an options contract.
148
-
149
- **Usage:**
150
- ```bash
151
- bun cli.js options-sma --ticker <ticker> [options]
152
- ```
153
-
154
- **Parameters:**
155
- - `--ticker` (required): Options ticker symbol.
156
- - `--timestamp` (string): Query by specific timestamp.
157
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
158
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
159
- - `--window` (number): Window size (default: 50).
160
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
161
- - `--expand-underlying` (boolean): Include underlying aggregates.
162
- - `--order` (string): Sort order. Values: `asc`, `desc`.
163
- - `--limit` (number): Max results (default: 10).
164
-
165
- **Example:**
166
- ```bash
167
- bun cli.js options-sma --ticker O:AAPL230616C00150000 --window 50
168
- ```
169
-
170
- ### options-ema
171
- Get Exponential Moving Average (EMA) for an options contract.
172
-
173
- **Usage:**
174
- ```bash
175
- bun cli.js options-ema --ticker <ticker> [options]
176
- ```
177
-
178
- **Parameters:**
179
- - `--ticker` (required): Options ticker symbol.
180
- - `--timestamp` (string): Query by specific timestamp.
181
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
182
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
183
- - `--window` (number): Window size (default: 50).
184
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
185
- - `--expand-underlying` (boolean): Include underlying aggregates.
186
- - `--order` (string): Sort order. Values: `asc`, `desc`.
187
- - `--limit` (number): Max results (default: 10).
188
-
189
- **Example:**
190
- ```bash
191
- bun cli.js options-ema --ticker O:AAPL230616C00150000 --window 50
192
- ```
193
-
194
- ### options-rsi
195
- Get Relative Strength Index (RSI) for an options contract.
196
-
197
- **Usage:**
198
- ```bash
199
- bun cli.js options-rsi --ticker <ticker> [options]
200
- ```
201
-
202
- **Parameters:**
203
- - `--ticker` (required): Options ticker symbol.
204
- - `--timestamp` (string): Query by specific timestamp.
205
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
206
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
207
- - `--window` (number): Window size (default: 14).
208
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
209
- - `--expand-underlying` (boolean): Include underlying aggregates.
210
- - `--order` (string): Sort order. Values: `asc`, `desc`.
211
- - `--limit` (number): Max results (default: 10).
212
-
213
- **Example:**
214
- ```bash
215
- bun cli.js options-rsi --ticker O:AAPL230616C00150000 --window 14
216
- ```
217
-
218
- ### options-macd
219
- Get Moving Average Convergence/Divergence (MACD) for an options contract.
220
-
221
- **Usage:**
222
- ```bash
223
- bun cli.js options-macd --ticker <ticker> [options]
224
- ```
225
-
226
- **Parameters:**
227
- - `--ticker` (required): Options ticker symbol.
228
- - `--timestamp` (string): Query by specific timestamp.
229
- - `--timespan` (string): Timespan unit (default: 'day'). Values: `minute`, `hour`, `day`, `week`, `month`, `quarter`, `year`.
230
- - `--adjusted` (boolean): Whether to adjust for splits (default: true).
231
- - `--short-window` (number): Short window size.
232
- - `--long-window` (number): Long window size.
233
- - `--signal-window` (number): Signal window size.
234
- - `--series-type` (string): Price type to use. Values: `open`, `high`, `low`, `close`.
235
- - `--expand-underlying` (boolean): Include underlying aggregates.
236
- - `--order` (string): Sort order. Values: `asc`, `desc`.
237
- - `--limit` (number): Max results (default: 10).
238
-
239
- **Example:**
240
- ```bash
241
- bun cli.js options-macd --ticker O:AAPL230616C00150000
242
- ```
243
-
244
- ### last-options-trade
245
- Get the most recent trade for an options contract.
246
-
247
- **Usage:**
248
- ```bash
249
- bun cli.js last-options-trade --ticker <ticker>
250
- ```
251
-
252
- **Parameters:**
253
- - `--ticker` (required): Options ticker symbol.
254
-
255
- **Example:**
256
- ```bash
257
- bun cli.js last-options-trade --ticker O:AAPL230616C00150000
258
- ```
@@ -1,216 +0,0 @@
1
- # Reference Data Commands Reference
2
-
3
- This document provides a reference for the reference data commands available in the Polygon CLI.
4
-
5
- ## Commands
6
-
7
- ### tickers
8
- Query all ticker symbols which are supported by Polygon.io.
9
-
10
- **Usage:**
11
- ```bash
12
- bun cli.js tickers [options]
13
- ```
14
-
15
- **Parameters:**
16
- - `--ticker` (string): Specify a ticker symbol.
17
- - `--type` (string): Specify the type of the tickers (e.g., CS, ETF).
18
- - `--market` (string): Filter by market type (stocks, crypto, fx, otc, indices).
19
- - `--exchange` (string): Specify the primary exchange MIC.
20
- - `--cusip` (string): Search by CUSIP.
21
- - `--cik` (string): Search by CIK.
22
- - `--date` (string): Specify a date for the ticker search (YYYY-MM-DD).
23
- - `--search` (string): Search for terms within the ticker and/or company name.
24
- - `--active` (boolean): Filter for active/inactive tickers (default: true).
25
- - `--sort` (string): Sort field (ticker, type).
26
- - `--order` (string): Sort order (asc, desc).
27
- - `--limit` (number): Max results (default: 10).
28
-
29
- **Example:**
30
- ```bash
31
- bun cli.js tickers --search apple --market stocks --active true
32
- ```
33
-
34
- ### ticker-details
35
- Get a single ticker supported by Polygon.io.
36
-
37
- **Usage:**
38
- ```bash
39
- bun cli.js ticker-details --ticker <ticker> [options]
40
- ```
41
-
42
- **Parameters:**
43
- - `--ticker` (required): The ticker symbol.
44
- - `--date` (string): Specify a point in time for the ticker details (YYYY-MM-DD).
45
-
46
- **Example:**
47
- ```bash
48
- bun cli.js ticker-details --ticker AAPL
49
- ```
50
-
51
- ### ticker-types
52
- Get a mapping of ticker types to their type code.
53
-
54
- **Usage:**
55
- ```bash
56
- bun cli.js ticker-types [options]
57
- ```
58
-
59
- **Parameters:**
60
- - `--asset-class` (string): Filter by asset class (stocks, options, crypto, fx, indices).
61
- - `--locale` (string): Filter by locale (us, global).
62
-
63
- **Example:**
64
- ```bash
65
- bun cli.js ticker-types --asset-class stocks
66
- ```
67
-
68
- ### exchanges
69
- List all exchanges that Polygon.io knows about.
70
-
71
- **Usage:**
72
- ```bash
73
- bun cli.js exchanges [options]
74
- ```
75
-
76
- **Parameters:**
77
- - `--asset-class` (string): Filter by asset class.
78
- - `--locale` (string): Filter by locale.
79
-
80
- **Example:**
81
- ```bash
82
- bun cli.js exchanges --asset-class stocks
83
- ```
84
-
85
- ### conditions
86
- List all conditions that Polygon.io uses.
87
-
88
- **Usage:**
89
- ```bash
90
- bun cli.js conditions [options]
91
- ```
92
-
93
- **Parameters:**
94
- - `--asset-class` (string): Filter by asset class.
95
- - `--data-type` (string): Filter by data type (trade, bbo, nbbo).
96
- - `--id` (number): Filter by condition ID.
97
- - `--sip` (string): Filter by SIP (CTA, UTP, OPRA).
98
- - `--sort` (string): Sort field.
99
- - `--order` (string): Sort order.
100
- - `--limit` (number): Max results.
101
-
102
- **Example:**
103
- ```bash
104
- bun cli.js conditions --asset-class stocks
105
- ```
106
-
107
- ### dividends
108
- Get a list of historical cash dividends, including the ticker symbol, declaration date, ex-dividend date, record date, pay date, frequency, and amount.
109
-
110
- **Usage:**
111
- ```bash
112
- bun cli.js dividends [options]
113
- ```
114
-
115
- **Parameters:**
116
- - `--ticker` (string): Filter by ticker.
117
- - `--ex-dividend-date` (string): Query by ex-dividend date.
118
- - `--record-date` (string): Query by record date.
119
- - `--declaration-date` (string): Query by declaration date.
120
- - `--pay-date` (string): Query by pay date.
121
- - `--frequency` (number): Frequency (0=one-time, 1=annually, 4=quarterly, etc.).
122
- - `--cash-amount` (number): Query by cash amount.
123
- - `--dividend-type` (string): Query by dividend type (CD, SC, LT, etc.).
124
- - `--sort` (string): Sort field.
125
- - `--order` (string): Sort order.
126
- - `--limit` (number): Max results.
127
-
128
- **Example:**
129
- ```bash
130
- bun cli.js dividends --ticker AAPL
131
- ```
132
-
133
- ### stock-splits
134
- Get a list of historical stock splits, including the ticker symbol, the execution date, and the split ratio.
135
-
136
- **Usage:**
137
- ```bash
138
- bun cli.js stock-splits [options]
139
- ```
140
-
141
- **Parameters:**
142
- - `--ticker` (string): Filter by ticker.
143
- - `--execution-date` (string): Query by execution date.
144
- - `--reverse-split` (boolean): Filter for reverse splits.
145
- - `--sort` (string): Sort field.
146
- - `--order` (string): Sort order.
147
- - `--limit` (number): Max results.
148
-
149
- **Example:**
150
- ```bash
151
- bun cli.js stock-splits --ticker AAPL
152
- ```
153
-
154
- ### financials
155
- Get historical financial data for a stock ticker.
156
-
157
- **Usage:**
158
- ```bash
159
- bun cli.js financials [options]
160
- ```
161
-
162
- **Parameters:**
163
- - `--ticker` (string): Query by ticker.
164
- - `--cik` (string): Query by CIK.
165
- - `--company-name` (string): Query by company name.
166
- - `--sic` (string): Query by SIC.
167
- - `--filing-date` (string): Query by filing date.
168
- - `--period-of-report-date` (string): Query by period of report date.
169
- - `--timeframe` (string): internal.
170
- - `--include-sources` (boolean): Include sources.
171
- - `--sort` (string): Sort field.
172
- - `--order` (string): Sort order.
173
- - `--limit` (number): Max results.
174
-
175
- **Example:**
176
- ```bash
177
- bun cli.js financials --ticker AAPL
178
- ```
179
-
180
- ### ipos
181
- Get a list of upcoming IPOs.
182
-
183
- **Usage:**
184
- ```bash
185
- bun cli.js ipos [options]
186
- ```
187
-
188
- **Parameters:**
189
- - `--ticker` (string): Filter by ticker.
190
- - `--us-code` (string): Filter by US Code.
191
- - `--isin` (string): Filter by ISIN.
192
- - `--listing-date` (string): Filter by listing date.
193
- - `--sort` (string): Sort field.
194
- - `--order` (string): Sort order.
195
- - `--limit` (number): Max results.
196
-
197
- **Example:**
198
- ```bash
199
- bun cli.js ipos --limit 5
200
- ```
201
-
202
- ### related-companies
203
- Get a list of tickers that are related to the given ticker.
204
-
205
- **Usage:**
206
- ```bash
207
- bun cli.js related-companies --ticker <ticker>
208
- ```
209
-
210
- **Parameters:**
211
- - `--ticker` (required): The ticker symbol.
212
-
213
- **Example:**
214
- ```bash
215
- bun cli.js related-companies --ticker AAPL
216
- ```