isconnection

Determine Bloomberg connection V3

Syntax

  • v = isconnection(c)

Description

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

Examples

expand all

Validate the Bloomberg Connection

Create the Bloomberg connection.

c = blp;

Alternatively, you can connect to the Bloomberg Server API 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

expand all

c — Bloomberg connectionconnection object

Bloomberg connection, specified as a connection object created using blp.

Output Arguments

expand all

v — Valid Bloomberg connectiontrue | false

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

See Also

| | | |

Was this topic helpful?