v is a structure containing the Bloomberg session object, IP address, port number, and timeout value.
Close the Bloomberg connection.
close(c)
Create the Bloomberg connection.
c = blp;
Alternatively, you can connect to the Bloomberg Server using blpsrv or Bloomberg
B-PIPE using bpipe.
Retrieve the port number from the Bloomberg connection object by specifying 'port' as a character
vector.
property = 'port';
v = get(c,property)
v =
8194
v is a double that contains the port number of the Bloomberg connection object.
Close the Bloomberg connection.
close(c)
Create the Bloomberg connection.
c = blp;
Alternatively, you can connect to the Bloomberg Server using blpsrv or Bloomberg
B-PIPE using bpipe.
Create a cell array properties with character vectors
'session' and 'port'. Retrieve the Bloomberg session object and port number from the Bloomberg connection object.
properties = {'session','port'};
v = get(c,properties)
v =
session: [1x1 com.bloomberglp.blpapi.Session]
port: 8194
v is a structure containing the Bloomberg session object and port number.
Bloomberg connection, specified as a connection object
created using blp, blpsrv, or bpipe.
Property names, specified as a character vector, string scalar, cell array of
character vectors, or string array containing Bloomberg connection property names. The property names are
session, ipaddress, port, and
timeout.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.