View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Get Stock Information from Yahoo

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0 | 3 ratings Rate this file 17 Downloads (last 30 days) File Size: 3.26 KB File ID: #34075 Version: 1.2

Get Stock Information from Yahoo


ted p teng (view profile)


04 Dec 2011 (Updated )

This function allows you to pull stock information from Yahoo with Yahoo! Query Language in Matlab.

| Watch this File

File Information

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.


Get U.S. Stock Symbols inspired this file.

MATLAB release MATLAB 7.7 (R2008b)
Other requirements An internet connection is required.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
16 Mar 2016 Leonardo Falconi

Hi, I continuously get the following message:

"failed! http code: 400"

Do you know why I get it?


Comment only
10 Aug 2015 Zhao Hang  
11 Dec 2014 Fernando Esteves  
23 Sep 2014 kim

kim (view profile)

Thank you!

16 Aug 2012 ted p teng

ted p teng (view profile)

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);

Comment only
16 Aug 2012 ted p teng

ted p teng (view profile)

Hi Jacob, thank you for catching a bug. I have uploaded a corrected version, please re-download the file and try it again.

Comment only
31 Jul 2012 Jacob Bortnik

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?

Thanks again!

Comment only
25 May 2012 Charles

I'm new to MATLAB and can't figure out how to use this. Were exactly do I put the ticker?

Comment only
17 Aug 2012 1.2

plucked a bug.

Contact us