Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

fieldinfo

Field information for Bloomberg connection V3

Syntax

d = fieldinfo(c,f)

Description

example

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

Examples

collapse all

Create a Bloomberg connection.

c = blp;

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

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

Equities:
  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} =
 
RQ005
 
 
d{3} =
 
LAST_PRICE
 
 
d{4} =
 
Last Trade/Last Price
 
 
d{5} =
 
Double

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.

close(c)

Input Arguments

collapse all

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

Field mnemonic, specified as a character vector or string scalar that denotes the Bloomberg field information to retrieve.

Data Types: char | string

Output Arguments

collapse all

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

Introduced in R2010b

Was this topic helpful?