Retrieve time series data from the Bank of Canada Valet API.
Arguments
- group_name
(
NULL
|character(1)
)
Name of the group. Only one ofgroup_name
orseries_name
can be used.- series_name
(
NULL
|character()
)
Name of the series.- start_date
(
NULL
|Date(1)
|character(1)
)
Start date of the data. DefaultNULL
.- end_date
(
NULL
|Date(1)
|character(1)
)
End date of the data. DefaultNULL
.
Value
A data.table::data.table()
with the requested data.
See also
Other data:
bbk_data()
,
bbk_series()
,
bde_data()
,
bdf_codelist()
,
bdf_data()
,
bdf_dataset()
,
boe_data()
,
ecb_data()
,
onb_data()
,
snb_data()
Examples
if (FALSE) { # \dontrun{
boc_data(group_name = "FX_RATES_DAILY")
boc_data(
series_name = c("FXUSDCAD", "FXEURCAD"),
start_date = "2023-01-23",
end_date = "2023-07-19"
)
} # }