Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @seedalpha/ticker with all npm packages installed. Try it out:

var ticker = require("@seedalpha/ticker")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@seedalpha/ticker v1.4.10

ticker parser of seedalpha

seed-ticker

module providing ticker parsing, stock lookup and stock information (eg. keywords) for content searching / matching

Changelog

1.4.0@2016-07-12

  • support CapIQ style pattern eg: KOSDAQ:A093190

1.3.2@2016-07-05

  • add try catch for handling huge documents

1.3.0@2016-06-20

  • pre-implementation of findTickers function

1.2.0@2016-06-17

  • release for new datasets:
    • china (shenzhen)
    • korea
  • update roadmap for datasets to add in the future

1.1.0@2016-06-16

  • release for new datasets, now includes:
    • hong kong (main, gem)
    • us (nasdaq, nyse, amex)
    • london
    • japan
    • australia
    • china (shanghai)

1.0.0@2016-06-10

  • first release

Roadmap

  • [ ] new function to expose supported exchanges & ticker formatting
  • [ ] new function to find tickers inside a content piece (such as research)
  • [ ] dataset for Taiwan, Singapore, Indonesia, Philippines
  • [ ] new function to get historical data from external source for a ticker
  • [ ] add sector to dataset
  • [ ] add keywords to dataset
  • [ ] support keywords in getTerms function, to provide better information (hints) for searching/matching
  • [ ] add relationships between stocks (same company listed in multi-countries, subsidiary companies, supply chain etc)

Installation

$ npm install seed-ticker -SE

Usage

var ticker = require('seed-ticker');
var detail = ticker.parse('0005 hk');
ticker.lookup(detail, function(err, result) {
  ticker.getTerms(result, function(err, terms) {
    // use the terms returned to search/match
  });
});

Developing / Testing

$ git clone git@github.com:seedalpha/ticker.git
$ cd ticker
$ npm test

Authors

Marvin Lam lam@seedalpha.net

License

Copyright © 2016 SeedAlpha, All rights reserved.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free