Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

changed URL to the current CSV API for yahoo finance #2077

Merged
merged 1 commit into from

3 participants

@rblomberg

I noticed a example on clustering was not working in scikit-learn and tracked it back to a yahoo CSV api url in finance.py of matplotlib being out of date. I looked around yahoo's documentation and it appears that their base url has changed to

http://table.finance.yahoo.com/table.csv

to

http://ichart.yahoo.com/table.csv

@mdboom mdboom merged commit 8ee6188 into matplotlib:master

1 check failed

Details default The Travis CI build is in progress
@pelson
Collaborator

@mdboom - backported to v1.2.x?

@mdboom
Owner

Yep. Might as well have the URL work there, too.

@rblomberg rblomberg deleted the rblomberg:yahoo-csv-url-fix branch
@rblomberg

thanks guys

@tacaswell tacaswell referenced this pull request
Merged

finance ochl->ohlc #1920

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/matplotlib/finance.py
View
2  lib/matplotlib/finance.py
@@ -177,7 +177,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],
Something went wrong with that request. Please try again.