Products & Services Solutions Academia Support User Community Company

Learn more about Datafeed Toolbox   

Retrieving Connection Properties

How to Retrieve Connection Properties

To retrieve the properties of a connection object, use the get function. This function returns different values depending upon which data server you are using.

Example: Retrieving Bloomberg Connection Object Properties

Establish a connection, c, to a Bloomberg data server:

c = bloomberg

The following command returns the list of all valid connection properties of c, and their values:

p = get(c)
p = 
    connection: 84554360
     ipaddress: '123.456.54.123'
          port: 8194
        socket: 248
       version: 1.8000

The get function can return specific properties of a connection object. For example, to obtain the port number and version of the connection object c run the command:

p = get(c,{'Port';'Version'})
p = 
       port: 8194
    version: 1.8000

Use the following command to return a single property, in this case, the connection handle:

p = get(c,'Connection')
p =
    84554360

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS