Field information for Bloomberg connection V3




d = fieldinfo(c,f) returns field information on Bloomberg® V3 connection object c given a field mnemonic f.


collapse all

Retrieve Information for the Bloomberg Last Price Field

Create a Bloomberg connection.

c = blp;

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

Retrieve the Bloomberg field information for the 'LAST_PRICE' field.

d = fieldinfo(c,'LAST_PRICE');

Display the returned Bloomberg information.

d{1} =
Last price for the security. Field updates in realtime.

  Returns the last price provided by the exchange. For securities that trade Monday through Friday, this field will be populated only if such information has been provided by the exchange in the past 30 trading days. For all other securities, this field will be populated only if such information was provided by the exchange in the last 30 calendar days. This applies to common stocks, receipts, warrants, and real estate investment trusts (REITs).
d{2} =
d{3} =
d{4} =
Last Trade/Last Price
d{5} =

The columns in d contain the following:

  • Field help with the Bloomberg descriptive information

  • Field identifier

  • Field mnemonic

  • Field name

  • Field data type

Close the Bloomberg connection.


Input Arguments

collapse all

c — Bloomberg connectionconnection object

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

f — Field mnemonicstring

Field mnemonic, specified as a string that is used to retrieve Bloomberg field information.

Data Types: char

Output Arguments

collapse all

d — Return datacell array

Return data, returned as an N-by-5 cell array containing the field help, field identifier, field mnemonic, field name, and field data type.

Was this topic helpful?