I am looking to download historical stock data for all stocks on NASDAQ and NYSE to my computer. I plan to dump all this data into a database like SQL Lite. I also want to have an automated way to keep this database up to date so I need a service similar to OpenTick which I can use to download the data (preferably for free). I want the last five years of data, but I only need basic information such as high, low, close price, open price, volume, etc...information needed to run the top 20 or so technical indicators. Does anyone know of a preferably free service to download this historical stock data? I am starting out so I don't want to pay for anything until I at least have a system up and running which has demonstrated some success. The ugly way is to hack the Yahoo Finance connector that Eclipse trader uses and use that to download all my data. This would certainly be better than downloading CSV files manually and importing, but the interface that Eclipsetrader uses for Yahoo is not official by Yahoo and could fail to work any day. So does anyone know where I can download free historical data through a programming API. I plan to program in Java.