get
Description
returns a
structure where each field name is the name of a property of the v = get(c)bloombergBPIPE
object c, which uses the Bloomberg®
B-PIPE® C++ interface, and each field contains the value of that property.
returns the value of the specified properties v = get(c,properties)properties for the
Bloomberg V3 connection object.
Examples
Create a Bloomberg B-PIPE connection using the IP address of the machine running the Bloomberg B-PIPE process. This example uses the Bloomberg B-PIPE C++ interface and assumes the following:
The authentication is Windows® authentication when you set
authtypeto'OS_LOGON'.The application name is blank because you are not connecting to Bloomberg B-PIPE using an application.
The IP address for the machine running the Bloomberg B-PIPE process is
'111.11.11.112'.The port number of the machine running the Bloomberg B-PIPE process is
8194.
c is a bloombergBPIPE object.
authtype = 'OS_LOGON'; appname = ''; ipaddress = {'111.11.11.112'}; port = 8194; c = bloombergBPIPE(authtype,appname,ipaddress,port);
Retrieve the Bloomberg connection properties.
v = get(c)
ans =
struct with fields:
session: [1×1 datafeed.internal.BLPSession]
ipaddress: "localhost"
port: 8194.00
v is a structure containing the Bloomberg session object, IP address, port number, and timeout value.
Close the Bloomberg connection.
close(c)
Create a Bloomberg B-PIPE connection using the IP address of the machine running the Bloomberg B-PIPE process. This example uses the Bloomberg B-PIPE C++ interface and assumes the following:
The authentication is Windows authentication when you set
authtypeto'OS_LOGON'.The application name is blank because you are not connecting to Bloomberg B-PIPE using an application.
The IP address for the machine running the Bloomberg B-PIPE process is
'111.11.11.112'.The port number of the machine running the Bloomberg B-PIPE process is
8194.
c is a bloombergBPIPE object.
authtype = 'OS_LOGON'; appname = ''; ipaddress = {'111.11.11.112'}; port = 8194; c = bloombergBPIPE(authtype,appname,ipaddress,port);
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 a Bloomberg B-PIPE connection using the IP address of the machine running the Bloomberg B-PIPE process. This example uses the Bloomberg B-PIPE C++ interface and assumes the following:
The authentication is Windows authentication when you set
authtypeto'OS_LOGON'.The application name is blank because you are not connecting to Bloomberg B-PIPE using an application.
The IP address for the machine running the Bloomberg B-PIPE process is
'111.11.11.112'.The port number of the machine running the Bloomberg B-PIPE process is
8194.
c is a bloombergBPIPE object.
authtype = 'OS_LOGON'; appname = ''; ipaddress = {'111.11.11.112'}; port = 8194; c = bloombergBPIPE(authtype,appname,ipaddress,port);
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 =
struct with fields:
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
Bloomberg
B-PIPE connection, specified as a bloombergBPIPE object.
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
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 R2021a
MATLAB Command
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.
Amériques
- 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)