ref_exchanges: Reference Data Accessor for Exchanges from 'twelvedata'

Description Usage Arguments Details Value See Also

View source: R/ref_exchanges.R

Description

Retrieve Reference Data for Exchanges from ‘twelvedata’

Usage

1
2
3
4
5
6
7
8
ref_exchanges(
  type = c("stock", "etf", "index"),
  as = c("data.frame", "raw"),
  name = "",
  code = "",
  country = "",
  apikey
)

Arguments

type

(character) A (single) type for exchange for “stock”, “etf” or “index”. Defaults to “stock”.

as

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

name

(optional, character) Filter by exchange. Default is unset.

code

(optional, character) Filter by exchange mic code. default is unset.

country

(optional, character) Filter by country name or alpha code. Default 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_exchanges.

Value

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

See Also

https://twelvedata.com/docs


td documentation built on Jan. 27, 2022, 1:16 a.m.