Skip to content

A simple Node.js module that checks whether a ticker (stock) symbol's format is valid or not. This module does not perform any lookup, it only checks the symbol's format.

License

Notifications You must be signed in to change notification settings

kmyn/node-check-ticker-symbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-ticker-symbol

Introduction

check-ticker-symbol is a simple Node.js module that checks whether a ticker (stock) symbol's format is valid or not. This module does not perform any lookup, it only checks the symbol's format.

Quick Start

$ npm install check-ticker-symbol --save

Usage

var cts = require('check-ticker-symbol');
...
if(cts.valid('GOOG')) { // returns TRUE
...
}

var symbolObject = cts.disassemble('GOOG.BY');
console.log(symbolObject.search);               // GOOG.BY
console.log(symbolObject.prefixedExchangeCode); // undefined
console.log(symbolObject.stock);                // GOOG
console.log(symbolObject.suffixedExchangeCode); // BY

Author

Marius <marius@twostairs.com> Twitter: @devilx

License

May be freely distributed under the MIT license.

Copyright (c) 2015 twostairs

About

A simple Node.js module that checks whether a ticker (stock) symbol's format is valid or not. This module does not perform any lookup, it only checks the symbol's format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published