Skip to contents

Mirrors security_master.get_range.

Usage

db_security_master(
  start,
  end = NULL,
  index = "ts_effective",
  symbols = NULL,
  stype_in = "raw_symbol",
  countries = NULL,
  security_types = NULL,
  allocate_isins = TRUE,
  compression = "zstd"
)

Arguments

start, end

Request window. start is required; leaving end as NULL asks the server to forward-fill.

index

Column the result is ordered by, "ts_effective" by default.

symbols

Character vector of symbols, a comma-separated string, or NULL for all symbols.

stype_in

Symbol type of symbols. The reference API accepts more types than the historical one, among them "isin", "figi" and "nasdaq_symbol", and passes the value through unvalidated.

countries

Optional country filter, a character vector or a comma-separated string.

security_types

Optional security-type filter.

allocate_isins

Ask the server to allocate ISINs.

compression

Transfer compression, "zstd" or "none".

Value

A tibble of security-master records.

Examples

if (FALSE) { # \dontrun{
db_security_master(start = "2024-01-01", symbols = "AAPL")
} # }