Acquire ticker symbol and company name from Japan Exchange Group. Only Japan data.
証券コードと会社名を東京証券取引所のデータから取得するGEMです。
TickerSymbolJpn is used Web scraping. Therefore be careful about excessive access to a Web server. Please use weather data which is written by your program in a file.
Webサーバーから毎回データを取得してくるため、Webサーバーに負荷がかかる可能性があります。使用する時はなるべく下記のようにファイルに書き出して使用してください。
# example
save_code "codes.json"
codes = load_code "codes.json"
Add this line to your application's Gemfile:
gem 'ticker_symbol_jpn'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ticker_symbol_jpn
Data is hash data. Key is ticker symbol data and value is company name.
codes = TickerSymbolJpn.all_codes
p codes[3904] #=> "カヤック"
All ticker symbol data.
Data of Tokyo Stock Exchange 1st section.
Data of Tokyo Stock Exchange 2nd section.
Data of Mothers.
Data of JASDAQ
Save to json_file_path.
Load from json_file_path. Return hash data.
- Fork it ( https://github.com/[my-github-username]/ticker_symbol_jpn/fork )
- 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 a new Pull Request