Get the most of Robinhood: accounts, positions, portfolio, buy and sell securities, etc.
GitHub Repository
rubygems.org page
- Set the
ROBINHOOD_USERNAME
andROBINHOOD_PASSWORD
in your environment
e.g. in your~/.bash_profile
or~/.bashrc
file:
export ROBINHOOD_USERNAME="aaa"
export ROBINHOOD_PASSWORD="bbb"
- In you rb file:
robinhood = Robinhood::Api,new
robinhood.login(
ENV['ROBINHOOD_USERNAME'],
ENV['ROBINHOOD_PASSWORD']
)
# Getting the list of orders made by the user
@orders = robinhood.orders
- login
- accounts
- investment_profile
- portfolio
- orders
- cancel_order
- buy
- limit_buy
- sell
- limit_sell
- stop_loss_sell
- quote
- instruments
- position
Add this line to your application's Gemfile:
gem 'robinhood-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install robinhood-api
Execute the following command:
$ bundle exec rake test
Contribution directions go here.
The gem is available as open source under the terms of the MIT License.