kabu.js is a JavaScript library about listed stocks.
kabu.js is a stock informations library. It has dictionary data on all stocks in Japan!
<script src="https://7110.github.io/kabu/dist/kabu.js"></script># using npm
npm install kabu --save
# using yarn
yarn add kabuvar kabu = new Kabu();search method is able to search by company name
kabu.search("ソフトバンク");[
{
code: 9434,
name: "ソフトバンク",
market: "市場第一部(内国株)",
industry17: "情報通信・サービスその他 ",
industry33: "情報・通信業"
},
{
code: 9984,
name: "ソフトバンクグループ",
market: "市場第一部(内国株)",
industry17: "情報通信・サービスその他 ",
industry33: "情報・通信業"
}
]
get method is able to get data by stock code
kabu.get(4689);{
code: 4689,
name: "Zホールディングス",
market: "市場第一部(内国株)",
industry17: "情報通信・サービスその他 ",
industry33: "情報・通信業"
}
help method is going to print version, updated and so on on console
kabu.js's data is made on https://github.com/7110/kabu-data