isconnection

Determine Bloomberg connection V3

Description

example

v = isconnection(c) returns true if c is a valid Bloomberg® V3 connection and false otherwise.

Examples

collapse all

Create the Bloomberg connection.

c = blp;

Alternatively, you can connect to the Bloomberg Server using blpsrv or Bloomberg B-PIPE® using bpipe.

Validate the Bloomberg connection.

v = isconnection(c)
v =

     1

v returns true showing that the Bloomberg connection is valid.

Close the Bloomberg connection.

close(c)

Input Arguments

collapse all

Bloomberg connection, specified as a connection object created using blp, blpsrv, or bpipe.

Output Arguments

collapse all

Valid Bloomberg connection, returned as a logical true, 1, or a logical false, 0.

Introduced in R2010b