R/crypto_exchanges.R

Defines functions crypto_exchanges

Documented in crypto_exchanges

#' @title Cryptocurrency Exchanges
#' @description Get cryptocurrency exchanges
#'   
#' @importFrom tibble tibble
#' 
#' @return
#' @export
#' 
#' @examples
#' crypto_exchanges()
crypto_exchanges <- function(...){
  
  url <- finnhub_endpoint('crypto_exchanges')
  
  df <- retry_get(url, 
                  query = list(token = finnhub_key())
  )
  df %>% 
    tibble::tibble(crypto_exchange = .)
}
threadingdata/finnhubr documentation built on Aug. 10, 2020, 12:48 a.m.