Free of charge, and the one call that belongs in front of every
db_get_range(): downloads are billed per gigabyte, previews are not.
Mirrors metadata.get_cost. The quote already reflects any plan discount,
so it is not simply billable size times unit price.
Usage
db_get_cost(
dataset,
start,
end = NULL,
symbols = NULL,
schema = "trades",
stype_in = "raw_symbol",
limit = NULL
)Arguments
- dataset
Dataset code, e.g.
"GLBX.MDP3".- start, end
Request window, start inclusive and end exclusive. A string passes through verbatim, a
Datebecomes a plain date, aPOSIXctan ISO-8601 UTC instant, and a number is read as nanoseconds since the UNIX epoch. LeavingendasNULLasks the server to forward-fill fromstart.- symbols
Character vector of symbols, a single comma-separated string, or
NULLfor all symbols. Withstype_in = "instrument_id"a numeric vector is accepted. At most 2000 symbols per request.- schema
Schema name, see
db_schemas().- stype_in
Symbol type of
symbols, seedb_stypes(). Use"parent"for product-level symbols such as"ES.FUT"or"SPX.OPT".- limit
Optional cap on the number of records.
