gitshrl/stockbit-cli — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Rust command line tool called stockbit that wraps Stockbit’s exodus REST API and prints the raw JSON response to stdout.

It should let me save a bearer token once, read it later from a config file, environment variable, or command flag, and also support changing the base URL. I want simple commands for Indonesian stock data like keystats, info, profile, combined emitten info, market detectors, orderbook, broker distribution, trade book, and shareholders. Add a pretty print option for JSON and basic verbosity flags.

Please include sensible validation for dates and required arguments, handle Stockbit quirks like allowed keystats year limits and shareholders returning missing data, and retry temporary server or rate limit failures without retrying normal client errors. Make the config file permissions safe.

Add tests that don’t need the real network, plus optional integration tests when a Stockbit token is available. Keep the README clear with install steps, auth setup, command examples, and development commands.

Want more depth? Deep Reverse