diff --git a/articles/TQ02-quant-integrations-in-tidyquant.html b/articles/TQ02-quant-integrations-in-tidyquant.html index 1d41233..e488e3b 100644 --- a/articles/TQ02-quant-integrations-in-tidyquant.html +++ b/articles/TQ02-quant-integrations-in-tidyquant.html @@ -912,12 +912,12 @@
tq_fund_holdings()
: Retrieves the fund holdings and compositions for a fund and source combination. Example: tq_fund_holdings("SPY", source = "SSGA")
#250+“Packages which use Internet resources should fail gracefully with an informative message if the resource is not available or has changed (and not give a check warning nor error).”
CRAN release: 2024-08-19
diff --git a/pkgdown.yml b/pkgdown.yml index 196a793..d6e3707 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -9,7 +9,7 @@ articles: TQ04-charting-with-tidyquant: TQ04-charting-with-tidyquant.html TQ05-performance-analysis-with-tidyquant: TQ05-performance-analysis-with-tidyquant.html TQ06-excel-in-r: TQ06-excel-in-r.html -last_built: 2024-09-02T14:16Z +last_built: 2024-09-02T15:03Z urls: reference: https://business-science.github.io/tidyquant/reference article: https://business-science.github.io/tidyquant/articles diff --git a/reference/Rplot002.png b/reference/Rplot002.png index 9ce563d..907f8dc 100644 Binary files a/reference/Rplot002.png and b/reference/Rplot002.png differ diff --git a/reference/coord_x_date-1.png b/reference/coord_x_date-1.png index 75cf874..b8a8f95 100644 Binary files a/reference/coord_x_date-1.png and b/reference/coord_x_date-1.png differ diff --git a/reference/excel_date_functions.html b/reference/excel_date_functions.html index ccaec40..1c4abe4 100644 --- a/reference/excel_date_functions.html +++ b/reference/excel_date_functions.html @@ -376,7 +376,7 @@tq_exchange()
tq_index_options()
tq_exchange_options()
+ tq_index()
tq_index_options()
tq_exchange()
tq_exchange_options()
tq_fund_holdings()
tq_fund_source_options()
tibble
formattq_index(x, use_fallback = FALSE)
+tq_index_options()
+
tq_exchange(x)
-tq_index_options()
+tq_exchange_options()
+
+tq_fund_holdings(x, source = "SSGA")
-tq_exchange_options()
The API source to use.
tq_exchange_options()
returns a list of stock exchanges you can
choose from. The options are AMEX, NASDAQ and NYSE.
tq_fund_holdings()
returns the the stock symbol, company name, weight, and sector of every stock
+in an fund. The source
parameter specifies which investment management company to use.
+Example: source = "SSGA"
connects to State Street Global Advisors (SSGA).
+If x = "SPY"
, then SPDR SPY ETF holdings will be returned.
tq_fund_source_options()
: returns the options that can be used for the source
API for tq_fund_holdings()
.
+# Stock Indexes:
+
# Get the list of stock index options
tq_index_options()
#> [1] "DOW" "DOWGLOBAL" "SP400" "SP500" "SP600"
@@ -118,6 +133,8 @@ Examplestq_index("DOW")
} # }
+# Stock Exchanges:
+
# Get the list of stock exchange options
tq_exchange_options()
#> [1] "AMEX" "NASDAQ" "NYSE"
@@ -127,6 +144,17 @@ Examplestq_exchange("NYSE")
} # }
+# Mutual Funds and ETFs:
+
+# Get the list of stock exchange options
+tq_fund_source_options()
+#> [1] "SSGA"
+
+# Get all stocks in a fund
+if (FALSE) { # \dontrun{
+tq_fund_holdings("SPY", source = "SSGA")
+} # }
+