buy - Buy Stocks for Free from the Command Line


buy -symbol=... -quantity=... [options]

   buy -username=getMoney -password=*** -symbol=MSFT -quantity=2000
   buy -token=9afcdbe... -symbol=MSFT -quantity=2000

   -username        your Robinhood username
   -password        your Robinhood password
   -token           your Robinhood access token
   -symbol          trading symbol of the security *
   -quantity        number of shares to buy *

   -help            brief help message
   -man             full documentation

    * required arguments



Your Robinhood username.


Your Robinhood password.


Robinhood provides access tokens for authorization which is great because you don't need to keep providing your username or password on the command line!

You can get it by passing a false -token arg along with your -username and -password:

    $ buy -username=secret -password=supersecret -token=0 -symbol=MSFT -quantity=200

And on subsequent runs, just provide the -token:

    $ buy -token=a9c321... -symbol=RHT -quantity=50

The ticker symbol of the security you'd like to place an order for.


The number of shares you'd like to order.


Dumps a lot of random debugging stuff to the terminal including private keys.

Be very careful where you use this!


Print a brief help message and exits.


Prints the manual page and exits.


buy will place a market order for the security of your choice to be executed immediatly.