kabu

1.1.4 • Public • Published

kabu.js

npm version Build Status

kabu.js is a JavaScript library about listed stocks.

Feature

kabu.js is a stock informations library. It has dictionary data on all stocks in Japan!

Getting Started

read script file from HTML

<script src="https://7110.github.io/kabu/dist/kabu.js"></script>

using npm or yarn

# using npm 
npm install kabu --save
 
# using yarn 
yarn add kabu

Using kabu.js

instantiation

var kabu = new Kabu();

some of methods

search

search method is able to search by company name

kabu.search("ソフトバンク");
[
  {
    code: 9434,
    name: "ソフトバンク",
    market: "市場第一部(内国株)",
    industry17: "情報通信・サービスその他 ",
    industry33: "情報・通信業"
  },
  {
    code: 9984,
    name: "ソフトバンクグループ",
    market: "市場第一部(内国株)",
    industry17: "情報通信・サービスその他 ",
    industry33: "情報・通信業"
  }
]

get

get method is able to get data by stock code

kabu.get(4689);
{
  code: 4689,
  name: "Zホールディングス",
  market: "市場第一部(内国株)",
  industry17: "情報通信・サービスその他 ",
  industry33: "情報・通信業"
}

help

help method is going to print version, updated and so on on console

Data

kabu.js's data is made on https://github.com/7110/kabu-data

Package Sidebar

Install

npm i kabu

Weekly Downloads

0

Version

1.1.4

License

MIT

Unpacked Size

885 kB

Total Files

10

Last publish

Collaborators

  • hidehiko