Field category search for Bloomberg connection V3




d = category(c,f) returns category information given a search term f.


collapse all

Search for the Bloomberg Last Price Field

Create the Bloomberg® connection.

c = blp;

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

Request the Bloomberg category description of the last price field.

d = category(c,'LAST_PRICE');

Display the first three rows of Bloomberg category description data in d.

ans = 

    'Analysis'    'OP054'    'DELTA_LAST'    'Delta Last Trade...'    'Double'
    'Analysis'    'OP051'    'IVOL_LAST'     'Implied Volatili...'    'Double'
    'Analysis'    'OP006'    'DELTA'         'Delta Best Price'       'Double'

The columns in d contain the following:

  • Category

  • Field identifier

  • Field mnemonic

  • Field name

  • Field data type

Close the Bloomberg connection.


Related Examples

Input Arguments

collapse all

c — Bloomberg connectionconnection object

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

f — Search termstring

Search term, specified as a string to denote Bloomberg fields.

Data Types: char

Output Arguments

collapse all

d — Return datacell array

Return data, returned as an N-by-5 cell array containing categories, field identifiers, field mnemonics, field names, and field data types for each N row in the data set.

Introduced in R2010b

Was this topic helpful?