我收到错误消息
错误 bdh_Impl(con, 证券, 字段, 开始日期, 结束日期, 选项, : 子元素 '(null(' 不存在。
它仅在我尝试设置options = c("curr"="SEK")
时才会出现.如果我删除该行,它会正确下载数据
> startdate <- as.Date("2018-01-01")
> enddate <- as.Date("2018-03-21")
> fund <- bdh("/isin/FI0008813258",
+ "tot_return_index_gross_dvds",
+ startdate,
+ enddate
+ , options = c("curr"="SEK")
+ )
根据我在网上找到的内容,您必须完整拼写货币:
startdate <- as.Date("2018-01-01")
enddate <- as.Date("2018-03-21")
fund <- bdh("/isin/FI0008813258",
"tot_return_index_gross_dvds",
startdate,
enddate
, options = c("currency"="SEK")
)