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

Skip to content

Commit 72af8a4

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

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
@@ -171,7 +171,7 @@ def fetch_historical_yahoo(ticker, date1, date2, cachename=None,dividends=False)
171171
else:
172172
g='d'
173173

174-
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'
174+
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'
175175

176176

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

0 commit comments

Comments
 (0)