An open API service indexing awesome lists of open source software.

https://github.com/elsoul/rakuten_securities_scraper

Rakuten Securities Scraper / 楽天証券スクレイパー
https://github.com/elsoul/rakuten_securities_scraper

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

[![RakutenSecuritiesScraper](https://firebasestorage.googleapis.com/v0/b/el-quest.appspot.com/o/mediaLibrary%2F1589293505170_rakuten-shoken.jpg?alt=media&token=f86b6870-fd3f-42aa-805d-db35cb53a9b6)](https://www.rakuten-sec.co.jp/)














# 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:

```ruby
gem "rakuten_securities_scraper"
```

And then execute:

$ bundle install

Or install it yourself as:

$ gem install rakuten_securities_scraper

## Usage

```ruby
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](https://rubygems.org/gems/rakuten_securities_scraper).

## Contributing

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