Create a Bloomberg connection, and then retrieve information for the last price field.
Create the Bloomberg connection using the Bloomberg Desktop C++ interface.
c = bloomberg;
Return data as a table by setting the DataReturnFormat property
of the bloomberg object. If you do not set this property, the
fieldinfo function returns data as a cell array.
c.DataReturnFormat = 'table';
Retrieve the Bloomberg field information for the LAST_PRICE field.
f = 'LAST_PRICE';
d = fieldinfo(c,f);
Display the last four columns in the returned Bloomberg information.
d(:,2:5)
ans =
1×4 table
ID MNEMONIC DESCRIPTION DATATYPE
_______ ____________ _______________________ ________
'RQ005' 'LAST_PRICE' 'Last Trade/Last Price' 'Double'
The columns in d are:
Field identifier
Field mnemonic
Field name
Field data type
You can also access the Bloomberg help information in the first column.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.