/RobinhoodShell

A command line shell for trading stocks using Robinhood

Primary LanguagePythonMIT LicenseMIT

Robinhood Shell

Robinhood Shell is a command line shell for trading stocks using Robinhood.

Robinhood Shell

Commands Supported

  • l : Lists your current portfolio
  • b <symbol> <quantity> <price> : Submits a limit order to buy stocks of at
  • s <symbol> <quantity> <price> : Submits a limit order to sell stocks of at
  • q <symbol> : Get quote (current price) for symbol
  • o : Lists all open orders
  • c <id> : Cancel an open order identified by [ of a open order can be got from output of o]
  • bye : Exit the shell

Setup

If you don't have a Robinhood account, sign up for Robinhood. It is a free stock trading platform. Use my referral link to sign up and get one free stock :)

Download Robinhood Shell by downloading the zip file (link) OR by using git

git clone https://github.com/anilshanbhag/RobinhoodShell.git

Install the dependencies

sudo pip install -r requirements.txt

Create and save your username/password in the config file

cp config.py.sample config.py
# Edit config.py - replace username/password with your real username/password

You are good to go. Start the shell by

chmod +x shell.py
./shell.py

Credits

The shell builds on Robinhood Python API wrapper by Jamonek

Disclaimer

Robinhood Shell is not associated with the Robinhood app or endorsed by it.