ref_forex_pairs: Reference Data Accessor for Forex Pairs from 'twelvedata'

Description Usage Arguments Details Value See Also

View source: R/ref_forex_pairs.R

Description

Retrieve Reference Data for Forex Pairs from ‘twelvedata’

Usage

1
2
3
4
5
6
7
ref_forex_pairs(
  sym = "",
  as = c("data.frame", "raw"),
  currency_base = "",
  currency_quote = "",
  apikey
)

Arguments

sym

(optional, character) A (single or vector) currency pair according to ISO 4217 standard codes with slash(/) delimiter.

as

(optional, character) A selector for the desired output format: one of “data.frame” (the default) or or “raw”.

currency_base

(optional, character) Base currency name. Default value is unset.

currency_quote

(optional, character) Quote currency name. Default value is unset.

apikey

(optional character) An API key override, if missing a value cached from package startup is used. The startup looks for either a file in the per-package config directory provided by tools::R_user_dir (for R 4.0.0 or later), or the TWELVEDATA_API_KEY variable.

Details

ref_forex_pairs.

Value

The requested data is returned as a data.frame object.

See Also

https://twelvedata.com/docs


td documentation built on Oct. 29, 2021, 1:07 a.m.