Command line tool to download pricing data from yahoo finance with a time period and symbol.
./yahoo <from_date> <to_date> <symbol>
./yahoo 2020-01-01 2020-06-01 "^DJI"
This command will download daily data for the Dow Jones Index from Jan 1st 2020 to Jun 1st 2020
There are a number of reasons this tool can fail
from_date
is afterto_date
- either
from_date
orto_date
is after today's date - the dates are incorrectly formatted: i.e., not
%Y-%m-%d
- yahoo responded with an error code