Get Stock Information from Yahoo

This function allows you to pull stock information from Yahoo with Yahoo! Query Language in Matlab.
1.7K Downloads
Updated 17 Aug 2012

View License

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'
--

Cite As

pangyuteng (2024). Get Stock Information from Yahoo (https://www.mathworks.com/matlabcentral/fileexchange/34075-get-stock-information-from-yahoo), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Get U.S. Stock Symbols

Inspired: Yahoo! Finance Data Loader

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

plucked a bug.

1.0.0.0