Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b13fc46

Browse files
committed
Merge pull request #2077 from rblomberg/yahoo-csv-url-fix
changed URL to the current CSV API for yahoo finance
1 parent e2bf78e commit b13fc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/finance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def fetch_historical_yahoo(ticker, date1, date2, cachename=None,dividends=False)
177177
else:
178178
g='d'
179179

180-
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'
180+
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'
181181

182182

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

0 commit comments

Comments
 (0)