-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Get error in getSymbols("7203.T", src="yahooj") #310
Comments
Thanks for the report! I can replicate. It looks like the issue is that |
That didn't work. Investigating other approaches now. |
Just pushed a commit that fixes your example for me. I'd really appreciate it if you could test other stocks too. Especially some stocks that have splits and/or dividends in the time window you pull. I noticed that Toyota didn't have any splits between 2007-2020. Let me know if you run into any issues while testing. |
ive run into this before and used an explicit call to |
I tryied branch > library(devtools)
> devtools::install_github("joshuaulrich/quantmod", ref="310-yahooj-error")
> library(quantmod)
> > x<-getSymbols("4445.T", src="yahooj", from="2020-05-10", to="2020-05-15", auto.assign=FALSE)
> x
YJ4445.T.Open YJ4445.T.High YJ4445.T.Low
2020-05-11 1380 1406 1315
2020-05-12 1423 1465 1375
2020-05-13 1465 1530 1465
2020-05-14 1514 1580 1439
2020-05-15 1471 1565 1471
> y<-getSymbols("8306.T", src="yahooj", from="2020-05-10", to="2020-05-15", auto.assign=FALSE)
> y
YJ8306.T.Open YJ8306.T.High YJ8306.T.Low
2020-05-11 421.0 426.4 420.2
2020-05-12 420.0 420.8 414.3
2020-05-13 412.0 420.6 411.5
2020-05-14 414.4 415.4 406.1
2020-05-15 410.0 410.3 403.0
> z<-getSymbols("7203.T", src="yahooj", from="2020-05-10", to="2020-05-15", auto.assign=FALSE)
> z
YJ7203.T.Open YJ7203.T.High YJ7203.T.Low
2020-05-11 6620 6675 6582
2020-05-12 6610 6655 6485
2020-05-13 6412 6460 6372
2020-05-14 6300 6326 6243
2020-05-15 6300 6320 6208 Thanks @joshuaulrich ! 😄
I was able to get it with no problem. 🙆♂️ |
Description
Call
getSymbols("7203.T", src="yahooj")
is raised XML error.I tried use
debug
function.step through the execution of a function is
quantmod/R/getSymbols.R
Line 501 in c9777da
Next, open URL https://info.finance.yahoo.co.jp/history/?code=7203.T&sm=1&sd=01&sy=2007&em=7&ed=11&ey=2020&tm=d&p=1 is displayed stock price of TOYOTA.
Expected behavior
Get stock price of TOYOTA.
Minimal, reproducible example
Session Info
The text was updated successfully, but these errors were encountered: