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.24 KB File ID: #34075

Get Stock Information from Yahoo

by Ted P Teng

 

04 Dec 2011

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

The author wishes to acknowledge the following in the creation of this submission:
Get U.S. Stock Symbols

MATLAB release MATLAB 7.7 (R2008b)
Other requirements An internet connection is required.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
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?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
finance Ted P Teng 05 Dec 2011 12:01:28
yahoo Ted P Teng 05 Dec 2011 12:01:28
yql Ted P Teng 05 Dec 2011 12:01:28
stock Ted P Teng 05 Dec 2011 12:01:28
web scraping Ted P Teng 05 Dec 2011 12:01:28
financial services Ted P Teng 20 Dec 2011 17:49:02

Contact us at files@mathworks.com