Error in new.session() : Could not establish session after 5 attempts
Update QuantMod and try again:
install.packages('quantmod')
This was a bug that was fixed very swiftly. Thank you Joshua Ulrich!
History (2022-04-29):
This was an issue on 2022-04-29 that Joshua Ulrich promptly published a fix for. You could install the patched version with:
remotes::install_github("joshuaulrich/quantmod@358-getsymbols-new.session")
But the changes are now into CRAN, so you should just be able to update QuantMod and continue with your day.
Link to fix: GitHub: joshuaulrich/quantmod@358-getsymbols-new.session
GitHub issue here.
Problems with getSymbols.yahoo
Yahoo finance doesn't recognize USDT as a valid ticker. If you want to download this data you need to use "USDT-USD".
USDT <- getSymbols("USDT-USD",start = "2018-01-01",end = "2021-12-31", auto.assign = F)
head(USDT)
USDT-USD.Open USDT-USD.High USDT-USD.Low USDT-USD.Close USDT-USD.Volume USDT-USD.Adjusted
2017-11-09 1.01087 1.01327 0.996515 1.00818 358188000 1.00818
2017-11-10 1.00650 1.02423 0.995486 1.00601 756446016 1.00601
2017-11-11 1.00598 1.02621 0.995799 1.00899 746227968 1.00899
2017-11-12 1.00602 1.10591 0.967601 1.01247 1466060032 1.01247
2017-11-13 1.00448 1.02929 0.975103 1.00935 767884032 1.00935
2017-11-14 1.00524 1.01343 0.996898 1.00683 429857984 1.00683
Related Topics
Extreme Numerical Values in Floating-Point Precision in R
Too Few Periods for Decompose()
Ordering of Points in R Lines Plot
Returning Above and Below Rows of Specific Rows in R Dataframe
R's Read.CSV Prepending 1St Column Name with Junk Text
Error in Loading Rgl Package with MAC Os X
How to Spread or Cast Multiple Values in R
How to Filter Rows Based on Difference in Dates Between Rows in R
Lm Function in R Does Not Give Coefficients for All Factor Levels in Categorical Data
How to Complete Missing Factor Levels in Data Frame
Subset Xts Object by Time of Day
How to Jitter/Dodge Geom_Segments So They Remain Parallel
Error in New.Session():Could Not Establish Session After 5 Attempts
Insert Elements in a Vector in R
Add a Column with Count of Nas and Mean
Different Legend-Keys Inside Same Legend in Ggplot2