Documentation Center

  • Trial Software
  • Product Updates

Retrieve Field Data

getdata obtains Bloomberg® field data. The entire set of field data provides statistics for all possible securities, but it does not apply universally to any one security.

To obtain data for specific fields of a given security, use the getdata function with the following syntax:

d = getdata(Connect, Security, Fields)

For example, use the Bloomberg connection object c to retrieve the values of the fields Open and Last_Price:

c = blp
d = getdata(c,'IBM US Equity', {'Open';'Last_Price'})
d = 
    Open: 126.2500
    Last_Price: 125.1250
Was this topic helpful?