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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.