Main Content

getBrokerInfo

Obtain Bloomberg EMSX broker and strategy information

Since R2021a

Description

r = getBrokerInfo(c,brokerstrat) obtains Bloomberg® EMSX broker and strategy information using the Bloomberg EMSX connection c with the Bloomberg EMSX C++ interface and broker and strategy request structure brokerstrat.

example

Examples

collapse all

Create the Bloomberg EMSX connection c using the Bloomberg EMSX C++ interface.

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

Define the broker and strategy information structure brokerstrat. Obtain broker information using the Bloomberg EMSX connection c and structure brokerstrat.

brokerstrat.EMSX_TICKER = 'ABCD US Equity';

r = getBrokerInfo(c,brokerstrat)
 r = 
 
        EMSX_BROKERS: {2x1 cell} 

The EMSX_BROKERS field lists the Bloomberg EMSX brokers.

Close the Bloomberg EMSX connection.

close(c)

Create the Bloomberg EMSX connection c using the Bloomberg EMSX C++ interface.

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

Define the broker and strategy information structure brokerstrat. Obtain strategy information using the Bloomberg EMSX connection c and structure brokerstrat.

brokerstrat.EMSX_TICKER = 'ABCD US Equity';
brokerstrat.EMSX_BROKER = 'BMTB';

r = getBrokerInfo(c,brokerstrat)
 r = 
 
        EMSX_STRATEGIES: {16x1 cell} 

The EMSX_STRATEGIES field lists the Bloomberg EMSX strategies.

Close the Bloomberg EMSX connection.

close(c)

Create the Bloomberg EMSX connection c using the Bloomberg EMSX C++ interface.

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

Define the broker and strategy information structure brokerstrat. Obtain field information using the Bloomberg EMSX connection c and structure brokerstrat.

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 field FieldName lists the Bloomberg EMSX fields. The structure fields Disable and StringValue contain information about the Bloomberg EMSX fields.

Close the Bloomberg EMSX connection.

close(c)

Input Arguments

collapse all

Bloomberg EMSX service connection, specified as a bloombergEMSX object.

Broker and strategy request, specified as a structure that contains Bloomberg EMSX fields. Use getAllFieldMetaData to view all available fields for brokerStrategyStruct.

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 R2021a