get
Properties of Bloomberg connection V3
Description
Examples
Retrieve Bloomberg Connection Properties
Create the Bloomberg connection.
c = blp;
Alternatively, you can connect to the Bloomberg Server using blpsrv
or Bloomberg
B-PIPE® using bpipe
.
Retrieve the Bloomberg connection properties.
v = get(c)
v = session: [1x1 com.bloomberglp.blpapi.Session] ipaddress: 'localhost' port: 8194 timeout: 0
v
is a structure containing the Bloomberg session object, IP address, port number, and timeout value.
Close the Bloomberg connection.
close(c)
Retrieve One Bloomberg Connection Property
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)
Retrieve Two Bloomberg Connection Properties
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.
Close the Bloomberg connection.
close(c)
Input Arguments
properties
— Property names
character vector | string scalar | cell array of character vectors | string array
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
.
Data Types: char
| cell
| string
Output Arguments
v
— Bloomberg connection properties
numeric scalar | character vector | object | structure
Bloomberg connection properties, returned as these data types depending on the requested properties.
Requested Properties | Data Type |
---|---|
Port number or timeout |
Numeric scalar |
IP address |
Character vector |
Bloomberg session |
Object |
All properties |
Structure |
Version History
Introduced in R2010a
See Also
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
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.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)