Main Content

isconnection

DetermineBloombergconnection V3

Description

example

v= isconnection(c)returnstrueifcis a valid Bloomberg®V3 connection andfalseotherwise.

Examples

collapse all

Create the Bloomberg connection.

c = blp;

Alternatively, you can connect to the Bloomberg Server usingblpsrvor Bloomberg B-PIPE®usingbpipe.

Validate the Bloomberg connection.

v = isconnection(c)
v = 1

vreturnstrue显示,彭博社有限公司nnection is valid.

Close the Bloomberg connection.

close(c)

Input Arguments

collapse all

Bloomberg connection, specified as a connection object created usingblp,blpsrv, orbpipe.

Output Arguments

collapse all

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

Version History

Introduced in R2010b