Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getBrokerInfo

Obtain Bloomberg EMSX broker and strategy information

Syntax

r = getBrokerInfo(c,brokerstrat)

Description

example

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

Examples

collapse all

Create a connection c to the Bloomberg EMSX.

 c = emsx('//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 a connection c to the Bloomberg EMSX.

 c = emsx('//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 a connection c to the Bloomberg EMSX.

 c = emsx('//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 connection object created using emsx.

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.

Tips

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

Introduced in R2013a

Was this topic helpful?