-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replaced yahoo backend with google for market data #386
replaced yahoo backend with google for market data #386
Conversation
Thanks @closedLoop. Do they offer the same time-range? |
@twiecki I quick look at it has SPY since 1993. However, it looks like the API only returns the last 4000 days for any given range. |
@closedLoop Yeah, that's how I remember google finance to work. I'd rather wait a few more days for pandas-datareader to fix the issue and update rather than switch the source. Appreciate the initiative though. |
Actually it seems that yahoo is discontinuing its service in which case we would need to switch to google. |
Thanks for the PR. Looks like Travis is spitting out this error:
Looks like this is a pandas issue between I'm guessing you are on |
Yeah we need to fix that urgently. |
Hi @closedLoop, are you going to continue working on this PR 🙂 ? |
Sure I can adjust this. Which version of pandas should this support? |
If datareader doesn't work, trying older version https://pandas.pydata.org/pandas-docs/stable/remote_data.html
Thanks. Ideally, it should support 0.18, .19, and .20. Also note that we only want to fall back to Google if the Yahoo fetching fails, because Google's prices aren't adjusted for splits and dividends. |
Do you want it to raise a warning of any kind?
Please excuse any typos as this was sent from a mobile device.
…On Jun 15, 2017 10:00 AM, "Gus Gordon" ***@***.***> wrote:
Thanks. Ideally, it should support 0.18, .19, and .20. Also note that we
only want to fall back to Google if the Yahoo fetching fails, because
Google's prices aren't adjusted for splits and dividends.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#386 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACw42bdeA00GYu4vutJ4NLQZD0VH8bHTks5sETkFgaJpZM4NgAnD>
.
|
Good idea. Maybe @twiecki or others have other thoughts, but I think we can just wrap Yahoo in a try/except all, then emit a warning and fall back to Google. |
@closedLoop Yes, a warning would be perfect. I like the try/except approach as well. |
How can I download these changes? NOOB alert |
@closedLoop any progress? |
Forked and extended on #395. Thanks @closedLoop. |
Referencing issue: #385
I have substituted out the yahoo backend for the google data using the pandas
web.get_data_google(symbol, start=start, end=end)
function