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

getSymbols.oanda HTTP error 404 #225

Closed
MihalisPapatsimpas opened this Issue Apr 4, 2018 · 10 comments

Comments

Projects
None yet
2 participants
@MihalisPapatsimpas

MihalisPapatsimpas commented Apr 4, 2018

I try to get some symbols from Oanda and I can't. I have tried also Google and Yahoo and the result is the same. I try to execute the following and what I get is an error.

eurusd  <-  getSymbols("EUR/USD", src = "oanda", auto.assign = FALSE)
Error in open.connection(con, "rb") : HTTP error 404.
@joshuaulrich

This comment has been minimized.

Owner

joshuaulrich commented Apr 5, 2018

Thanks for the report. I can replicate.

Google no longer provides price data. I checked Yahoo Finance and they specify the EUR/USD pair as EURUSD=X, so getSymbols("USDEUR=X", src = "yahoo") works.

@MihalisPapatsimpas

This comment has been minimized.

MihalisPapatsimpas commented Apr 5, 2018

Thanks for the reply.

Yes,now I can get from Yahoo. But,what about oanda? I still can't use getSymbols with oanda. Is it maybe because oanda v1 REST API will cease to function?

@joshuaulrich joshuaulrich changed the title from HTTP error 404. to getSymbols.oanda HTTP error 404 Apr 5, 2018

joshuaulrich added a commit that referenced this issue Apr 5, 2018

Update Oanda URL
The previous URL was returning HTTP 404 errors.

Fixes #225.
@joshuaulrich

This comment has been minimized.

Owner

joshuaulrich commented Apr 5, 2018

@MihalisPapatsimpas I just pushed a branch that works for me. Please test to see if it works for you too!

@MihalisPapatsimpas

This comment has been minimized.

MihalisPapatsimpas commented Apr 5, 2018

Thank you @joshuaulrich for your help! To test it,I installed the quantmod package from your repository using the following: devtools::install_github("joshuaulrich/quantmod"). The error still appears. Is this the right way to test it?

Thanks again!

@joshuaulrich

This comment has been minimized.

Owner

joshuaulrich commented Apr 5, 2018

No, that will just pull the current HEAD of master. My patch is on the branch 225_getsymbols_oanda. I think you can pull and install that via: devtools::install_github("joshuaulrich/quantmod", ref="225_getsymbols_oanda"). If that doesn't work, please read the devtools docs or search on Google and/or StackOverflow. I don't use devtools, so I won't be much help.

@MihalisPapatsimpas

This comment has been minimized.

MihalisPapatsimpas commented Apr 5, 2018

I installed the patch in 2 ways. The one you suggested and:
githubinstall :: gh_install_packages("quantmod",ref="225_getsymbols_oanda"). Both work but the error remains.

@joshuaulrich

This comment has been minimized.

Owner

joshuaulrich commented Apr 5, 2018

Is it exactly the same error? I just tried on a different machine and got "HTTP error 400". 400 is "bad request", and 404 is "not found".

@MihalisPapatsimpas

This comment has been minimized.

MihalisPapatsimpas commented Apr 5, 2018

No,sorry i didn't mention it. It is "Error in open.connection(con, "rb") : HTTP error 400" .

joshuaulrich added a commit that referenced this issue Apr 5, 2018

Update Oanda URL
The previous URL was returning HTTP 404 errors.

Fixes #225.
@joshuaulrich

This comment has been minimized.

Owner

joshuaulrich commented Apr 5, 2018

I just pushed an update that corrects a mistake I made. It works for me now, I promise. :)

@MihalisPapatsimpas

This comment has been minimized.

MihalisPapatsimpas commented Apr 5, 2018

Yes, now it works perfect!!

Thanks for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment