Home > Forum Home > Building Market Trading Systems > Downloading Market Data For Free | Share |
Forum Topic | Post Reply Login |
Downloading Market Data For Free | Rate this: (3.8/5 from 6 votes) |
![]() | Financial market data can be downloaded into Excel for free by using Excel web queries. The market data can be automatically extracted from financial web sites that provide such data for free. This example uses Yahoo Finance; however similar approaches could be made with MSN Finance, Google Finance or other such web sites. Download a free Excel program that uses a variation of the code below here. Update - 07 January 2012: Given the high popularity of this solution, we have developed an updated version that resolves the issues raised in the posts here and adds the following features:
This example will download both real-time quotes and historical price data for a specified stock or index ticker symbol. Suppose we have the following Excel spreadsheet. Excel Spreadsheet:
Cells B2 and B3 specify the start and end dates for the historical data. Cell E2 specifies the stock or index ticker symbol. Cell E3 specifies the historical data frequency. This can be either Daily, Weekly, or Monthly or even D, W or M as only the first letter is used in the web query. The following VBA macro code can then be loaded through the VBA editor and executed from the spreadsheet to return the data. VBA Code:
By simply changing the input cells, the same macro can be run to extract new data. This is a basic example and there are several enhancements which could be made to suit requirements such as:
| ||||||||||||||||||||||||||||||||
Excel Business Forums Administrator | |||||||||||||||||||||||||||||||||
Posted by Excel Helper on |
Replies - Displaying 41 to 48 of 48 | Order Replies By: Most Recent | Chronological | Highest Rated |
![]() | Rate this: (3/5 from 1 vote) |
Posted by stmi on |
![]() | Rate this: (3/5 from 1 vote) The best solution is the download file as it does not rely on the layout but rather finds the price data wherever it resides on the page. There are also many other enhancements and advantages with this solution. |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
![]() | Rate this: (3/5 from 1 vote) On the Query tab the test historical data seem to be outputting stuff that I am not understanding |
Posted by algohead on |
![]() | Rate this: (3/5 from 1 vote) Focus should be made on the Data sheet which is provides the downloaded data in a structured and continuous format. |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
![]() | Rate this: (3/5 from 1 vote) The Market Data Downloader does not work. When I push the Download buttom only the setted range of dates are appeared in the corresponding cells. There is no any data about prices, the corresponding cells are empty. If anybody has the working version of the programm please send me, because I don't know how to make a VBA project. |
hrach | |
Posted by hrach on |
![]() | Rate this: (3/5 from 1 vote) |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
![]() | Rate this: (3/5 from 1 vote) We created a new thread for the new version here. |
Excel Business Forums Administrator | |
Posted by Excel Helper on |
![]() | Rate this: (4/5 from 2 votes) |
Posted by Harrymon12 on |
Back | Displaying page 5 of 5 |
Excel templates and solutions matched for Downloading Market Data For Free:Solutions: Download Market Data Download Stock Quotes Complete Trading System Real Time Stock Quotes Options TradingCategories: Market Data Access |