Skip to contents

Free of charge. Mirrors metadata.list_fields. This is the authoritative column list for a download: field sets differ between DBN record versions, so pass dataset rather than relying on the newest layout.

Usage

db_list_fields(schema, encoding, dataset = NULL)

Arguments

schema

Schema name, see db_schemas().

encoding

Encoding whose field list you want, see db_encodings().

dataset

Optional dataset code. Omitting it returns the fields of the most recent DBN version, which may not match an older dataset.

Value

A tibble with the field name and type per record.

Examples

if (FALSE) { # \dontrun{
db_list_fields("ohlcv-1d", "csv", dataset = "GLBX.MDP3")
} # }