Hacker News new | ask | show | jobs
by ape4 2978 days ago
Looks like it gets an html page from https://iextrading.com/apps/stocks/#/<stock> then scrapes it. Not really an API. Edit: ok, I'm wrong.
3 comments

It uses the iex api. I have used the api before its really good.

Here is the code author uses to get data:

      const BASE_URL = 'https://api.iextrading.com/1.0/stock/market/batch';

        let url = `${BASE_URL}?types=quote&symbols=${symbols.join(',')}&filter=${filters.join(',')}`;
You might want to look at the code, serve that html page from your local machine and console.log(url) inside the updateDataForBatch(symbols, addTitle) function to see how it works.
That url is just used to build a link. It uses api.iextrading.com for the quote data