R/endpoint_url.R

Defines functions endpoint_url

Documented in endpoint_url

#' @title Build the API endpoint
#' @description Take an endpoint and attach it to the base url from finnhub
#' 
#' @param end_point An API endpoint.  Example for stock peers /stock/peers.
#' 
#' @importFrom config get
#' 
#' @return
#'
#' @examples
#' finnhub_base_url <- 'https://finnhub.io/api/v1/'
#' endpoint_url('stock/peers')
endpoint_url <- function(end_point, ...){
  paste0(finnhub_base_url, end_point)
}
threadingdata/finnhubr documentation built on Aug. 10, 2020, 12:48 a.m.