【问题标题】:Bloomberg fund price set currency彭博基金定价设定币种
【发布时间】:2018-09-24 07:59:08
【问题描述】:

我收到错误消息

bdh_Impl 中的错误(con、Securities、fields、start.date、end.date、options,:子元素“(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")
+     )

【问题讨论】:

    标签: r rblpapi


    【解决方案1】:

    根据我在网上查到的,你必须把货币全拼出来:

    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")
              )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多