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

Cant download all quarters #64

Open
bxhorn opened this issue Jul 13, 2024 · 2 comments
Open

Cant download all quarters #64

bxhorn opened this issue Jul 13, 2024 · 2 comments

Comments

@bxhorn
Copy link

bxhorn commented Jul 13, 2024

Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on https://stackoverflow.com/ or https://community.rstudio.com/.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.


Simple function is not working as intended. I have a 'Start' subscription.

# get profit and loss statement for all quarters
pl <- sfa_load_statements(ticker = "AAPL",
                    statements = "pl",
                    period = "quarters")
@matthiasgomolka
Copy link
Owner

Can you please provide a complete reprex?

@bxhorn
Copy link
Author

bxhorn commented Aug 4, 2024

I run the code snippet in my original issue post above using the reprex package. The error message returned is shown below:

{"timestamp":"2024-08-04T15:16:16.727829744","status":"500","error":"Failed to convert value of type \u0027java.lang.String\u0027 to required type \u0027java.util.List\u0027; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@io.swagger.v3.oas.annotations.Parameter @org.springframework.web.bind.annotation.RequestParam simfin.library.domain.enums.Period] for value \u0027quarters\u0027; nested exception is java.lang.IllegalArgumentException: No enum constant simfin.library.domain.enums.Period.quarters","message":"Failed to convert value of type \u0027java.lang.String\u0027 to required type \u0027java.util.List\u0027; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@io.swagger.v3.oas.annotations.Parameter @org.springframework.web.bind.annotation.RequestParam simfin.library.domain.enums.Period] for value \u0027quarters\u0027; nested exception is java.lang.IllegalArgumentException: No enum constant simfin.library.domain.enums.Period.quarters"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants