View License

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

» Watch video

Highlights from
get Intraday Stock Price

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.7 | 3 ratings Rate this file 16 Downloads (last 30 days) File Size: 4.17 KB File ID: #32745 Version: 1.1
image thumbnail

get Intraday Stock Price


ted p teng (view profile)


30 Aug 2011 (Updated )

function getHistoricalIntraDayStockPrice obtains intraday stock price from Google.

| Watch this File

File Information

function getHistoricalIntraDayStockPrice obtains intraday stock price from Google given the symbol of stock and the name of market which the stock is listed under. The accompanying file demonstrates one method for "cleaning" the data prior analysis.


This file inspired Volume Weighted Average Price From Intra Daily Data.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
10 Sep 2016 Peter Andersson

Interesting discussion! I also wonder if it is possible to get historical option data from Google or Yahoo. I am looking for years of data back?
I found but they only offer stocks and forex.

Comment only
10 Mar 2015 ted p teng

ted p teng (view profile)

@ Jonathan, you can get the output and then filter by day.
@Jay, the number of outstanding shares can be found here:

Comment only
09 Mar 2015 Jonathan

Is there a way to use this to get a specific day's data? For example, I want to 1-min bars for GOOG on Feb 18th, 2015.

16 Feb 2015 Jay Cheng

Besides the H L C O of a stock, can you also download the number of outstanding shares?

Comment only
03 Aug 2014 ted p teng

ted p teng (view profile)

That is a great idea/question Taylor. I have been searching for free intraday forex data too, but I have not found one yet. Please share your implementation with the community if you do figure out how to get those data!

Comment only
02 Aug 2014 Taylor Xie

Hi,Teng,I want to know how to download the intraday data of Forex exchange data, for example EURUSD. I want to edit your function, but I don't know the url link to get the Forex exchange rate.

06 Mar 2014 ted p teng

ted p teng (view profile)

I have wondered that myself and could not find any documentation for Finviz. Stackoverflow might be a good place to ask this, I did a quick search there, there is not much on Finviz ( )

I'm not sure what kind of data you need, but if it is available on yahoo, you can refer to my other function "get-stock-information-from-yahoo" as a template for downloading data with YQL. Best of luck.

Comment only
04 Mar 2014 Ryan

Ryan (view profile)

Another question Ted...Have you been able to find any actual documentation for I have been looking all over for it but can't find anything anywhere. All I have found is a few random posts where people have used queries similar to the one you have used.

Comment only
28 Feb 2014 ted p teng

ted p teng (view profile)

Thanks Ryan. To my knowledge, there are no publicly accessible historical option data, intraday or daily. But if you do find it, it would be great if you can share it on this file exchange. :)

Comment only
28 Feb 2014 Ryan

Ryan (view profile)

Great Work! By chance, do you know if it's possible to download historical intraday option data from google or yahoo?

31 Aug 2011 1.1

updated function cleanUSIntradayStockPrice.m
image source:

Contact us