R/get_oanda.R

Defines functions get_oanda

#' Get OANDA Quotes as list
#'
#' @param fxPairs
#'
#' @return
#' @export
#'
#' @examples
get_oanda <- function(fxPairs){
  # Read oanda quotes
  listFX <- lapply(fxPairs, read_oanda)
  names(listFX) <- fxPairs

  # Class
  class(listFX) <- "listFX"

  # Return
  listFX
}
samkulu/forex documentation built on Dec. 15, 2024, 10:06 a.m.