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 clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.