massive-cli 0.0.1
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 +63 -0
- package/dist/SKILL.md +55 -0
- package/dist/cli.js +20593 -0
- package/dist/references/crypto_commands.md +142 -0
- package/dist/references/forex_commands.md +237 -0
- package/dist/references/indices_commands.md +174 -0
- package/dist/references/market_commands.md +37 -0
- package/dist/references/news_commands.md +33 -0
- package/dist/references/options_commands.md +258 -0
- package/dist/references/reference_commands.md +216 -0
- package/dist/references/stocks_commands.md +273 -0
- package/package.json +27 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Polygon (Massive) API CLI
|
|
2
|
+
|
|
3
|
+
A CLI tool for accessing [Polygon.io](https://polygon.io) financial data (Stocks, Crypto, Forex, Options, Indices) using [Bun](https://bun.sh).
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
1. **Install Dependencies:**
|
|
8
|
+
```bash
|
|
9
|
+
bun install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
2. **Configure API Key:**
|
|
13
|
+
Create a `.env` file in the root directory:
|
|
14
|
+
```
|
|
15
|
+
POLY_API_KEY=your_api_key_here
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
3. **Build:**
|
|
19
|
+
```bash
|
|
20
|
+
bun run build
|
|
21
|
+
```
|
|
22
|
+
This generates the bundled CLI in `dist/cli.js`.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
### Via NPX (Recommended)
|
|
27
|
+
|
|
28
|
+
Run commands directly without installing:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx massive <command> [options]
|
|
32
|
+
```
|
|
33
|
+
*(Requires Bun to be installed)*
|
|
34
|
+
|
|
35
|
+
### Local Installation
|
|
36
|
+
|
|
37
|
+
Run commands using the built CLI:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
bun dist/cli.js <command> [options]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Examples
|
|
44
|
+
|
|
45
|
+
**Stocks:**
|
|
46
|
+
```bash
|
|
47
|
+
npx massive stocks-aggs --ticker AAPL --from 2023-01-01 --to 2023-01-31
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Crypto:**
|
|
51
|
+
```bash
|
|
52
|
+
npx massive crypto-snapshot --ticker X:BTCUSD
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Market Status:**
|
|
56
|
+
```bash
|
|
57
|
+
npx massive market-status
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Use `--help` to see all available commands:
|
|
61
|
+
```bash
|
|
62
|
+
npx massive --help
|
|
63
|
+
```
|
package/dist/SKILL.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: polygon-api
|
|
3
|
+
description: Access Polygon/Massive stock, crypto, forex, options, indices, futures, market data, and news APIs via CLI.
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
requires:
|
|
7
|
+
bins: ["bun"]
|
|
8
|
+
env: ["POLY_API_KEY"]
|
|
9
|
+
primaryEnv: "POLY_API_KEY"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Polygon (Massive) Market Data Skill
|
|
13
|
+
|
|
14
|
+
A CLI tool and JS client wrapper for the [Polygon/Massive](https://massive.com) financial data APIs. Covers stocks, crypto, forex, options, indices, futures, market status, news, and reference data.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## CLI Usage
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
bun cli.js <command> [options]
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
All commands output JSON to stdout. Use `--help` for a list of commands or `<command> --help` for command-specific options.
|
|
24
|
+
|
|
25
|
+
### Stocks
|
|
26
|
+
|
|
27
|
+
See [Stocks Commands Reference](references/stocks_commands.md) for full details on all stock commands and parameters.
|
|
28
|
+
|
|
29
|
+
### Crypto
|
|
30
|
+
|
|
31
|
+
See [Crypto Commands Reference](references/crypto_commands.md) for full details on all crypto commands and parameters.
|
|
32
|
+
|
|
33
|
+
### Forex
|
|
34
|
+
|
|
35
|
+
See [Forex Commands Reference](references/forex_commands.md) for full details on all forex commands and parameters.
|
|
36
|
+
|
|
37
|
+
### Options
|
|
38
|
+
|
|
39
|
+
See [Options Commands Reference](references/options_commands.md) for full details on all options commands and parameters.
|
|
40
|
+
|
|
41
|
+
### Indices
|
|
42
|
+
|
|
43
|
+
See [Indices Commands Reference](references/indices_commands.md) for full details on all indices commands and parameters.
|
|
44
|
+
|
|
45
|
+
### Reference Data
|
|
46
|
+
|
|
47
|
+
See [Reference Data Commands Reference](references/reference_commands.md) for full details on all reference data commands and parameters.
|
|
48
|
+
|
|
49
|
+
### Market
|
|
50
|
+
|
|
51
|
+
See [Market Commands Reference](references/market_commands.md) for full details on all market commands and parameters.
|
|
52
|
+
|
|
53
|
+
### News
|
|
54
|
+
|
|
55
|
+
See [News Commands Reference](references/news_commands.md) for full details on all news commands and parameters.
|