Skip to contents

Retrieves historical fund holdings (composition) for a given ETF ticker using tidyquant. This includes top holdings, sector weights, and asset allocation data.

Usage

fetch_etf_holdings(symbol)

Arguments

symbol

Character string. The ticker symbol of the ETF (e.g., "SPY").

Value

A tibble containing holding details. Returns NULL or empty tibble on failure.

Examples

if (FALSE) { # \dontrun{
  fetch_etf_holdings("SPY")
} # }