getAllFieldMetaData

Obtain Bloomberg EMSX field information

Syntax

Description

example

r = getAllFieldMetaData(c) returns the Bloomberg® EMSX field information using the Bloomberg EMSX connection c.

Examples

expand all

Request All Field Information

Create a connection c to the Bloomberg EMSX.

 c = emsx('//blp/emapisvc_beta'); 

Request all fields supported by Bloomberg EMSX service using the Bloomberg EMSX connection c.

 r = getAllFieldMetaData(c)
 r = 
 
        EMSX_FIELD_NAME: {113x1 cell}
         EMSX_DISP_NAME: {113x1 cell}
              EMSX_TYPE: {113x1 cell}
             EMSX_LEVEL: [113x1 double]
               EMSX_LEN: [113x1 double]

Display all field information for the first Bloomberg EMSX field using a cell array. Create a cell array from the fields in the returned data structure r.

{r.EMSX_FIELD_NAME{1} r.EMSX_DISP_NAME{1} r.EMSX_TYPE{1} r.EMSX_LEVEL(1) r.EMSX_LEN(1)} 
 'MSG_TYPE'    'Msg Type'    'String'    [0]    [1]

Close the Bloomberg EMSX connection.

close(c)

Input Arguments

expand all

c — Bloomberg EMSX service connectionconnection object

Bloomberg EMSX service connection, specified as a connection object created using emsx.

Output Arguments

expand all

r — Return information for all fieldsstructure

Return information for all fields, returned as a structure for all fields supported by Bloomberg EMSX.

More About

expand all

Tips

For details about Bloomberg EMSX, see the EMSX API Programmer's Guide using the WAPI <GO> option from the Bloomberg terminal.

Was this topic helpful?