GithubHelp home page GithubHelp logo

thanhtoan1196 / jpstock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from s-tajima/jpstock

0.0 1.0 0.0 560 KB

JpStock is a Ruby library for extracting information about Japan stocks

Home Page: https://rubygems.org/gems/jpstock

License: MIT License

Ruby 100.00%

jpstock's Introduction

JpStock

JpStock is a Ruby library for extracting information about Japan stocks.

日本の株価情報を取得するためのRubyライブラリ。

Installing

gem install jpstock

dependencies: nokogiri

Using

現在の株価を取得

JpStock.price(:code=>"4689")
JpStock.price(:code=>["4689", "2702"])

過去の株価を取得

JpStock.historical_prices(:code=>"4689", :start_date=>'2012/01/01', :end_date=>'2012/3/31')
JpStock.historical_prices(:code=>"4689", :start_date=>Date.new(2012,1,1), :end_date=>Date.today)
JpStock.historical_prices(:code=>"4689", :all=>true)

セクター別銘柄情報を取得

JpStock.sector(:id=>"0050")
JpStock.sector(:code=>'4689')
JpStock.sector(:update=>true)

個別銘柄情報を取得

JpStock.quote(:code=>"4689")

逆日歩情報を取得

JpStock.nipd()
JpStock.nipd(:code=>"4689")
JpStock.nipd(:code=>"4689", :date=>'2012/3/20')
JpStock.nipd(:code=>"4689", :date=>'2012/3/20', :reload=>true)
JpStock.nipd(:code=>"4689", :date=>'2012/3/20', :jsf=>true, :osf=>false)

信用情報を取得

JpStock.credit()
JpStock.credit(:code=>"4689")
JpStock.credit(:code=>"4689", :date=>'2012/9/22')
JpStock.credit(:code=>"4689", :date=>'2012/9/22', :reload=>true)
JpStock.credit(:code=>"4689", :date=>'2012/9/22', :jsf=>true, :osf=>false)

適時開示情報を取得

JpStock.tdnet()
JpStock.tdnet(:date=>'2012/3/20')
JpStock.tdnet(:code=>'4689')
JpStock.tdnet(:code=>'4689', :date=>'2012/3/20')
JpStock.tdnet_each{|td| p td}

証券コードからEDINETコードを取得

JpStock.sec2edi(:code=>'4689')

EDINETコードから証券コードを取得

JpStock.edi2sec(:code=>'E05000')

Copyright © 2012 utahta. See LICENSE.txt for further details.

jpstock's People

Contributors

utahta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.