View on GitHub

tickerpicker

ticker symbol/company name suggestion library for javascript

Download this project as a .zip file Download this project as a tar.gz file

Stock ticker symbol lookup

Enter a partial company name to find stock ticker symbols:

Company name lookup

Enter a partial ticker symbol to find company names:

Code example

Here is an example using twitter typeahead. The library provides 2 functions, symbol and suggest, which return either ticker symbols or company names. The functions return an array of objects with name and symbol properties. In the example, lodash is used to prune the results down to either just the symbol or just the name.

            $('.typeahead-symbols').typeahead({
              hint: true,
              highlight: true,
              minLength: 1
            }, {
              name: 'symbols',
              source: function(query, callback) {
                callback(_.map(ticker.symbol(query), 'symbol'));
              }
            });