Code covered by the BSD License  

Highlights from
Get Stock Information from Yahoo

Be the first to rate this file! 25 Downloads (last 30 days) File Size: 3.26 KB File ID: #34075

Get Stock Information from Yahoo

by

 

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
Description

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.
--
    'Ask'
    'AverageDailyVolume'
    'Bid'
    'AskRealtime'
    'BidRealtime'
    'BookValue'
    'Change_PercentChange'
    'Change'
    'Commission'
    'ChangeRealtime'
    'AfterHoursChangeRealtime'
    'DividendShare'
    'LastTradeDate'
    'TradeDate'
    'EarningsShare'
    'ErrorIndicationreturnedforsymbolchangedinvalid'
    'EPSEstimateCurrentYear'
    'EPSEstimateNextYear'
    'EPSEstimateNextQuarter'
    'DaysLow'
    'DaysHigh'
    'YearLow'
    'YearHigh'
    'HoldingsGainPercent'
    'AnnualizedGain'
    'HoldingsGain'
    'HoldingsGainPercentRealtime'
    'HoldingsGainRealtime'
    'MoreInfo'
    'OrderBookRealtime'
    'MarketCapitalization'
    'MarketCapRealtime'
    'EBITDA'
    'ChangeFromYearLow'
    'PercentChangeFromYearLow'
    'LastTradeRealtimeWithTime'
    'ChangePercentRealtime'
    'ChangeFromYearHigh'
    'PercebtChangeFromYearHigh'
    'LastTradeWithTime'
    'LastTradePriceOnly'
    'HighLimit'
    'LowLimit'
    'DaysRange'
    'DaysRangeRealtime'
    'FiftydayMovingAverage'
    'TwoHundreddayMovingAverage'
    'ChangeFromTwoHundreddayMovingAverage'
    'PercentChangeFromTwoHundreddayMovingAverage'
    'ChangeFromFiftydayMovingAverage'
    'PercentChangeFromFiftydayMovingAverage'
    'Name'
    'Notes'
    'Open'
    'PreviousClose'
    'PricePaid'
    'ChangeinPercent'
    'PriceSales'
    'PriceBook'
    'ExDividendDate'
    'PERatio'
    'DividendPayDate'
    'PERatioRealtime'
    'PEGRatio'
    'PriceEPSEstimateCurrentYear'
    'PriceEPSEstimateNextYear'
    'Symbol'
    'SharesOwned'
    'ShortRatio'
    'LastTradeTime'
    'TickerTrend'
    'OneyrTargetPrice'
    'Volume'
    'HoldingsValue'
    'HoldingsValueRealtime'
    'YearRange'
    'DaysValueChange'
    'DaysValueChangeRealtime'
    'StockExchange'
    'DividendYield'
    'PercentChange'
--

Acknowledgements

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 (4)
16 Aug 2012 ted p teng

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.
priceBook=[data.PriceBook];
stockPick=data(priceBook < 2);

16 Aug 2012 ted p teng

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

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!

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?

Updates
17 Aug 2012

plucked a bug.

Contact us