Error in New.Session():Could Not Establish Session After 5 Attempts

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



Leave a reply



Submit