Closed MislavSag closed 3 years ago
I tried to use sfa_get_info function on all SimFin tickers/ids. I have got an error in both cases. First when I use ids:
sfa_get_info
library(simfinapi) firms <- simfinapi::sfa_get_entities(api_key = "myapi") firms_info <- simfinapi::sfa_get_info(SimFinId = firms$SimFinId, api_key = "myapi")
I got an error:
Error in check_inputs(Ticker = Ticker, SimFinId = SimFinId, api_key = api_key, : Assertion on 'SimFinId' failed: Element 76 is not <= 999999.
When I used tickers:
library(simfinapi) firms <- simfinapi::sfa_get_entities(api_key = "myapi") firms_info <- simfinapi::sfa_get_info(Ticker = firms$Ticker, api_key = "my_api") head(firms)
Error in check_inputs(Ticker = Ticker, SimFinId = SimFinId, api_key = api_key, : Assertion on 'Ticker' failed: Must comply to pattern '^[A-Za-z0-9_.]+$'.
Hi and thanks for reporting! The input checks on Ticker and SimFinId were too strict (inferred from older data). Fixed in the dev version (b45f4e631b624a7c8d7baa177e0520e3fef73731).
Ticker
SimFinId
I tried to use
sfa_get_info
function on all SimFin tickers/ids. I have got an error in both cases. First when I use ids:I got an error:
When I used tickers:
I got an error: