Skip to content

Commit

Permalink
Merge pull request #2077 from rblomberg/yahoo-csv-url-fix
Browse files Browse the repository at this point in the history
changed URL to the current CSV API for yahoo finance
  • Loading branch information
mdboom committed May 29, 2013
1 parent 7ec5ade commit 72af8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/finance.py
Expand Up @@ -171,7 +171,7 @@ def fetch_historical_yahoo(ticker, date1, date2, cachename=None,dividends=False)
else:
g='d'

urlFmt = 'http://table.finance.yahoo.com/table.csv?a=%d&b=%d&c=%d&d=%d&e=%d&f=%d&s=%s&y=0&g=%s&ignore=.csv'
urlFmt = 'http://ichart.yahoo.com/table.csv?a=%d&b=%d&c=%d&d=%d&e=%d&f=%d&s=%s&y=0&g=%s&ignore=.csv'


url = urlFmt % (d1[0], d1[1], d1[2],
Expand Down

0 comments on commit 72af8a4

Please sign in to comment.