Question

I am working on a site that needs a page for each stock on the stock exchange. I've been looking for API's like Yahoo Finance API, but they all require that you place in a stock name. I can use that later in the application, but I need to try and pull a master list of stocks and create dynamic pages from it. I also need some type of stock chart api which I also cannot find. I unfortunately don't have money to finance a monthly payment or a $1000 lifetime payment like Highstock has. Thanks for your help.

Was it helpful?

Solution 2

I use a ready list of Yahoo tickers, provided by Samir Khan here: http://investexcel.net/all-yahoo-finance-stock-tickers/ Samir collects it, using brute force algorithm, which builds random combinations of characters and check each for Yahoo's response

OTHER TIPS

This really belongs on softwarerecs.stackexchange.com, but to answer your question,

as a general rule of thumb for myself, when I don't have an API available, I look to see if the data exists out there in machine-parseable format (CSV, JSON, XML if I'm really unfortunate, etc..).

For example, recently I needed a geocoding database, but I could not find a service that would meet my needs for both speed and price, so I downloaded 200,000+ cities and wrote my own service that does exactly what I need.

And if your really cool, you will make it open source/open API like I did - GeocodeForFree.com

Here is a link to download all stocks in the NASDAQ index in CSV format, I think you know what to do from here

http://www.nasdaq.com/screening/companies-by-industry.aspx?exchange=NASDAQ

Good luck!

You could also use Stocks.js. It provides an easy API to get the stock quotes from nearly any company. It also provides some technical indicators and sector performances. An example of usage:

// Let's get the stock data of Tesla Inc. for the last 10 minutes
var result = await stocks.timeSeries({
  symbol: 'TSLA',
  interval: '1min',
  amount: 10
 });

It is completely free, you only need to request an API key which takes 1 minute.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top