Main Content

getBrokerInfo

ObtainBloombergEMSX broker and strategy information

Description

example

r= getBrokerInfo(c,brokerstrat)obtains Bloomberg®EMSX broker and strategy information using the Bloomberg EMSX connectioncand broker and strategy request structurebrokerstrat.

Examples

collapse all

Create a connectioncto the Bloomberg EMSX.

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

Define the broker and strategy information structurebrokerstrat. Obtain broker information using the Bloomberg EMSX connectioncand structurebrokerstrat.

brokerstrat。EMSX_TICKER ='ABCD US Equity';r = getBrokerInfo(c,brokerstrat)
r = EMSX_BROKERS: {2x1 cell}

TheEMSX_BROKERSfield lists the Bloomberg EMSX brokers.

Close the Bloomberg EMSX connection.

close(c)

Create a connectioncto the Bloomberg EMSX.

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

Define the broker and strategy information structurebrokerstrat. Obtain strategy information using the Bloomberg EMSX connectioncand structurebrokerstrat.

brokerstrat。EMSX_TICKER ='ABCD US Equity';brokerstrat。EMSX_BROKER ='BMTB';r = getBrokerInfo(c,brokerstrat)
r = EMSX_STRATEGIES: {16x1 cell}

TheEMSX_STRATEGIESfield lists the Bloomberg EMSX strategies.

Close the Bloomberg EMSX connection.

close(c)

Create a connectioncto the Bloomberg EMSX.

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

Define the broker and strategy information structurebrokerstrat. Obtain field information using the Bloomberg EMSX connectioncand structurebrokerstrat.

brokerstrat。EMSX_TICKER ='ABCD US Equity';brokerstrat。EMSX_BROKER ='BMTB';brokerstrat。EMSX_STRATEGY ='SSP';r = getBrokerInfo(c,brokerstrat)
r = FieldName: {3x1 cell} Disable: {3x1 cell} StringValue: {3x1 cell}

The structure fieldFieldNamelists the Bloomberg EMSX fields. The structure fieldsDisableandStringValuecontain information about the Bloomberg EMSX fields.

Close the Bloomberg EMSX connection.

close(c)

Input Arguments

collapse all

Bloomberg EMSX service connection, specified as a connection object created usingemsx.

Broker and strategy request, specified as a structure that contains Bloomberg EMSX fields. UsegetAllFieldMetaDatato view all available fields forbrokerStrategyStruct.

Example:brokerstrat。EMSX_TICKER = 'ABCD US Equity';

Data Types:struct

Output Arguments

collapse all

Broker and strategy information, returned as a structure.

Version History

Introduced in R2013a