This function allows you to pull stock information from Yahoo with "Yahoo Query Language" in Matlab. Below list contains the information being pulled from Yahoo.
pangyuteng (2020). Get Stock Information from Yahoo (https://www.mathworks.com/matlabcentral/fileexchange/34075-get-stock-information-from-yahoo), MATLAB Central File Exchange. Retrieved .
Hello. *** per many of you noted below, the old API to grab data from yahoo is no longer live ***
I have stopped maintaining the code at file exchange for a few years now, and have transitioned to Python. For those interested in moving to python (python is free, and the community is huge, its great for many things including quantitative finance and data analysis), checkout these free libraries: numpy, pandas, matplotlib, quandl, yfinance; for back-testing,live-testing platforms, checkout Quantconnect (commercial) and Zipline (used to be maintained by Quantopian, which their platform will soon be closed from public use).
I have provided below an example python jupyter notebook to get price and other info from yahoo:
You will just need to install Git and Docker which are all free. Steps to build the container and launch the notebook is provided here:
more data here (historical daily/monthly equity price, index, rates) with python api.
and here daily/minute price, i believe they have bid ask price also, and historical option data! you'll need to use their jupyter notebook online.
if you have basic docker,python issue, you will just have to google or search in stackoverflow!
Yes, no longer works. I think I heard Yahoo shut down that service/capability. Now we get:
Java exception occurred:
This software no longer works, Feb 14, 2017.
Is it possible to use the function to extract the information historically? A reply is much appreciated!
Hi, I continuously get the following message:
"failed! http code: 400"
Do you know why I get it?
You can use this in conjunction with my other function "Get U.S. Stock Symbol" as below.
%get tickers listed on nyse
[tickers,tickersInfo] = getStockSymbols('exch_nyse');
%get ticker information
data = getStockInformation(tickers);
%find stock with price/book < 2.
stockPick=data(priceBook < 2);
Hi Jacob, thank you for catching a bug. I have uploaded a corrected version, please re-download the file and try it again.
Dear Ted, thank you for sharing your work! When I ran this function, there seemed to be a function missing (getStockFundamentalsCore). Do you know where I can find it?
Also- have you ever tried to implement a matlab-based stock screener, i.e., return a list of ticker symbols based on certain filter criteria?
I'm new to MATLAB and can't figure out how to use this. Were exactly do I put the ticker?
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!