title: API for stock market data lookup?
body: <p>I'm creating a program in <code>Google Apps Script</code> which will allow for the automated creation and maintenance of one or more stock market portfolios using <code>Google Sheets</code> (see <a href="https://github.com/napostrophe/portfolioManager" rel="nofollow noreferrer">here</a> for more on that). </p>
  
  <p>The issue I'm having is that I want one of the checks when submitting a new stock to the portfolio to check whether or not the ticker they submit actually exists (e.g. if they bought 100 shares of GOOG but accidentally typed in FOOH, a ticker that doesn't exist). </p>
  
  <p>The problem here is that the only way to check that the ticker they entered in is actually valid requires either (1) a full list of every single stock, ETF, mutual fund, etc. on the market (which I'd definitely prefer to avoid) or (2) to use some sort of API that allows for the lookup of specific stocks by their ticker. The <code>Google Finance API</code> or <code>Yahoo Finance API</code> would have probably worked for this purpose if it weren't for the fact that they have been deprecated for years now. Ideally the API should also be able to look up a company's sector, as that is another issue I have been having trouble resolving. </p>
  
  <p>I have yet to find an API that I believe would do this effectively (or work at all in <code>Google Apps Script</code>).</p>
  
  <p>Help would be greatly appreciated!</p>