#' Get Company Stats from IEXTrader
#'
#' @param ticker (string) single stock ticker
#' @import magrittr curl jsonlite
#' @export
get_stats = function(ticker) {
url <- paste(iextrader_endpoints("stats"), sep = "")
url <- gsub("'stock'", ticker, url)
dta <- iextrader_api(url)
return(dta)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.