Skip to content

elsoul/rakuten_securities_scraper

Repository files navigation

RakutenSecuritiesScraper


RakutenSecuritiesScraper

Rakuten Securities Scraper / 楽天証券スクレイパー

Introduction

This gem is providing scraper methods for everyone to be able to make stock trading applications without writing scraper codes.

It features:

  • Get all trading histories
  • Auto Buying (future)
  • Auto Selling (future)

Installation

Add this line to your application's Gemfile:

gem "rakuten_securities_scraper"

And then execute:

$ bundle install

Or install it yourself as:

$ gem install rakuten_securities_scraper

Usage

    include RakutenSecuritiesScraper
    data = RakutenScraper.new($LOGIN_ID, $LOGIN_PW)

    ## Get Today's Trade History
    puts data.todays_history

    ## Get All Trade History
    puts data.all_history

    ## Get Today's Executed Order
    puts data.todays_order

    ## Add favorite list
    page_num : Integer 1..10
    codes : Array ["4755", "4875",,,]
    puts data.favorite page_num, codes

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/rakuten_securities_scraper.

About

Rakuten Securities Scraper / 楽天証券スクレイパー

Resources

License

Stars

Watchers

Forks

Packages

No packages published