Fetch ETF Data from JustETF
fetch_justetf_screener.RdRetrieves a list of ETFs from JustETF, applying optional filters for AUM and TER. The function first tries the legacy JSON API, then falls back to the JustETF search table endpoint if needed.
Usage
fetch_justetf_screener(
min_aum_gbp = 0,
max_ter = Inf,
page_size = 500,
max_pages = Inf,
source = c("auto", "api", "wicket"),
quiet = FALSE
)Arguments
- min_aum_gbp
Numeric. Minimum Assets Under Management in GBP (millions). Default is 0.
- max_ter
Numeric. Maximum Total Expense Ratio (percentage). Default is Inf.
- page_size
Integer. Number of rows per page when paging the table endpoint.
- max_pages
Integer. Maximum number of pages to fetch when paging. Default Inf.
- source
Character. Data source preference: "auto", "api", or "wicket".
- quiet
Logical. If TRUE, suppresses warnings when endpoints fail.
Examples
if (FALSE) { # \dontrun{
etfs <- fetch_justetf_screener()
print(etfs)
} # }