
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
A Ruby command line interface to the Robinhood API:
:warning: WARNING: This is no longer maintained and has not been thoroughly used in years. It is not recommended to use this to place trades or perform any sensitive actions, as this is not an official product of Robinhood and the APIs it's making use of may change at any time :warning:
Rh-console is hosted on RubyGems and can be installed via:
gem install rh-console
And you'll have access to a rh-console
executable in your terminal.
Alternatively, clone the repository and run it:
git clone https://github.com/brentjo/rh-console
cd rh-console
bin/rh-console
Or run with Docker:
docker build -f Dockerfile -t rh-console .
docker run -it --rm rh-console
get
commandThere are no dependencies -- only the ruby standard library is used, so simply clone, start making edits, and run with bin/rh-console
.
The few gems listed in the Gemfile are needed to run and record new tests, and can be installed with bundle install
. Tests use vcr to record interactions with the Robinhood API. The initial recording hits the live API and your test cases make assertions based off it, but subsequent runs match against requests in the VCR recording.
After making changes, update the YARD documentation with bundle exec rake yard
.
Install the dependencies and run tests via rake:
bundle install
bundle exec rake test
Alternatively, build and run a Dockerfile:
docker build -f Dockerfile.ci -t rh-console-ci .
docker run --rm rh-console-ci
Command line interactions
Tests that assert that certain command line input should lead to certain library calls are within test/test_robinhood_console.rb
.
Robinhood client
The actual client that interacts with the API to place orders, get quotes, etc, is tested within test/test_unauthenticated_robinhood_client.rb
and test/test_authenticated_robinhood_client.rb
. Unfortunately, because these VCR recordings are real API interactions, the cassettes for most tests are not checked into source control.
Full YARD documentation can be found at: https://brentjo.github.io/rh-console/top-level-namespace.html
tj/terminal-table
.Net:HTTP
's GET and POST methods to help craft the requests to the API."text".red
and the text will be output red in the terminal.FAQs
Unknown package
We found that rh-console demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.