彭博基金价格设定货币

Bloomberg fund price set currency

我收到错误消息

Error in bdh_Impl(con, securities, fields, start.date, end.date, options, : Sub-element '(null)' does not exist.

它只在我尝试设置 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")
          )