matthiasgomolka / simfinapi

Makes 'SimFin' data (https://simfin.com/) easily accessible in R.
19 stars 4 forks source link

Cant download all quarters #64

Open bxhorn opened 2 months ago

bxhorn commented 2 months ago

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 commented 1 month ago

Can you please provide a complete reprex?

bxhorn commented 1 month ago

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"}