Skip to content

getQuote throws 404 error in GDPR countries #392

Description

@chartviewer

Description

The command getQuote("AAPL") throws the error "Error in open.connection(con, "rb") : HTTP error 404". Any chance to fix that?
Thanks a lot!
Thorsten

Expected behavior

I would expect to get a dataframe containing the most recent quote from yahoo as the default src

Minimal, reproducible example

library(quantmod)
getQuote("AAPL")

Session Info

R version 4.3.0 (2023-04-21 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=German_Germany.utf8  LC_CTYPE=German_Germany.utf8    LC_MONETARY=German_Germany.utf8
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.utf8    

time zone: Europe/Berlin
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] quantmod_0.4.24 TTR_0.24.3      xts_0.13.1      zoo_1.8-12     

loaded via a namespace (and not attached):
 [1] crayon_1.5.2      cli_3.6.1         knitr_1.43        xfun_0.39         rlang_1.1.1      
 [6] processx_3.8.1    jsonlite_1.8.4    prettyunits_1.1.1 rprojroot_2.0.3   htmltools_0.5.5  
[11] pkgbuild_1.4.0    ps_1.7.5          rmarkdown_2.22    grid_4.3.0        evaluate_0.21    
[16] fastmap_1.1.1     yaml_2.3.7        compiler_4.3.0    rstudioapi_0.14   lattice_0.21-8   
[21] digest_0.6.31     R6_2.5.1          curl_5.0.0        callr_3.7.3       tools_4.3.0      
[26] withr_2.5.0       remotes_2.4.2     desc_1.4.2  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions