Yahoo finance - error trying to download option chain with r - Quantmod

141 views Asked by At

Started getting the following error message while downloading the option chain - it was working fine until few days ago...

uOUT.OPT <- getOptionChain("TSLA","2024")

Error in Exp/86400 : non-numeric argument to binary operator In addition: Warning message: In open.connection(con, "rb") : cannot open URL 'https://query2.finance.yahoo.com/v7/finance/options/TSLA': HTTP status was '401 Unauthorized'

... also getting the below when trying to download the joshuaulrich fix...any other fix available?

remotes::install_github("joshuaulrich/quantmod@407-getoptionchain") Downloading GitHub repo joshuaulrich/quantmod@407-getoptionchain Error in utils::download.file(url, path, method = method, quiet = quiet, : cannot open URL 'https://api.github.com/repos/joshuaulrich/quantmod/tarball/407-getoptionchain'

0

There are 0 answers