rhx 0.2.5 → 0.3.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 +31 -13
- package/package.json +13 -6
package/README.md
CHANGED
|
@@ -1,26 +1,44 @@
|
|
|
1
1
|
# rhx
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Auth-first Robinhood CLI available via `npx`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This npm package is a launcher for the `rhx` CLI. It runs a prebuilt native binary on supported platforms and falls back to Python launchers (`uvx`/`pipx`) when needed.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
npx rhx --help
|
|
9
|
-
npx rhx
|
|
11
|
+
npx rhx auth login
|
|
12
|
+
npx rhx auth verify
|
|
10
13
|
```
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
1. macOS arm64
|
|
15
|
-
2. Linux x64
|
|
16
|
-
3. Windows x64
|
|
15
|
+
## Common Examples
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
```bash
|
|
18
|
+
# Quote lookup
|
|
19
|
+
npx rhx --json quote get AAPL
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
# Batch quotes
|
|
22
|
+
npx rhx --json quote list --symbols AAPL,MSFT,BTC-USD
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
# Enable live mode and place a stock order
|
|
25
|
+
TOKEN=$(npx rhx --json live on --yes | jq -r '.data.live_confirm_token')
|
|
26
|
+
npx rhx --json orders stock place --symbol AAPL --side buy --type market --qty 1 --live-confirm-token "$TOKEN"
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
# Option chain discovery
|
|
29
|
+
npx rhx --json options expirations AAPL
|
|
30
|
+
npx rhx --json options strikes AAPL --expiration-date 2026-12-18 --option-type both
|
|
26
31
|
```
|
|
32
|
+
|
|
33
|
+
## Platform Support
|
|
34
|
+
|
|
35
|
+
- `darwin-arm64`
|
|
36
|
+
- `linux-x64`
|
|
37
|
+
- `win32-x64`
|
|
38
|
+
|
|
39
|
+
Set `RHX_ENABLE_PYTHON_FALLBACK=1` to force Python fallback even on a supported platform.
|
|
40
|
+
|
|
41
|
+
## Links
|
|
42
|
+
|
|
43
|
+
- Repo and full docs: <https://github.com/finlayi/robinhood-cli>
|
|
44
|
+
- Security policy: <https://github.com/finlayi/robinhood-cli/blob/main/SECURITY.md>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rhx",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Auth-first Robinhood CLI launcher for npx",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"publishConfig": {
|
|
@@ -22,17 +22,24 @@
|
|
|
22
22
|
"url": "git+https://github.com/finlayi/robinhood-cli.git",
|
|
23
23
|
"directory": "npm"
|
|
24
24
|
},
|
|
25
|
+
"homepage": "https://github.com/finlayi/robinhood-cli#readme",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/finlayi/robinhood-cli/issues"
|
|
28
|
+
},
|
|
25
29
|
"keywords": [
|
|
26
30
|
"robinhood",
|
|
27
31
|
"cli",
|
|
28
|
-
"
|
|
32
|
+
"automation",
|
|
33
|
+
"json",
|
|
34
|
+
"options",
|
|
35
|
+
"crypto",
|
|
29
36
|
"npx",
|
|
30
37
|
"trading"
|
|
31
38
|
],
|
|
32
39
|
"optionalDependencies": {
|
|
33
|
-
"rhx-darwin-arm64": "0.
|
|
34
|
-
"rhx-linux-x64": "0.
|
|
35
|
-
"rhx-win32-x64": "0.
|
|
40
|
+
"rhx-darwin-arm64": "0.3.1",
|
|
41
|
+
"rhx-linux-x64": "0.3.1",
|
|
42
|
+
"rhx-win32-x64": "0.3.1"
|
|
36
43
|
},
|
|
37
44
|
"scripts": {
|
|
38
45
|
"sync:versions": "node scripts/sync-platform-versions.cjs",
|