This website explains some of the parameters that are being used as:
“s=YHOO” means to download the stock prices of Yahoo. YHOO is the stock symbol of Yahoo.
“a=01&b=01&c=2007” specifies the start date in Month, Day, Year. You might have noticed that the month is subtracted with 1, which is the format required by Yahoo.
“d=08&e=05&f=2008” specifies the end date in Month, Day, Year. You might have noticed that the month is subtracted with 1, which is the format required by Yahoo.
However, these parameters are not consistant and not interchangeable with the parameters defined on the Dirk Eddelbuettel Finance or the Yahoo Data Download websites.
My goal is to be able to download all available stock quote information for a stock symbol for a selected date range. The script shown above allows me to select a date range of data, but not all the stock information. The script from the other websites allows me to download all stock information, but with no control over the date range. The stock information that I need to download includes: Stock Name, Exchange, % Change, etc. There's about a dozen of these additional information items that are available using the formatting parameter f=sl1d1t1c1ohgv, if I can find out how to get this code to work. When I try to intermingle the date range code and the data downloading format code, I get errors.
Most of my programming experience is in visual basic (VBA) for MS Access and I've searched the internet for documentation to handle this issue. If I need to post the VBA code, I can do that too. These reference websites give more information, but not enough to solve this issue. Your assistance is appreciated.
Dirk Eddelbuettel Finance
Downloading Yahoo Stock Quotes
Yahoo Data Download