getFields
Syntax
Description
[
retrieves Bloomberg® Hypermedia field information for all available fields, where
fieldList
,response
] = getFields(c
,userCatalog
)c
is the Bloomberg Hypermedia connection object, and userCatalog
is your
catalog ID from Bloomberg.
Examples
Retrieve Bloomberg Hypermedia Information for Specified Field
Retrieve information about a specified field.
Create a Bloomberg Hypermedia connection object by using the API key provided by Bloomberg.
credentialsString = '{"client_id":"89beaeab724bbdf5e186b733c58af2","client_secret":"77050429aee81eb31793fb10fa4301c54911db545de8b2990252ffe2b56b11","name":"BloombergHAIDevelopment","scopes":["eap","beapData","reportingapi"],"expiration_date":1699198358934,"created_date":1651764758934}'
c = bloombergHypermedia(credentialsString)
c = bloombergHypermedia with properties: TimeOut: 200.00
Specify your catalog ID and the name of the field. Use the
getFields
function to get the information about the field of
interest. Replace "123" with your login credentials for the catalog you want to
access.
userCatalog = "123"; field = "pxLast"; [fieldList,response] = getFields(c,userCatalog,field)
fieldList = 1×49 table x_context x_id x_type Created DLCategory DLCommercialModelCategory DL_ExtendedBulk DL_Bulk DataLicense Description FieldId FieldType IRI IsAbstract LoadingSpeed Mnemonic OldMnemonic Platform_Static Platform_Streaming Platform_TerminalRequired Range SAPINewSecuritySetup StandardDecimalPlaces StandardWidth SuperPropertyIRI YK_Commodity YK_Corporate YK_Currency YK_Equity YK_Index YK_MoneyMarket YK_Mortgage YK_Municipal YK_Preferred YK_USGovernment description identifier rdf_langString title xsd_fractionDigits xsd_length xsd_maxExclusive xsd_maxInclusive xsd_maxLength xsd_minExclusive xsd_minInclusive xsd_minLength xsd_pattern xsd_type __________ __________ __________ _________________________________ ______________________ _________________________ _______________ _______ ___________ ______________ _________ _________ ____________________________________________________________ __________ ____________ ___________ __________________ _______________ __________________ _________________________ ____________ ____________________ _____________________ _____________ ______________________________________________________________ ____________ ____________ ___________ _________ ________ ______________ ___________ ____________ ____________ _______________ _________________________ __________ ______________ ______________ __________________ ____________ ________________ ________________ _____________ ________________ ________________ _____________ ____________ _______________ 1×1 struct {0×0 char} {3×1 cell} {'Mon, 01 Jan 1996 00:00:00 GMT'} {'End of Day Pricing'} {'Pricing - Intraday'} false true true {'Last Price'} {'PR005'} {'Price'} {'https://api.bloomberg.com/eap/catalogs/bbg/fields/pxLast'} false {'Hare'} {'PX_LAST'} {'EQY_LAST_TRADE'} true false true {0×0 double} true {0×0 double} {0×0 double} {'https://api.bloomberg.com/eap/catalogs/bbg/fields/snapshot'} true true true true true true true true true true {'Test data field list'} {'pxLast'} {0×0 double} {'LastPrice'} 8.00 {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} {0×0 double} {'xsd:decimal'} response = ResponseMessage with properties: StatusLine: '' StatusCode: OK Header: [1×13 matlab.net.http.HeaderField] Body: [1×1 matlab.net.http.MessageBody] Completed: 0
Input Arguments
c
— Bloomberg Hypermedia connection
Bloomberg Hypermedia object
Bloomberg Hypermedia connection, specified as a Bloomberg Hypermedia object.
userCatalog
— User catalog identifier
string scalar | character vector
User catalog identifier, specified as a character vector or string scalar.
field
— Field name
string scalar | character vector
Field specified as a character vector or string scalar.
Output Arguments
fieldList
— Field list identifier
string scalar
Field list identifier, returned as a string scalar.
response
— HTTP request response
ResponseMessage
object
HTTP request response, returned as a ResponseMessage
object. For
details, see matlab.net.http.ResponseMessage
.
Version History
Introduced in R2023b
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)