pydata / pandas-datareader

Extract data from a wide range of Internet sources into a pandas DataFrame.
https://pydata.github.io/pandas-datareader/stable/index.html
Other
2.95k stars 681 forks source link

A command line interface for pandas-datareader #213

Closed femtotrader closed 6 years ago

femtotrader commented 8 years ago

Hello,

It will be nice to have a script (CLI) able to download data using pandas-datareader. This script will have cache enabled by default.

Possible usage:

$ pdr --data_source yahoo --names GOOG,IBM --start 2014-01-01 --end 2015-01-01 --filename out.xlsx
Installing cache 'requests_cache.sqlite' with expire_after=1 days 00:00:00 (d days hh:mm:ss)
<class 'pandas.core.panel.Panel'>
Dimensions: 6 (items) x 252 (major_axis) x 2 (minor_axis)
Items axis: Open to Adj Close
Major_axis axis: 2014-01-02 00:00:00 to 2014-12-31 00:00:00
Minor_axis axis: GOOG to IBM

Kind regards

femtotrader commented 8 years ago

Pinging @ryankennedyio because it may be useful for https://github.com/mhallsmoore/qstrader (and probably other backtesters)