更改 bdh 的货币输出
change currency output of bdh
如何将此货币设置为美元?
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today())
我试过:
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today(), options = c('FX' = 'USD'))
Error in bdh_Impl(con, securities, fields, start.date, end.date, options, :
Sub-element '(null)' does not exist.
和
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today(), options = c('Currency' = 'USD'))
Error in bdh_Impl(con, securities, fields, start.date, end.date, options, :
Attempt to access unknown sub-element 'Currency' on element 'HistoricalDataRequest'
只需要小写:
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today(), options = c("currency"="USD"))
如何将此货币设置为美元?
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today())
我试过:
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today(), options = c('FX' = 'USD'))
Error in bdh_Impl(con, securities, fields, start.date, end.date, options, : Sub-element '(null)' does not exist.
和
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today(), options = c('Currency' = 'USD'))
Error in bdh_Impl(con, securities, fields, start.date, end.date, options, : Attempt to access unknown sub-element 'Currency' on element 'HistoricalDataRequest'
只需要小写:
bdh(securities = "SBMAR1 Comdty", fields = 'PX_LAST', start.date = today() - 10, end.date = today(), options = c("currency"="USD"))