I am trying to follow the introduction in PyAlgoTrade website to download the data from yahoo finance using the given code. But I always got an error.
Here is the website: http://gbeced.github.io/pyalgotrade/docs/v0.15/html/tutorial.html
... Having said all that, the first thing that we’ll need to test our strategies is some data. Let’s use Oracle’s stock prices for year 2000, which we’ll download with the following command:
python -c "from pyalgotrade.tools import yahoofinance; yahoofinance.download_daily_bars('orcl', 2000, 'orcl-2000.csv')"
After running this command, I got the error like below
>>> python -c "from pyalgotrade.tools import yahoofinance; yahoofinance.download_daily_bars('orcl', 2000, 'orcl-2000.csv')"
SyntaxError: invalid syntax