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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.