npm.io
0.4.8 • Published 4 months agoCLI

rhx

Licence
MIT
Version
0.4.8
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
2

rhx

Go-native Robinhood CLI available through npx.

This npm package launches a prebuilt native rhx binary for the current platform. It does not fall back to Python.

Quick Start

npx rhx --help
npx rhx auth login
npx rhx auth verify

Brokerage sessions are refreshed from the saved refresh token before rhx falls back to password login. Interactive commands wait for Robinhood approval challenges; non-interactive commands fail fast instead of repeatedly triggering MFA prompts.

Common Examples

npx rhx --json quote get AAPL
npx rhx --json quote list --symbols AAPL,MSFT,BTC-USD
npx rhx --json options expirations AAPL

TOKEN=$(npx rhx --json live on --yes | jq -r '.data.live_confirm_token')
npx rhx --json orders stock place --symbol AAPL --side buy --type market --qty 1 --live-confirm-token "$TOKEN"
npx rhx --json orders stock place --symbol AAPL --side buy --type market --qty 1 --wait terminal --timeout 60s --live-confirm-token "$TOKEN"
npx rhx --json --limit 20 orders open --asset-type stock
npx rhx --json orders stock sell-all --symbol AAPL --live-confirm-token "$TOKEN"

Platform Support

  • darwin-arm64
  • linux-x64
  • win32-x64

Keywords