Rakuten Securities client library for algorithmic trading.
Features:
- Login to "https://mobile.rakuten-sec.co.jp/".
- Get stock info.
- Get board info.
- Buy/Sell at the market.
Add this line to your application's Gemfile:
gem 'itagami'
And then execute:
$ bundle
Or install it yourself as:
$ gem install itagami
To initialize:
require 'itagami'
itagami = MobileItagami.new
To login:
itagami.login
To get stock info:
itagami.get_stock_info(1234)
To get board info:
itagami.get_board(1234)
To buy at the market:
itagami.buy_immediately(1234, 1)
To sell at the market:
itagami.sell_immediately(1234, 1)
To logout:
itagami.logout
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request