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.

emsx

Create Bloomberg EMSX connection

Syntax

c = emsx(servicename)

Description

example

c = emsx(servicename) creates a connection to the local Bloomberg® EMSX communications server using the service servicename.

Examples

collapse all

Create a connection c to the Bloomberg EMSX test service. You can place test calls using this service.

 c = emsx('//blp/emapisvc_beta') 
c = 
 
  emsx with properties:

      Session: [1x1 com.bloomberglp.blpapi.Session]
      Service: [1x1 com.bloomberglp.blpapi.impl.aQ]
    Ipaddress: 'localhost'
         Port: 8194

MATLAB® returns c as the connection to the Bloomberg EMSX test service with the following:

  • Bloomberg EMSX session object

  • Bloomberg EMSX service object

  • IP address of the machine running the Bloomberg EMSX test service

  • Port number of the machine running the Bloomberg EMSX test service

Close the Bloomberg EMSX connection.

close(c)

Create a connection c to the Bloomberg EMSX production service. You can place live calls using this service.

c = emsx('//blp/emapisvc')
c = 
 
  emsx with properties:

      Session: [1x1 com.bloomberglp.blpapi.Session]
      Service: [1x1 com.bloomberglp.blpapi.impl.aQ]
    Ipaddress: 'localhost'
         Port: 8194

MATLAB returns c as the connection to the Bloomberg EMSX test service with the following:

  • Bloomberg EMSX session object

  • Bloomberg EMSX service object

  • IP address of the machine running the Bloomberg EMSX production service

  • Port number of the machine running the Bloomberg EMSX production service

Close the Bloomberg EMSX connection.

close(c)

Input Arguments

collapse all

Bloomberg EMSX service name, specified as one of these connection types.

Connection TypeBloomberg EMSX Service Name

Test

'//blp/emapisvc_beta'

Production

'//blp/emapisvc'

Output Arguments

collapse all

Bloomberg EMSX service connection, returned as a connection object with these properties.

Property

Description

Session

Bloomberg EMSX session object

Service

Bloomberg EMSX service object

Ipaddress

IP address of the machine where Bloomberg EMSX is running

Port

Port number of the machine where Bloomberg EMSX is running

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?