Skip to content
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

Quantmod's getOptionChain erroring-out #409

Closed
darylfyc opened this issue Jan 31, 2024 · 1 comment
Closed

Quantmod's getOptionChain erroring-out #409

darylfyc opened this issue Jan 31, 2024 · 1 comment

Comments

@darylfyc
Copy link

darylfyc commented Jan 31, 2024

Description

Hello, the getOptionChain function is error-ing out.

Thanks for helping to look into this!

Expected behavior

The expected behavior is to retrieve the option chain. However, it is error-ing out. Please see the screenshot attached for more info.

Minimal, reproducible example

library(quantmod)
getOptionChain("XOM", Exp = as.Date("2024-02-02"))$puts

Session Info

R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=English_Singapore.utf8  LC_CTYPE=English_Singapore.utf8   
[3] LC_MONETARY=English_Singapore.utf8 LC_NUMERIC=C                      
[5] LC_TIME=English_Singapore.utf8    

time zone: Asia/Singapore
tzcode source: internal

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

other attached packages:
[1] bizdays_1.0.13  yfR_1.1.0       lubridate_1.9.2 quantmod_0.4.25 TTR_0.24.3      xts_0.13.1     
[7] zoo_1.8-12      dplyr_1.1.3    

loaded via a namespace (and not attached):
 [1] vctrs_0.6.3      cli_3.6.1        rlang_1.1.1      purrr_1.0.2      generics_0.1.3   jsonlite_1.8.7  
 [7] glue_1.6.2       fansi_1.0.4      grid_4.3.1       tibble_3.2.1     lifecycle_1.0.3  compiler_4.3.1  
[13] pacman_0.5.1     timechange_0.2.0 pkgconfig_2.0.3  lattice_0.21-8   R6_2.5.1         tidyselect_1.2.0
[19] utf8_1.2.3       pillar_1.9.0     curl_5.0.2       magrittr_2.0.3   tools_4.3.1

image

@joshuaulrich
Copy link
Owner

I fixed this yesterday in #407. Please install the latest development version of quantmod: remotes::install_github("joshuaulrich/quantmod").

@joshuaulrich joshuaulrich closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants