MATLAB: How to obtain the currency of the security and the dividend when I perform a Bloomberg FETCH command using the Datafeed Toolbox in MATLAB 7.8 (R2009a)

bloombergcurrencydividendfetchMATLABSecurity

I am using the Bloomberg FETCH function to obtain currency information about a security.
The security is priced in SEK and has a dividend in EUR. The function call I use is:
a=fetch(bbg,'NDA SS Equity','GETDATA','BDVD_ALL_PROJECTIONS')
I want to know which currency the security and dividends are priced in. 'BDVD_ALL_PROJECTIONS' does not return this information.

Best Answer

The following command:
cur = fetch(bbg,'NDA SS Equity','GETDATA',{'BDVD_ALL_PROJECTIONS','CRNCY','EQY_DVD_CRNCY'})
will return a structure with the information. EQY_DVD_CRNCY is the currency of the dividend and CRNCY is the currency of the security itself.