Nothing
#' CoinGecko currencies
#'
#' Retrieves a list of base currencies currently supported by the CoinGecko API
#'
#' @eval function_params(c("max_attempts", "api_note"))
#'
#' @return Character vector with abbreviated names of the currencies.
#' @export
#'
#' @examples
#' \donttest{
#' r <- supported_currencies()
#' print(r)
#' }
supported_currencies <- function(max_attempts = 3) {
validate_arguments(arg_max_attempts = max_attempts)
url <- build_get_request(
base_url = "https://api.coingecko.com",
path = c("api", "v3", "simple", "supported_vs_currencies"),
query_parameters = NULL
)
supported_currencies <- api_request(
url = url,
max_attempts = max_attempts
)
return(unlist(supported_currencies))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.