Interfaces
StockSync CLI
stocksync reads Robinhood Chain Stock Token data from StockSync Core. It is read-only: it never
signs, transfers, or trades, and nothing it prints is investment advice.
Commands
Global options: --json, --plain, --chain <mainnet|testnet|4663|46630>, -h/--help, --version.
price and oracle are separate on purpose: API quotes are the raw underlying equity, while
Chainlink feeds already include the corporate-action multiplier.
Output
- Terminal: aligned, colored when stdout is a terminal. Labels stack above values below 60 columns, and wide tables shrink their name column.
--plain: no color and ASCII-only symbols.NO_COLORalso disables color;FORCE_COLORenables it for piped output.--json: one JSON document on stdout, never mixed with other text.
Failures with --json print { "schemaVersion": 1, "command": "get", "ok": false, "error": { "code", "message", "retryable", "upstream", "issues" } } on stdout. Without --json, errors and warnings
go to stderr and stdout stays clean.