Bloomberg Developer - Data License - documentation
Bloomberg Developer - Data License - documentation
Data License
Request Help
Overview
The Bloomberg Data License (DL) Platform allows you to request financial information by specifying a range of securities and a range of informatio
You can submit your DL Per Security request to the DL Platform through a variety of methods, including SFTP or SOAP API (Web Services).
Bloomberg processes these requests and sends a response containing the requested data values. This is a very flexible, effective, and timely way t
SFTP
Note: Bloomberg discourages use of the legacy DES software encryption option. If you are still using DES encryption, you can contact Bloomberg
You must open the following TCP port: Port 22
SFTP Internet access will be disabled after 180 days of inactivity. If your account becomes disabled, contact Customer Support to enable it again.
There is an installation fee and a monthly equipment charge for the maintenance of hardware.
The IP Addresses and Host Names of the SFTP servers are provided. For more: IP Addresses.
For SFTP via dedicated circuit, you must purchase communication equipment from Bloomberg. It must be installed by Bloomberg.
To use Data License (DL) Front End Software applications (e.g., Request Builder), contact your Bloomberg Sales Representative. Upon receip
Deleting Files
To provide a backup, by default, Bloomberg stores your files on two back-up servers. As a result, you may see a file you attempted to delete again
If you would like your files to be deleted permanently instead, please contact Customer Support.
IP Addresses
Internet Connections
For all account regions:
DNS | IPs
------------------------------|-------------------
sftp.bloomberg.com | 205.216.112.23 & 208.22.57.176
Note: Any one server machine may be down for regular maintenance. For contingency reasons, you are advised to use DNS sftp.bloomberg.com
Account Region
NY and TO
LO
Any one physical server machine may be down for regular maintenance. If you are connecting via Dedicated Lines, you should connect to the virtu
Clients/Users Requirements
You must provide Bloomberg with all the IPs you will be using to connect to Bloomberg’s SFTP servers. Without these stored on the account, your
You can add up to 5 IP addresses or address ranges to the security IP allowlist for Password access.
If you need more than 5 IP addresses or addresses ranges (e.g. in case of dynamic IP addresses), then you must provide Bloomberg with the publ
You have multiple SFTP accounts, you cannot use the same SSH key across all the accounts. Separate SSH keys must be used for different accounts
Legacy IP Addresses
Legacy IP addresses are being deprecated and removed. You must use supported IP addresses.
Web Services
Web Services (SOAP API) provides a programmatic interface to submit and retrieve messages to and from Bloomberg servers. Bloomberg provide
Text
## WSDL:
https://service.bloomberg.com/assets/dl/dlws.wsdl
## Service endpoint:
https://dlws.bloomberg.com/dlps
## IP Addresses:
69.191.229.90
69.191.193.90
The sample code can be downloaded from DLWS Samples. An SSL certificate and password will be provided by Bloomberg.
Supported Platforms
Web Services supports the following:
Category
Language .NET
Language Java
OS Windows
OS Linux
Protocol TLS
Sytems below the minimum required may work, except where noted, but support will be limited.
Bloomberg DATA<GO>, by selecting User Name > Manage DLWS Connectivity from the header.
In the Connection Details page, there are three different tabs – Active Certificates, Expired Certificates, and Revoked Certificates.
Adding a New Certificate
The ADD NEW CERTIFICATE button is enabled only for users with the right permission. You can raise a ticket with Customer Support if the button
Click the ADD NEW CERTIFICATE button to move to the add certificate page.
Step 1: Obtain a Certificate Signing Request (CSR)
To generate a Certificate Signing Request (CSR), follow the steps under “How do I generate a CSR and private key?” in this link.
Or, you can generate a CSR using OpenSSL using the following command.
openssl req -new -newkey rsa:2048 -nodes -out <name_of_csr_file> -keyout <name_of_key_file>
State or Province Name (S): the full name of the state or province
Alternatively, a subject can be added using -subj option in OpenSSL. However the string of the subject will not allow spaces or special characters,
openssl req -new -newkey rsa:2048 -nodes -out <name_of_csr_file> -keyout <name_of_key_file> -subj “/CN=<account_number>:D
Example:
openssl req -new -newkey rsa:2048 -nodes -out 123456.csr -keyout 123456.key -subj “/CN=123456:DLWS/O=Bloomberg./OU=DataLi
You will be able to find the full list of Distinguished Name (DN) on https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq
Other fields not listed above in the example can be passed into the CSR, but they will not be stored into the Creg database.
Organization Name (O): alphanumeric + special characters & _ ‘ ( ) + , – . / ^ ~ < > = (e.g. Bloomberg L.P.)
Email Address (E): prefix: alphanumeric + special characters _ . + – , domain: alphanumeric + special characters – .
Example:
Country Name = US
Email Address = [email protected]
Check the status of the validation of the format located right below the text box. Make sure the CSR string starts with “—–BEGIN CERTIFICATE REQ
If it is a valid format, you will see the green text, “CSR format is valid”. Otherwise, the warning message will appear with disabled GENERATE & DO
Step 4: Download Certificate
Click the GENERATE & DOWNLOAD button to download the certificate in your browser window.
Click the DONE button.
Make sure the certificate has been generated with 18 months (540 days) of expiry in the Active Certificate tab.
Enter a password to export when prompted and please remember the password for the future use in SoapUI.
Example: openssl pkcs12 -export -out cert.p12 -in bbg-cert-790223.pem -inkey 790223.key
cert.p12 is the new PKCS12 certificate generated by this command, which can be used with DLWS
PKCS12 vs PEM
The existing process generates what is known as a PKCS12 certificate. However, this is inherently insecure as Bloomberg must store the your privat
The new system on Enterprise Console/Bloomberg DATA<GO> uses industry standards for certificate generation. In the new workflow, you genera
Through the new process, your private key is not transmitted over the internet and should stay secure with you. The cert you receive through self-s
You can use the PEM certificate as-is or generate a replacement PKCS12 certificate if needed. You should retain a copy of your existing certificate, a
You should run the following command on your datacenter to generate the PKCS12 certificate using the PEM certificate generated using the Enter
Example: openssl pkcs12 -export -out cert.p12 -in bbg-cert-123456.pem -inkey 123456.key
cert.p12 is the new PKCS12 certificate generated by this command, which can be used with DLWS
Bloomberg Identifiers
ID_BB_GLOBAL
You can use the Bloomberg Global ID (ID_BB_GLOBAL) as a key field to link or join securities across files. It is a 12 digit alpha-numeric, randomly-ge
The BBGID:
Is stored in field ID135 ID_BB_GLOBAL. In addition, for Equity securities (excluding Equity Options), the Composite/Security Level BBGID is st
Should be used to track a change to a security’s CUSIP identifier, since such an action occurs often, especially for Collateralized Mortgage O
ID_BB_UNIQUE
You can use the Bloomberg Unique ID (ID_BB_UNIQUE) as a key field to link or join securities across requests. It is a unique, automatically-generate
An exception to this is for Equity Options, where the Unique ID is derived from other security-level data.
ID_BB_UNIQUE is unique to a specific security and not the company. If there is more than one ticker for a company within a country, each wil
ID_BB_UNIQUE may be used to track a change to a security’s CUSIP identifier, since such an action occurs often, especially for Collateralized
The combination of ID_BB_UNIQUE and ID_BB_COMPANY should be used to identify an individual security for Mortgages, Munis, and Indices.
ID_BB_COMPANY
You can use the Bloomberg Company ID (ID_BB_COMPANY ) to link or join securities of the same company across requests.
The combination of ID_BB_COMPANY and ID_BB_SECURITY identifies an individual security for Munis, Equities, Corporates, Governments, an
The combination of ID_BB_COMPANY and ID_BB_UNIQUE identifies an individual security for Munis, Mortgages, and Indices.
ID_BB_SECURITY
You should use the Bloomberg Security ID (ID_BB_SECURITY) in combination with ID_BB_COMPANY to distinguish between securities of the same co
By using these identifiers, you can link all securities with the same issuer or company name whether they are equity or debt instruments.
Best Practices
Data License (DL) Per Security allows you to request financial information for a specific portfolio of securities or companies.
This is a very flexible way for you to request data on an on-demand or on a scheduled basis and pay for only what you need. Data requests can be
Scheduled files without the TIME header will default to run at midnight; heavy load at this time may cause response delays.
Spin-offs SPIN
You are advised to avoid requesting a large amount of history during peak times of day, e.g. around market open or close time.
Polling
Bloomberg recommends using appropriate polling intervals for retrieving responses from SFTP and Web Services.
If a typical request takes 30 seconds, then 30 seconds should be used as the baseline for polling responses.
If a larger request (e.g., a request for more securities, history, or derived fields) usually takes two minutes, then two minutes should be the b
Small Requests
Small requests are inefficient. DL throttles requests to ensure that individual accounts do not consume more than an allocated amount of system re
You can achieve better performance by grouping securities into larger requests, which results in reduced throttling and overhead in processing ad
Keep in mind that for Web Services, this needs to be tempered against generating large XML response files.
Scheduling Times
Running requests outside of the busier times of day will yield better performance.
Busy times of day include market open and close for each region. Additionally, there is typically a surge of requests at the top of the hour. Request
Monthly Maintenance
Historical Data products charge Monthly Unique Security rates for the first month and then the lower Monthly Maintenance rates for subsequent m
If a month is skipped, the Monthly Unique Security rate will apply again when the request resumes. You should take this cost implication into consi
CANS is an event-based product that pushes data out to you after it is entered into the Bloomberg system. Repeated requests to poll for actions v
File Names
Bloomberg recommends that you use different file names for different requests, especially if running multiple requests on the same day.
When retrieving a response file, you should ensure that the output file being retrieved matches the corresponding request file, including the date
Allowed Characters
For:
REPLYFILENAME Header
Whitespace is not allowed. Please use only the following allowed characters (up to 25):
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
1 2 3 4 5 6 7 8 9 0
_ . -
Beta
In general, the VERSION=NEW header should not be used. It hits a beta version of Bloomberg software that is less reliable than the production versio
WSDL
The WSDL is an API to Data License Web Services (DLWS).
A typical use case is to generate the code one time using the WSDL. This should not be used as part of the daily workflow.
In the event the WSDL content changes, proper notice will be sent through Bloomberg’s notification service. You are advised to not programmatic
Limitations
Entity Limit
All Requests
Securities For getData requests in Scheduled Mode: 200,000 securities per request.
For getHistory requests that include one or more fundamental/industry-specific fields: 1000 s
For all other requests and modes (i.e., Adhoc Mode and Scheduled Mode): 20,000 securities
Field Overrides 19 overrides per security. For more: getData > Overrides.
Fields 450 fields per request. For more: Request Composition > List of Fields.
NOTE
Do not request more than 450 fields because requests may include up to 50 extra intern
64 characters per DLWS Certificate Signing Request (CSR) field value. For more: Managing D
getHistory Requests For requests that include one or more fundamental field:
For more: getHistory
10 years of historical data.
1000 securities.
NOTE
If you request more than 450 total fields, the response includes all fundamental/
getTickHistory Requests
For more: getTickHistory
Response File Size 2 GB (20 GB uncompressed). For more: Excessive size error.
Start Date Maximum of 240 trading days before the current day or the number of days when the securit
NOTE
If you exceed this limit, the response truncates at the previous full record and returns co
Rate Limiting
Characters
Response file name Cannot include white spaces or any of the following: ` ~ ! @ # $ % & * ( ) [ ] , { } : ; ‘ ” > < / ? | =
For more: Response Charset.
Request Composition
Request Charset
The request file name can be any string not exceeding 25 characters, including the .req extension. It may not begin with the – or . character and
Additionally, the colon (:), backslash (\), forward slash (/), and single quote (') characters are not allowed for SFTP requests.
Request Format
Requests must be composed of printable ASCII characters only; no binary characters or special escape sequences are allowed.
Requests formatted as DOS files, which contain an additional carriage return as the end-of-line marker, are accepted.
Requests in other formats (e.g. – Word, Excel) are not accepted. The default delimiter character used in requests is Unix pipe “|”.
Section
START-OF-FILE
Request Header
List of Fields
List of Securities
END-OF-FILE
Note: The order of tags and sections in requests always correspond to the table above.
Request Header: This section contains information that identifies the customer, the type of request to run, the time to run the request, and o
List of Fields: This section may or may not be needed in a request, depending upon the program you are running (i.e., data items must be s
List of Securities: This section can be filled with a list of individual securities.
END-OF-FILE: This record defines the end of the Per Security request file. It must be the last record in the request. If it is not in the request, t
Note: Reply files have similar structure that is described in Response Data, and can contain error descriptions as commented text before START-OF
Blank lines may appear freely within a request and are always be ignored, regardless of their position within the request after START-OF-FILE. Line
List of Fields
The list of fields is used to specify the fields that will be retrieved in response to the Per Security request.
NOTE
For programmatic access to all Data License (DL) fields, download the Fields dataset.
The weekly Fields.csv and fields.ttl files contain the metadata for fields that the DL product delivers. annotationsMetaModel.ttl includes metadata for the
The files appear in the root directory and contain more than 14,000 fields, each of which has corresponding metadata as an entry within fields .csv / .ttl. Me
Text
START-OF-FIELDS
<Field Mnemonics>
END-OF-FIELDS
## The list of fields must be after the header and before the list of securities. A maximum of 500 fields can be
START-OF-FIELDS
ID_ISIN
NAME
PX_ASK
MTG_WAC
EQY_BETA
YLD_CNV_ASK
END-OF-FIELDS
## The way in which field information is returned may be specified (all arguments are optional and separated by t
Argument Description
field width Sets the size (number of characters) of the field that is returned.
If a value is not specified, the defaults are as follows: if the OUTPUTFORMAT is specified as variable (the default), the r
If the OUTPUTFORMAT parameter is equal to fixed, the size of the field defaults to a predetermined fixed size for that fi
decimal places Sets the number of decimal places that are returned with Price fields.
For character and Real fields, this value is ignored.
If this option is not specified, the number of decimal places will vary according to field.
Columns in the fields.csv dataset provide information about each field’s decimal places.
For more examples on field width and decimal places usage: Sample Files for Customizing Output Format.
START-OF-FILE
FIRMNAME=dlxxxxxx
REPLYFILENAME=formatting_fields.out
PROGRAMNAME=getdata
PROGRAMFLAG=adhoc
OUTPUTFORMAT=variable
SECDESLENGTH=14
CLOSINGVALUES=yes
START-OF-FIELDS
NAME
NAME|16
PX_LAST
PX_LAST|14
PX_LAST|14|4
PX_LAST||8
END-OF-FIELDS
START-OF-DATA
IBM US Equity||
END-OF-DATA
END-OF-FILE
## Reply File 1
START-OF-FILE
RUNDATE=20180515
FIRMNAME=dlxxxxxx
REPLYFILENAME=formatting_fields.out
PROGRAMNAME=getdata
PROGRAMFLAG=adhoc
OUTPUTFORMAT=variable
SECDESLENGTH=14
CLOSINGVALUES=yes
START-OF-FIELDS
NAME
NAME|16
PX_LAST
PX_LAST|14
PX_LAST|14|4
PX_LAST||8
END-OF-FIELDS
TIMESTARTED=Tue May 15 13:20:54 EDT 2018
START-OF-DATA
IBM US Equity |0|6|INTL BUSINESS MACHINES CORP|INTL BUSINESS MA|143.470000|143.470000 |143.4700 |143.47000000|
END-OF-DATA
TIMEFINISHED=Tue May 15 13:21:11 EDT 2018
END-OF-FILE
## Request File 2
## This sample shows using custom field values delimieter: 'DELIMITER=;'
## The rest of parameters are equal to the previous sampe.
START-OF-FILE
FIRMNAME=dlxxxxxx
REPLYFILENAME=formatting_delimiter.out
PROGRAMNAME=getdata
PROGRAMFLAG=adhoc
OUTPUTFORMAT=variable
SECDESLENGTH=14
DELIMITER=;
CLOSINGVALUES=yes
START-OF-FIELDS
NAME
NAME|16
PX_LAST
PX_LAST|14
PX_LAST||8
END-OF-FIELDS
START-OF-DATA
IBM US Equity||
END-OF-DATA
END-OF-FILE
## Reply File 2
START-OF-FILE
RUNDATE=20180515
FIRMNAME=dlxxxxxx
REPLYFILENAME=formatting_delimiter.out
PROGRAMNAME=getdata
PROGRAMFLAG=adhoc
OUTPUTFORMAT=variable
SECDESLENGTH=14
DELIMITER=;
CLOSINGVALUES=yes
START-OF-FIELDS
NAME
NAME|16
PX_LAST
PX_LAST|14
PX_LAST||8
END-OF-FIELDS
TIMESTARTED=Tue May 15 12:44:19 EDT 2018
START-OF-DATA
"IBM US Equit";0;5;"INTL BUSINESS MACHINES CORP";"INTL BUSINESS ";143.440000 ;143.440000 ;143.44000000 ;
END-OF-DATA
TIMEFINISHED=Tue May 15 12:44:45 EDT 2018
END-OF-FILE
## Request File 3
## This sample shows request with 'SECDESLENGTH=12' and 'OUTPUTFORMAT=fixed'.
## The rest of parameters are equal to the previous sampe.
START-OF-FILE
FIRMNAME=dlxxxxxx
REPLYFILENAME=formatting_fixed.out
PROGRAMNAME=getdata
PROGRAMFLAG=adhoc
OUTPUTFORMAT=fixed
SECDESLENGTH=12
CLOSINGVALUES=yes
START-OF-FIELDS
NAME
NAME|16
PX_LAST
PX_LAST||8
END-OF-FIELDS
START-OF-DATA
IBM US Equity||
END-OF-DATA
END-OF-FILE
## Reply File 3
START-OF-FILE
RUNDATE=20180515
FIRMNAME=dlxxxxxx
REPLYFILENAME=formatting_fixed.out
PROGRAMNAME=getdata
PROGRAMFLAG=adhoc
OUTPUTFORMAT=fixed
SECDESLENGTH=12
CLOSINGVALUES=yes
START-OF-FIELDS
NAME
NAME|16
PX_LAST
PX_LAST||8
END-OF-FIELDS
TIMESTARTED=Tue May 15 11:58:16 EDT 2018
START-OF-DATA
IBM US Equit0 4 INTL BUSINESS MACHINES CORP INTL BUSINESS MA143.610000 143.61000000
END-OF-DATA
TIMEFINISHED=Tue May 15 11:58:34 EDT 2018
END-OF-FILE
This section lists examples of Per Security requests in order to show how format of the output data is influenced by the various request parameters
field width and decimal places parameters described in FIELDS related chapter
NOTE:
All text fields are surrounded by double quotes in ‘Reply File 2’ since delimiter differs from Unix pipe “|”.
Security identifier (“IBM US Equit”) in ‘Reply File 2’ is two characters shorter ‘Reply File 1’ since double quotes took place.
No delimiters are presented in the ouput in in ‘Reply File 3’ since the OUTPUTFORMAT is set to fixed
Securities
The list of securities must be after the list of fields, with one security identifier per line.
A maximum of 20,000 securities may be requested in a single request via an Adhoc mode under Scheduled Service or via legacy Per Secur
A maximum of 200,000 securities may be requested in a single getData request via a Scheduled mode under Scheduled Service. Other pr
Text
START-OF-DATA
<Securities>
END-OF-DATA
Any text inserted between END-OF-DATA and END-OF-FILE will not be returned in the output.
Bloomberg DL may insert comments in the area between END-OF-DATA and END-OF-FILE at any time.
Text
## In order to specify the requested security the following formats can be used:
<Identifier> | <Security Identifier>
<Identifier> <Market Sector>
<Identifier> <Market Sector> | <Security Identifier> |
<WildCard> | MACRO |
## Format Example: shows the ways of specifying the securities in 'Per Security' requests.
START-OF-DATA
# Intel Corp
US4581401001 US|ISIN|
US4581401001 US Equity|ISIN|
INTC US Equity
# T14 11/15/11
000863149|VALOREN|
000863149 Govt|VALOREN|
T14 11/15/11 Govt
END-OF-DATA
Argument Description
Identifier Required
Security Identifier Must be one of the identifiers described in SECID chapter. This security descriptor is limited to 32 ch
It is also possible to identify securities using security descriptions such as Ticker/Coupon/Maturity or
Some security identifiers apply to multiple securities from multiple exchanges. It is possible to specify
Market Sector Optional, but recommended. Must be one of the standard Bloomberg market sectors specified prev
Wildcard An expression that represents a universe of securities. See Security Wildcards section below.
When both Security Identifier and Market Sector options are specified, the Security Identifier option takes precedence. For example, if Security Ide
Comment lines can be included in SFTP Request files (not in Web Services requests), and must be preceded by a # sign. In the above example, the
Security Wildcards
Security wildcards (or macros) represent a group or universe of securities.
Wildcards are meant to facilitate downloading large groups of related securities and security list maintenance. They are not designed to function a
Wildcards are placed in the data section of a request. In general, wildcards should be treated as any other data request with the addition of | MAC
Note: You will be billed for all securities that are delivered when using a wildcard/macro.
Wildcards can also be used in getHistory, getQuotes, getAllQuotes, and getActions programs.
macrotype = primary qualifier [AND secondary qualifier = value [AND secondary qualifier = value AND ...] ...]
For example, if you want to download SRCH criteria set number 3, in the data section of the request, this would be specified as:
BOND_SRCH = 3 | MACRO
All bonds that match the given criteria will be returned with the fields that you requested.
Portfolio Wildcards
The below listed PORTFOLIO wildcards allow you to use an existing portfolio’s security set. The line format is the same as the bond search. For exa
A Port # can be found on Portfolio Administration (PRTU <GO>) function on the Bloomberg Terminal. The Port #’s are listed on the far right of the Y
The PRP header option can be used with the PORTFOLIO macro. For example, PRP=1 will return fields in PRP Setup #1. For further details, see Requ
Note: Shared Portfolios can be assigned the same number as an existing Portfolio. In this case, you would need to create a new Portfolio and use t
In contrast, the line format for the PORTFOLIO wildcard that applies to BVAL Derivatives Portfolios stored in BVPM<GO> is as follows:
PORTFOLIO=BVALOTC:<portfolio name>|MACRO
A portfolio name can be found on the BVAL Derivatives Portfolio Manager (BVPM<GO>) function on the Bloomberg Terminal. The portfolio names
PORTFOLIO=BVALOTC:Money Maker|MACRO
The Portfolio MACRO also supports overrides. In order to add an override, simply append the override values after the word MACRO.
For example, to add a date override to the above example, you can use: PORTFOLIO=BVALOTC:Money Maker|MACRO|1|PX_CLOSE_DT|mm/dd/yy|
EQS Wildcards
To obtain the unique identifier to use in the EQUITY_SRCH macro, login to the Bloomberg Terminal using the login name that has the equity searc
You must use the number in the ID column against the search name you have created.
Example:
EQUITY_SRCH=8606101 |MACRO
Security Type
ABS
BASIS_SW_CRNCY
CD_CRNCY
Security Type
CMBS
CMO
CONVERTS
CONVERTS_PFD
CONVERTS_UNDERLYING
CONVERTS_PFD_UNDERLYING
CORPORATES
CORP_PFD
CORP_PFD_DOMESTIC
CORP_PFD_INTERNATIONAL
CPS_FLRS_CRNCY
CROSS_CRNCY
DELIVERABLE_BONDS
DEPOSIT_CRNCY
EQUITY_INDEX
EURODOLLAR_BOND
FHLMC_GOLD_POOL
FHLMC_POOL
FNMA_POOL
FORWARD_CRNCY
FRA_CRNCY
FUT_CHAIN
GNMAI_POOL
GNMAII_POOL
GOVT_AGENCY
GOVT_NATIONAL
GOVT_REGIONAL
LOAN
NDF_CRNCY
NDF_SW_CRNCY
ONSH_CRNCY
ONSH_SW_CRNCY
OPT_CHAIN
OPT_VOL_CRNCY
PFD_BOND
Security Type
QUARTER_CRNCY
REPO_CRNCY
SEMI_CRNCY
SPOT_CRNCY
SUPRA_NATIONAL
SWAP_CRNCY
SWAP_SPR_CRNCY
SWAP_VOL_CRNCY
US_TREASURY
WHEN_ISSUED
WHOLE_LOAN
X_FWD_CRNCY
All matured bonds are weeded out of the list of securities returned.
The first example returns all members of the Dow Jones Industrials (ticker = INDU).
The second example retrieves all listings on the New York Stock Exchange (NYSE).
The third example generates the list of all convertible bonds in the corporate database.
Text
## Wildcards are placed between "START-OF-DATA" and "END-OF-DATA" in the request as follows:
START-OF-DATA
INDEX =INDU |MACRO
EXCH= UN|MACRO
SECTYP=CONVERTS|MACRO
SECTYP=GOVT_REGIONAL|MACRO
SECTYP=US_TREASURY|MACRO
END-OF-DATA
The following code returns daily high prices for members of the S&P 500 Index from June 15, 2002 through June 15, 2003:
URI
The following table lists all secondary qualifiers and to which macrotypes/primary qualifiers these apply:
Secondary Qualifier Description
LQA_TGT_LIQUIDATION_VOLUME/PY247 Defines volume used to estimate Liquidation Cost, Liquidation Horizon, or related outputs.
LQA_SEC_22E4_TRADE_SIZE/PY368 Defines anticipated amount to be liquidated in order to classify the liquidity of a position according to the Sec
The macro may not contain any of the following security level overrides: LQA_TGT_LIQUIDATION_VOLUME (PY247), LQA_SEC_22E4_TRAD
Currently available security types for the secondary qualifier SECURITY_TYP are listed below:
SECURITY_TYP
AMERICATRUST
CLOSEENDFUND
COMMON
MONEYMARKET
MUTUAL
OFFSHOREFUND
OPTION
RECEIPT
RIGHT
UKTRUST
UNIT
WARRANT
SECURITY_TYP=COMMON will return the securities that were listed on an exchange as of the previous day. For example, if a security is added to a
Secondary qualifiers use the operators =, != (not equal to), > and <. Some examples of secondary qualifiers are:
SECTYP=CORPORATES AND CRNCY=USD AND COUNTRY=US|MACRO All corporate bonds issued by the U.S. in U.S. dollars
SECTYP=GOVT_REGIONAL AND COUNTRY!=CA AND CRNCY=FRF|MACRO All regional government bonds, not issued by Canada, denominated in
SECTYP=GOVT_AGENCY AND RATING=AAA AND CRNCY=BE|MACRO All government agency bonds, issued by Belgium, rated AAA
SECTYP=US_TREASURY AND TICKER=T|MACRO All U.S. treasuries with T as the ticker symbol
EXCH=UN AND SECURITY_TYP=COMMON|MACRO All common stocks listed on the New York Stock Exchange.
For example, the first macro below returns all deliverable bonds for the US long bond future and the second returns all options for IBM’s US listing
Text
## The deliverable bonds, futures contracts and option chain macros require the secondary qualifier SECURITY_DES.
The first example retrieves government agency bonds that are rated higher than B2 and lower than A3.
The second example gets corporate bonds that are rated lower than AAA and higher than B1.
The next example is for convertible bonds that are lower than AA1.
Text
## Ranges can be specified for the secondary qualifiers NET_CPN, RATING, WAC, WALA and WAM by using > and < symbo
In general, wildcards are easy to use and expedite the generation of lists of securities of a given group. Some basic syntax rules for wildcards follo
Wildcards must begin with a macrotype (e.g., INDEX) followed by an equal sign (=). Only one macrotype is allowed per line.
Only one type of secondary qualifier can be specified per line (except RATING and Mtge qualifiers). For example, COUNTRY = CA AND COUN
Either a range of RATINGs can be specified or one RATING can be asked for, but not both. That is, either use RATING > ??? AND RATING <
A maximum of seven secondary qualifying statements (e.g., TICKER = T) are allowed per line. Any secondary qualifying statement beyond
Return Codes
In general, any non-zero return code means an error has occurred.
0 Good return. N
Data Types
The following table describes the data types returned by the Per Security programs:
Type Description
Date Date format including month, day and year. e.g., YYYYMMDD, mm/dd/yyyy
Time Time format including hours, minutes and seconds, e.g., hh:mm:ss
Bulk Format Serialized representation of multiple data types (separated by a specific deli
Month/Year month yy, mm/yy or mm/yy PERIOD, where PERIOD could be Q[1-4], Y etc.
Boolean Y or N
Price Either a floating point integer with up to six significant digits or special Bloom
These data types are referenced in the following chapters, for example in the following program names
getdata
gethistory
For example:
Type Description
If the PROGRAMFLAG header parameter is not specified, the program defaults to oneshot.
Scheduled
Scheduled requests are repeating requests, on regular schedules. They provide access to the most recent pre-calculated data and are recommend
Scheduled requests are known to Bloomberg in advance, and this may help with faster responses.
Oneshot
Oneshot requests are non-recurrent scheduled requests (meaning they run once). These requests are an effective way to get information about a l
A minimum of 15 minutes notice is required to schedule a oneshot request. A oneshot request may have a specific date and time supplied. When
The disadvantage of a oneshot request is that it may sometimes take longer to get a response than a scheduled request.
Adhoc
Adhoc requests are run immediately, gathering the latest available data. They are an effective way to get information quickly about securities.
Response times are more variable than for other modes, especially for large requests. If you include calculated fields, such as analytics, the time ta
Adhoc requests may not have a RUNTIME or RUNDATE header specifying a time or date, as these requests only run immediately.
Operation Mode Consequences
The choice of request operation mode has a consequence on scheduling features, content availability, program availability, and rate card pricing.
Scheduling Features
Feature
Notice Period
Start Delay
Content Availability
You can request any type of content in either adhoc or scheduled mode:
Reference Data
Pricing
Regulatory
Calculation Services
Security Limits
The same security limits apply for both adhoc and scheduled modes.
Program
getData
getActions
getTickHistory
getQuotes
getAllQuotes
getHistory
getSnap
getCompany
Rate Card
Pricing
Embargos
Data License (DL) is a Bulk data feed. To ensure this, both adhoc and scheduled modes are subject to embargos: requests are performed when re
All requests have a 50 second embargo. In addition, requests deemed to be too frequent in the same security are subject to an additional embarg
Program Names
Program name is a request parameter that:
Defines the program, i.e., the category of data returned by the Per Security request.
The following is the table with all the programs currently available under the Data License (DL) Per Security service:
getHistory Returns historical data for a specified list of securities within a given date ran
getQuotes Returns last execution pricing data, time stamped with date, hour, minute and
getAllQuotes Similar to getQuotes, but also returns matching ask and bid prices.
getActions Returns corporate actions for a specified list of securities (and the issuer of th
getSnap Returns pricing data with higher precision at a specified time or valuation po
scheduled Returns a report containing all recurrent requests that are currently schedule
Note:
If the PROGRAMNAME header parameter was not specified the program will be defaulted to getData.
Not all of the PROGRAMFLAG values could be used with every Program Name, please see PROGRAMFLAG documentation.
For DL+, you can only use getData. Your DL Account fulfills all other requests.
getData
The getData program returns requested data for a list of data fields and a list of securities.
Format:
Field
Identifier
Rcode
Nfields
Value-1 … Value-Nfields
Example getData Request
Text
## Sample request
# Note:
# `PROGRAMFLAG` was not specified in request, so that `PROGRAMFLAG` is
# defaulted to `oneshot` by the 'Data License' service
START-OF-FILE
FIRMNAME=your_dl_login_name
REPLYFILENAME=getdatatest.out
PROGRAMNAME=getdata
START-OF-FIELDS
NAME
TICKER
CPN
MATURITY
END-OF-FIELDS
START-OF-DATA
#Requesting the T14 Govt bond in 4 different ways
912810CY2 |CUSIP
US912810CY20 | ISIN
000863149 | VALOREN
T14 11/15/11 Govt
#Coupon and Maturity do not apply to equities, so blanks are returned
IBM US Equity
# 'Fake Equity' here is not a valid security, return code 10 and NO data is
# returned
Fake Equity
END-OF-DATA
END-OF-FILE
## Sample reply
START-OF-FILE
RUNDATE=20050509
PROGRAMFLAG=oneshot
FIRMNAME=your_dl_login_name
REPLYFILENAME=getdatatest.out
PROGRAMNAME=getdata
START-OF-FIELDS
NAME
TICKER
Overrides
With getData, you can perform calculation overrides to certain data fields. This allows you to submit data that can leverage Bloomberg standard m
The value of an overriding value field is altered to affect the return of another field. There is a limit of 19 overrides per record. Fields that are not aff
Note that if the override is used improperly, incorrect or unexpected data may be returned, or the request may not process at all.
Note: Additional fees may be incurred with use of this feature. For more details, contact your Bloomberg account representative.
Example:
XS014289826 Corp||1|SETTLE_DT|20161111|
Text
START-OF-FILE
FIRMNAME=firmabc
REPLYFILENAME=override.out
PROGRAMNAME=getdata
PROGRAMFLAG=oneshot
START-OF-FIELDS
MTG_PREPAY_TYP
MTG_PREPAY_SPEED
MTG_WAL
END-OF-FIELDS
START-OF-DATA
073914VW0 Mtge||2|MTG_PREPAY_TYP|MTG_PREPAY_SPEED|CPR|90|
END-OF-DATA
END-OF-FILE
Pricing Differences
You may see differences in price data between the responses to your getData requests and the Bloomberg Terminal®. The most common reasons
Equities:
Defaults: For historical equity pricing, the price adjustment settings on the Corporate Actions Settings (DPDF <GO>) function on the B
Exchange Defaults: If you do not specify the exchange for an equity (for example, you use ISIN US0378331005 or SEDOL 2588173 wit
Time of Request Submission: Equity prices are liquid and change throughout the day, so the information you see on the Bloomberg T
Different Data Field: The data field you are using in your request may be different than what you see on the Bloomberg Terminal func
End-of-day: End-of-day equity price updates are determined by each exchange. Check the exchange trading hours when you are de
Fixed Income:
Different Pricing Sources: If your request is not linked to the Bloomberg Terminal, you will use the default hierarchy of pricing sources
Time of Request Submission: Fixed income prices may change throughout the day, so the information you see on the Bloomberg Ter
Different Data Field: The data field you are using in your request may be different than what you see on the Bloomberg Terminal func
Indices: Index prices often require additional entitlements from the pricing provider. Without the entitlement, you may see an embargo bei
BVAL Pricing
BVAL Pricing in DL
You can access BVAL® evaluated pricing for fixed income securities via the DL getdata and gethistory programs.
The Bloomberg Valuation (BVAL) Service is an independent information source that draws on market data contributed from thousands of market p
To receive BVAL price snapshots via the getdata program, you must set specific header options in your request:
BVALTIER
BVALSNAPSHOT
BVALSNAPSHOTDATE
Snapshot date = date today PROCESS file if request was submitted prior to the cutoff time*; otherwise, REJECT
* The cutoff time is defined as 2.5 hours after the snapshot for a Tier 1 Request and the snapshot time itself for a Tier 2 request.
Feature T
Available Data A
Submit Files U
Start of processing A
Delivery Time W
Field Sets/Macros T
BVAL Tier 1
All snapshots are available for Tier 1 clients, and only BVAL prices are returned.
If you want to receive pricing for a given snapshot, you can submit requests up until 2.5 hours after the requested snapshot time.
If you select a snapshot date of today, and you submit the request after the cutoff time, the request will be rejected.
If you select no date or select a future date, the request is held and processed the following day.
Once BVAL determines a submitted request to have met the date and time restrictions, the submission is validated. If there is an error, the respons
When you have submitted a successful request prior to the snapshot time, you will receive pricing within 45 minutes after the specified snap
Files submitted after the snapshot time begin delivery after the files submitted before the snapshot time have been delivered.
If there is no BVAL price for a security on a given day, no price will be returned as indicated by N.A. in the response.
BVAL Tier 2
All snapshots are available for Tier 2 clients, and only BVAL prices are returned. You must submit your requests prior to the snapshot to receive pri
Tier 2 requests go through the same validation process as Tier 1 requests, i.e., a response is generated.
If there is no BVAL price for a security on a given day, no price will be returned as indicated by N.A. in the response.
Where:
START-OF-FILE
FIRMNAME=dlxxxxxx
REPLYFILENAME=BVAL_Tier2_Sample
CLOSINGVALUES=yes
DERIVED=yes
PROGRAMFLAG=weekday
SECID=CUSIP
SECMASTER=yes
BVALTIER=2
BVALSNAPSHOT=NY4PM
BVALSNAPSHOTDATE=20220731
PROGRAMNAME=getdata
START-OF-FIELDS
BVAL_BID_PRICE
BVAL_BID_YIELD
BVAL_BID_SCORE
END-OF-FIELDS
START-OF-DATA
459200AM3
037833BG4
END-OF-DATA
END-OF-FILE
If no snapshot is selected, i.e., PRICING_SOURCE=BVAL, the most recent BVAL price given the 2.5-hour embargo is returned. For example, a r
If a snapshot is selected, e.g., PRICING_SOURCE=BVAL:NY4PM, a request submitted at 2:30 PM NY time returns the BVAL prices from the prev
If linking to a Bloomberg Terminal®, the snapshot price returned matches your settings in the Pricing Sources (PCS <GO>) function.
As is standard with PCS requests, older prices may be returned in those instances when there is no BVAL price on a given day for a bond that prev
If PRICING_SOURCE=BVAL and EXCLUSIVE_PRICING_SRC=yes, it is possible that a BVAL price from a previous snapshot will be returned.
If PRICING_SOURCE=BVAL and EXCLUSIVE_PRICING_SRC=no, it is possible a price from a previous snapshot may be returned from either BVA
BVAL PCS Codes
As a BVAL customer, you can use any of the eight PCS (pricing source) codes:
PCS Definition
Note: The Muni and Mortgage asset classes only use BVAL, BVN3 (or BVAL:NY3PM) and BVN4 (or BVAL:NY4PM).
Where:
START-OF-FILE
FIRMNAME=dlxxxxxx
EXCLUSIVE_PRICING_SRC=yes
REPLYFILENAME=BVAL_PCS_Sample
PRICING_SOURCE=BVAL:NY4PM
CLOSINGVALUES=yes
SECID=CUSIP
SECMASTER=yes
PROGRAMNAME=getdata
START-OF-FIELDS
BVAL_BID_PRICE
BVAL_BID_SCORE
END-OF-FIELDS
START-OF-DATA
02079KAD9
64110LAV8
END-OF-DATA
END-OF-FILE
TRAC
BVAL
Return Codes
The following return codes are supported for getData:
Code Description
11 Restricted Security.
991 Invalid override value (e.g., bad date or number) or Maximum number of overrides (20) exceeded.
996 Maximum number of data points exceeded (some data for this security is missing).
A blank field is returned, because requested field and security combination is not
N.A. Data is missing, because Bloomberg does not have the data.
N.D. Not downloadable, because you do not have permission to download the field.
N.S. Not subscribed, because you 1) are not entitled to download the requested field a
Web Services
For more on Web Services: Get History (Web Services).
SFTP
Fields are listed between the START-OF-FIELDS and END-OF-FIELDS in the request. For a list of fields available in the getHistory program, see th
Responses for the getHistory program are always compressed regardless of whether COMPRESS=yes is in the request. Responses may be decomp
Use Bloomberg Corporate Actions data to get the adjustment factors and adjust accordingly.
Retrieve the fields EQY_SPLIT_ADJUSTMENT_FACTOR (Split Adjustment Factor) and EQY_DVD_ADJUST_FACT (Equity Dividend Adjustment Facto
If you are also using the Bloomberg Terminal®, replicate the settings you have in the Corporate Actions Settings (DPDF <GO>) function by li
Note: For split adjustments description, see this split adjustments article.
Response Format
The response format of a getHistory response is determined by the HIST_FORMAT header option.
Using the HIST_FORMAT header, you can specify one of the following output formats:
Horizontal: horizontal
START-OF-DATA
| <Identifier> | <Rcode> | <NumFields> | <Date-1> | <Value-1> | ... <Value-N> |
| <Identifier> | <Rcode> | <NumFields> | <Date-2> | <Value-1> | ... <Value-N> |
...
| <Identifier> | <Rcode> | <NumFields> | <Date-N> | <Value-1> | ... <Value-N> |
END-OF-DATA
Field Desc
Identifier The
Rcode The
NumFields The
The date format is mm/dd/yyyy by default, but can be overridden by the DATEFORMAT header option.
The program can retrieve up to 15,000 points of data per field, with a maximum of 60,000,000 points in horizontal format and 30,000,000
Text
START-OF-FILE
FIRMNAME=your_dl_login_name
# Compression is done automatically for ALL gethistory requests
COMPRESS=yes
REPLYFILENAME=testhistorypc.out
DATERANGE=20090504|20090508
PROGRAMNAME=gethistory
START-OF-FIELDS
PX_ASK
PX_BID
END-OF-FIELDS
START-OF-DATA
US912828KN98|ISIN
INTC US Equity
END-OF-DATA
END-OF-FILE
## Sample reply with default vertical format
START-OF-FILE
RUNDATE=20050519
PROGRAMFLAG=oneshot
FIRMNAME=your_dl_login_name
# Compression is done automatically for ALL gethistory requests
COMPRESS=yes
REPLYFILENAME=testhistorypc.out
DATERANGE=20090504|20090508
PROGRAMNAME=gethistory
START-OF-FIELDS
PX_ASK
PX_BID
END-OF-FIELDS
TIMESTARTED=Mon May 18 10:14:30 EDT 2009
START-OF-DATA
START SECURITY|US912828KN98 | PX_ASK |
US912828KN98|05/04/2009|99.296875|
US912828KN98|05/05/2009|99.1875|
US912828KN98|05/06/2009|99.171875|
US912828KN98|05/07/2009|98.609375|
Text
START-OF-FILE
FIRMNAME=your_dl_login_name
# Compression is done automatically for ALL gethistory requests
COMPRESS=yes
REPLYFILENAME=testhistorypc.out
DATERANGE=20090504|20090508
# HIST_FORMAT has been set to 'horizontal'
HIST_FORMAT=horizontal
PROGRAMNAME=gethistory
START-OF-FIELDS
PX_ASK
PX_BID
END-OF-FIELDS
START-OF-DATA
US912828KN98|ISIN
INTC US Equity
END-OF-DATA
END-OF-FILE
## Sample reply file with option horizontal format
START-OF-FILE
RUNDATE=20050519
PROGRAMFLAG=oneshot
FIRMNAME=your_dl_login_name
# Compression is done automatically for ALL gethistory requests
COMPRESS=yes
REPLYFILENAME=testhistorypc.out
DATERANGE=20090504|20090508
# HIST_FORMAT has been set to 'horizontal'
HIST_FORMAT=horizontal
PROGRAMNAME=gethistory
START-OF-FIELDS
PX_ASK
PX_BID
END-OF-FIELDS
TIMESTARTED=Mon May 18 10:15:17 EDT 2009
START-OF-DATA
US912828KN98|0|2|05/04/2009|99.296875|99.28125|
US912828KN98|0|2|05/05/2009|99.1875|99.171875|
US912828KN98|0|2|05/06/2009|99.171875|99.15625|
US912828KN98|0|2|05/07/2009|98 609375|98 59375|
Overrides
With getHistory, you can perform calculation overrides to fundamental data fields. This allows you to submit data that can leverage Bloomberg s
Example:
SALES_REV_TURN|1|AE|E|
Actuals or Estimates AE
Label L
BVAL Pricing
BVAL Pricing in DL
You can access BVAL® evaluated pricing for fixed income securities via the DL getdata and gethistory programs.
The Bloomberg Valuation (BVAL) Service is an independent information source that draws on market data contributed from thousands of market p
BVAL snapshot
BVAL as the pricing source (PCS)
The code example below shows a historical request for the BVN4 bid prices and BVAL scores from January to July 2022 for an Amazon callable bo
Where:
DATERANGE= defines the start and end dates of the range for the requested data.
START-OF-FILE
FIRMNAME=dlxxxxxx
COMPRESS=yes
REPLYFILENAME=BVAL_GetHistory_Sample
PRICING_SOURCE=BVAL:NY4PM
DATERANGE=YYYYMMDD|YYYYMMDD
SECID=CUSIP
PROGRAMNAME=gethistory
START-OF-FIELDS
BVAL_BID_PRICE
BVAL_BID_SCORE
END-OF-FIELDS
START-OF-DATA
023135CH7
END-OF-DATA
END-OF-FILE
NOTE
These instructions assume you already understand the basics of using the API to define, submit and maintain data set requests. You can request any field in the Fu
You can gauge past performance as well as future expectations for large cap tech companies with two requests, thereby acquiring data for a earni
The following example provides ten years of historical data (i.e., from Jan 1, 2014 to the current date) as well as two years of forward-looking estima
Revenue
Diluted EPS
Gross Margin
Operating Margin
Last Price
1. Request actual, reported data for historical dates (i.e., from Jan 1, 2014 until the current date).
HINT
Field List (i.e., START-OF-FIELDS): does not include any overrides because the service returns A for actual reported data for Jan 1
Headers:
DATE_TYPE, FA_ADJUSTED, and FA_PERIOD: show the default values for each option.
FIRMNAME: enter your Data License account number, provided by your Implementation Specialist.
DLWS (XML)
Field List (i.e., <ns:fields>): does not include any overrides because the service returns a for actual reported data for Jan 1, 2014
Headers: <ns:date_type>, <ns:fa_adjusted>, and <ns:fa_period>: show the default values for each option.
For more: Request Headers.
XML
2. Request consensus estimates for historical and future dates (i.e., from Jan 1, 2014 until the current date).
HINT
excludes the override to request actual reported values from Jan 1, 2014 to the current date.
Headers:
DATE_TYPE, FA_ADJUSTED, and FA_PERIOD: show the default values for each option.
FIRMNAME: enter your Data License account number, provided by your Implementation Specialist.
DLWS (XML)
Field List (i.e., <ns:fields>): includes the <ns:value>E</ns:value> override to request historical and future estimates from Jan
Headers: <ns:date_type>, <ns:fa_adjusted>, and <ns:fa_period>: show the default values for each option.
For more: Request Headers.
XML
1 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://services.bloomberg.
2 <soapenv:Header/>
3 <soapenv:Body>
4 <ns:submitGetHistoryRequest>
5 <ns:headers>
6
7 <ns:daterange>
8
9 <ns:period>
10 <ns:start>2014-01-01</ns:start>
11 <ns:end>2026-05-31</ns:end>
12 </ns:period>
13 </ns:daterange>
14
15 <ns:programflag>adhoc</ns:programflag>
16 <ns:display_pricing_src>true</ns:display_pricing_src>
17 <ns:fa_adjusted>N</ns:fa_adjusted>
18 <ns:fa_period_type>Q</ns:fa_period_type>
19 <ns:date_type>periodend</ns:date_type>
20
21 </ns:headers>
22 <ns:fields>
23
24 <ns:field>SALES_REV_TURN</ns:field>
25
26 <ns:fieldWithOverrides>
27 <ns:id>SALES_REV_TURN</ns:id>
28 <ns:override>
29 <ns:key>AE</ns:key>
30 <ns:value>E</ns:value>
31 </ns:override>
32 </ns:fieldWithOverrides>
33
34 <ns:field>IS_OPER_INC</ns:field>
35
36 <ns:fieldWithOverrides>
37 <ns:id>IS_OPER_INC</ns:id>
38 <ns:override>
39 <ns:key>AE</ns:key>
40 <ns:value>E</ns:value>
41 </ns:override>
42 </ns:fieldWithOverrides>
43
You can gauge past performance for large cap consumer discretionary companies (i.e., retailers) with a single request.
The following example provides five years of quarterly, historical data (i.e., from Jan 1, 2019 to the current date) for the following fundamental metr
Revenue
Diluted EPS
Gross Margin
Operating Margin
Request actual, reported data for historical dates (i.e., from Jan 1, 2019 until the current date).
HINT
Note the following options within the request:
SFTP (Bash)
Field List (i.e., START-OF-FIELDS): does not include any overrides because the service returns A for actual reported data for Jan 1, 2014 u
Headers:
DATE_TYP, FA_ADJUSTED, and FA_PERIOD: show the default values for each option.
FIRMNAME: enter your Data License account number, provided by your Implementation Specialist.
DLWS (XML)
Field List (i.e., <ns:fields>): does not include any overrides because the service returns a for actual reported data for Jan 1, 2014 until t
Headers: <ns:date_type>, <ns:fa_adjusted>, and <ns:fa_period>: show the default values for each option.
XML
Limitations
Large-Cap Energy Company Fundamentals
Request Composition
You can gauge past performance for large cap energy (i.e., oil) companies with a single request.
Data Types
The following example Mode
Request Operation provides ten years of quarterly, historical data (i.e., from Jan 1, 2014 to the current date) for the following fundamental metr
Program Names
Revenue
getData
Operating Income or Losses
getHistory
NetgetTickHistory
Income/Net Profit (Losses)
getActions
Basic Earnings per Share
getcompany
Diluted EPS
getsnap
Gross Margin
getQuotes
Operating Margin
getAllQuotes
cancel
Price to Sales Ratio
cancel_all
Current Price to Free Cash Flow
Request Headers
Net Debt/EBITDA
Response Messages
Enterprise Value/EBITDAX
Links to a Bloomberg Terminal
Request
Request Builder
actual, reported data for historical dates (i.e., from Jan 1, 2019 until the current date).
Bulk Datasets
Cloud Delivery
HINT
Licensing
Note the following options within the request:
SFTP (Bash)
Support
Field List (i.e., START-OF-FIELDS): does not include any overrides because the service returns A for actual reported data for Jan 1, 2014 u
Headers:
DATE_TYPE and FA_PERIOD: show the default values for each option.
FA_ADJUSTED: shows yes to request to request Bloomberg Enhanced Fundamentals data. Bloomberg Enhanced Fundamentals p
FIRMNAME: enter your Data License account number, provided by your Implementation Specialist.
DLWS (XML)
Field List (i.e., <ns:fields>): does not include any overrides because the service returns A for actual reported data for Jan 1, 2014 until t
Headers:
<ns:date_type> and <ns:fa_period>: show the default values for each option.
<ns:fa_adjusted>>: shows Y to request to request Bloomberg Enhanced Fundamentals data. Bloomberg Enhanced Fundamen
XML
<ns:daterange>
<ns:period>
<ns:start>2014-01-01</ns:start>
<ns:end>2026-05-31</ns:end>
</ns:period>
13 </ns:daterange>
14
15 <ns:programflag>adhoc</ns:programflag>
16 <ns:display_pricing_src>true</ns:display_pricing_src>
17 <ns:fa_adjusted>Y</ns:fa_adjusted>
18 <ns:fa_period_type>Q</ns:fa_period_type>
19 <ns:date_type>reported</ns:date_type>
20
21 </ns:headers>
22 <ns:fields>
23
24 <ns:field>SALES_REV_TURN</ns:field>
25 <ns:field>IS_OPER_INC</ns:field>
26 <ns:field>NET_INCOME</ns:field>
27 <ns:field>IS_EPS</ns:field>
28 <ns:field>IS_DILUTED_EPS</ns:field>
29 <ns:field>GROSS_MARGIN</ns:field>
30 <ns:field>OPER_MARGIN</ns:field>
31 <ns:field>PX_TO_SALES_RATIO</ns:field>
32 <ns:field>CURRENT_PX_TO_FREE_CASH_FLOW</ns:field>
33 <ns:field>NET_DEBT_TO_EBITDA</ns:field>
34 <ns:field>EV_TO_EBITDA</ns:field>
35
36 </ns:fields>
37 <ns:instruments>
38
39 <ns:instrument>
40 <ns:id>XOM US Equity</ns:id>
41 </ns:instrument>
42 <ns:instrument>
43 <ns:id>CVX US Equity</ns:id>
Return Codes
The following return codes are supported for getHistory:
Code Descriptions
-13 Field, security, date range, or pricing source combination is not applicable. For example, PX_EVAL_LEGACY only applies for securitie
11 Restricted Security.
994 You do not have permission (contractual) to download history for this security.
995 Maximum number of fields exceeded (i.e., 100 fundamental/industry-specific fields and 450 total fields). For more: Limitations.
996 Maximum number of data points exceeded (some data for this security is missing).
For getHistory requests that include one or more fundamental/industry-specific fields, the maximum is 1000 securities and 10 years
For horizontal format requests, the maximum is 60,000,000 data points.
For vertical format requests, the maximum is 30,000,000 data points.
For more: Limitations.
(1) This return code is only applicable to the vertical output format.
If HIST_FORMAT=horizontal and the field requested is not available in getHistory, the field will return N.A..
Return Code Example 1: 1001 securities, 100 fundamentals/industry-specific fields, 10 years of data
The following truncated response is an example of the return codes for horizontal and vertical format requests that exceed the 1000 security limit.
BASH
1 ############################################################################
2 ## There were errors and/or warnings detected within the request file, please
3 ## correct and then resubmit the resulting file.
4 ##
5 ## Max limit of 1000 securities. Securities over the limit are indicated using RC=996.
6
7 security1|0|100|date1|f1|....|f100|
8 security2|0|100|date1|f1|....|f100|
9 ....
10 security1000|0|100|date1|f1|....|f100|
11 security1001|996|100||...|
BASH
1 ############################################################################
2 ## There were errors and/or warnings detected within the request file, please
3 ## correct and then resubmit the resulting file.
4 ##
5 ## Max limit of 1000 securities. Securities over the limit are indicated using RC=996.
6
7 start-of-security1|security1|field1|
8 end-of-security|security1|field1|0|
9 ....
10
11 start-of-security1|security1000|field100|
12 end-of-security|security1000|field100|0|
13
14 start-of-security|security1001|field1|
15 end-of-security|security1001|field100|996|
16 ...
17 start-of-security|security1001|field100|
18 end-of-security|security1001|field100|996|
Return Code Example 2: 1001 securities, 200 pricing fields, 150 fundamentals/industry-specific fields, 10 years of data
The following truncated response is an example of the return codes for horizontal and vertical format requests that exceed the 100 fundamentals/
BASH
1 ############################################################################
2 ## There were errors and/or warnings detected within the request file, please
3 ## correct and then resubmit the resulting file.
4 ##
5 ## Max limit of 1000 securities. Securities over the limit are indicated using RC=996.
6 ## Max limit of 100 Fundamentals, Estimates and FundamentalsIndustrySpecific fields. Rows over the limit are ind
7
8 start-of-fields
9 p1
10
10
11 f1
12 ...
13 p100
14 f100
15 p101
16 p102
17 ...
18 p200
19 end-of-fields
20
21 security1|995|100|date1|p1|f1|..|p100|f100|p101|p102|....|p200|
22 security2|995|100|date1|p1|f1|..|p100|f100|p101|p102|....|p200|
23 ....
24 security1000|995|100|date1|p1|f1|..|p100|f100|p101|p102|....|p200|
security1001|996|100||...|
BASH
1 ############################################################################
2 ## There were errors and/or warnings detected within the request file, please
3 ## correct and then resubmit the resulting file.
4 ##
5 ## Max limit of 1000 securities. Securities that have no data returned are indicated using RC=996.
6 ## Max limit of 100 Fundamentals, Estimates and FundamentalsIndustrySpecific fields. Rows over the limit are ind
7
8 start-of-security1|security1|p1|
9 date|value
10 end-of-security|security1|p1|0|
11
12 start-of-security1|security1|f1|
13 date|value
14 end-of-security|security1|f1|0|
15
16 start-of-security1|security1|f100|
17 date|value
18 end-of-security|security1|f100|0|
19
20 start-of-security|security1|f101|
21 end-of-security|security1|f101|995|
22
23 ...
24 start-of-security1|security1|f150|
25 end-of-security|security1|f150|995|
26
27 start-of-security1|security1001|f1|
28 end-of-security|security1001|f1|996|
29
30 ....
31
32 start-of-security1|security1001|field150|
33 end-of-security|security1001|field100|996|
34 ---------
Return Code Example 3: 100 securities, 200 pricing fields, 100 fundamentals/industry-specific fields, 25 years of data
The following truncated response is an example of the return codes for horizontal and vertical format requests that exceed the 10-year limit (i.e., Ja
BASH
1 ############################################################################
2 ## There were errors and/or warnings detected within the request file, please
3 ## correct and then resubmit the resulting file.
4 ##
5 ## Max limit of 10yrs of history. Securities over 10yrs are indicated using RC=996.
6
7 security1|0|300|20100101|p1|f1|..|p100|f100|p101|p102|....|p200|
8
8
...
9
security1|0|300|20191231|p1|f1|..|p100|f100|p101|p102|....|p200|
10
security1|996|300|..|
11
...
12
security2|0|300|20100101|p1|f1|..|p100|f100|p101|p102|....|p200|
13
security2|0|300|20191231|p1|f1|..|p100|f100|p101|p102|....|p200|
14
...
15
security2|996|300|..|
16
17
security100|0|300|20100101|p1|f1|..|p100|f100|p101|p102|....|p200|
18
security100|0|300|20191231|p1|f1|..|p100|f100|p101|p102|....|p200|
19
....
20
security100|996|300|..|
BASH
1 ############################################################################
2 ## There were errors and/or warnings detected within the request file, please
3 ## correct and then resubmit the resulting file.
4 ##
5 ## Max limit of 1000 securities. Securities that have no data returned are indicated using RC=996.
6 ## Max limit of 100 Fundamentals, Estimates and FundamentalsIndustrySpecific fields. Rows over the limit are ind
7 ## Max limit of 10yrs of history. Returning history entered between 20100101 and 20191231
8
9 start-of-security1|security1|p1|
10 date|value
11 end-of-security|security1|p1|996|
12
13 start-of-security1|security1|f1|
14 date|value
15 end-of-security|security1|f1|996|
16
17 ....
18
19 start-of-security1|security1|p200|
20 date|value
21 end-of-security|security1|p200|996|
22 ---------
getTickHistory
The tickhistory program provides access to historical intraday trades and/or quotes for multiple asset classes.
Features include:
Support for global equities, currencies, futures, options , swaps , GSAC fixed income bonds
Intraday GSAC fixed income bonds tick data starting Jan 1st 2013
Coverage file included to validate row counts for both quotes and trades
Request should have a start date no earlier than Jan 1st 2008
All responses will always be compressed. The current SFTP limit for a file is 2 GB of data (20GB uncompressed)
For GSAC bonds, the following pricing sources are supported: BGN, CBBT, TRAC and Bloomberg’s MTF.
Tickers with reserved characters will have the characters removed in the output file NAME E.g. B/BF UN Equity will be converted to BBF UN
Bloomberg supports generic ticker to access underlying futures data. This feature allows customers to request a generic ticker with a date range a
E.g.
Note: the tick data within the file will always be sourced from the underlying future and will be represented as such.
NOTE
For customers who want to use generic tickers to observe how futures roll from one contract to another; it’s recommended to request both the generic 1st and 2nd
HINT
For larger file limits, consider upgrading to Bloomberg’s Rest API and/or Cloud delivery.
Request Headers
For instructions on establishing a date and time range, selecting output format and type of data see the DATETIMERANGE, OUTPUT_MEDIA_TYPE
Notes:
All DateTime fields are in UTC for both request and response.
Responses from the program are in tar format with multiple files separated by security.
The COMPRESS request parameter for the gettickhistory will return file in .tar.gz format.
NOTE
DATERANGE will allow you to capture the entire day or date range ticks. DATETIMERANGE is used for request that require ticks in a specific time period during th
Responses may be decompressed using the Unix tool tar or WinZip on a PC.
Request Structure
Requests must follow this structure:
Request Header: Contains information that identifies the customer, the type of request to run, the time to run the request, and other option
End Tag: END-OF-FILE defines the end of the per security request file. It must be the last record in the request. If you do not contain this tag
Request Format
A valid call to the getickhistory program must include the appropriate header options, fields, and instruments for which you want to retrieve data.
Text
START-OF-FILE
FIRMNAME=your_dl_login_name
REPLYFILENAME=your_reply_file_name
PROGRAMNAME=gettickhistory
DATETIMERANGE=20220901_12:00:00|20220902_12:00:00
CONTENTTYPE=quotes&trades
OUTPUT_MEDIA_TYPE=application/x-tar;archive-media-type=gzip-csv
PROGRAM FLAG=adhoc
START-OF-DATA
IBM US Equity|TICKER
BBG014N13QC8|BB_GLOBAL
DD103619@TRAC Corp
BV876440@BGN Corp
BX922954@CBBT Corp
AXP US Equity
CMG US Equity
XOM US Equity
VOD LN Equity
NESN SW Equity
ROG SW Equity
CAP FP Equity
DBK GY Equity
EURUSD BGN Curncy|
VOD 2.95 02/19/2023 Corp|TICKER|1|PRICING_SOURCE|CBBT
VOD 2.95 02/19/2023 Corp|TICKER|1|PRICING_SOURCE|BGN
H4HD3Z Index
END-OF-DATA
END-OF-FILE
The .tar extension will be added to the output file if it’s not provided in REPLYFILENAME
The .tar file contains multiple output files for each security broken out by trades and quotes
If any file is greater than 1GB, it will be partitioned into multiple file’s.
Within the .tar file, if a security has no data, you will not see an associated quote/trade file
metadata
<request_file_name or REPLYFILENAME>_coverage.csv.gz
<request_file_name or REPLYFILENAME>_<security>_<override1Value>_…_<overrideNValue>_<trade/quotes>_<partition_number>_
Samples:
without overrides
Security
without overrides
security from request file.
security_override1_…_overrideN
Samples:
security,securityRc,tradesCount,quotesCount
MSFT US Equituy,0,100,1302
security,securityRc,tradesCount,quotesCount
EUR Curncy_CMPL,0,0,1302
EUR Curncy_BGN,0,0,1302
Trades Schema
Field Name
SECURITY
TICK_SEQUENCE_NUMBER
TICK_TYPE
EVT_TRADE_TIME
TRADE_REPORTED_TIME
EVT_TRADE_EXECUTION_TIME
EVT_TRADE_IDENTIFIER
EVENT_ORIGINAL_TRADE_ID
EVENT_ORIGINAL_TRADE_TIME
EVT_TRADE_PRICE
EVT_TRADE_SIZE
EVT_TRADE_LOCAL_EXCH_SOURCE
EVT_TRADE_CONDITION_CODE
EVT_TRADE_BUY_BROKER
EVT_TRADE_SELL_BROKER
TRACE_RPT_PARTY_SIDE_LAST_TRADE
EVT_TRADE_RPT_PARTY_TYP
EVT_TRADE_BIC
EVT_TRADE_MIC
EVT_TRADE_ESMA_TRADE_FLAGS
EVT_TRADE_AGGRESSOR
EVT_TRADE_RPT_CONTRA_TYP
EVT_TRADE_REMUNERATION
EVT_TRADE_ATS_INDICATOR
Quotes Schema
Field Name
SECURITY
TICK_SEQUENCE_NUMBER
TICK_TYPE
EVT_QUOTE_BID_TIME
EVT_QUOTE_BID_PRICE
EVT_QUOTE_BID_SIZE
EVT_QUOTE_BID_CONDITION_CODE
EVT_QUOTE_BID_LOCAL_EXCH_SRC
UPFRONT_QUOTED_BID_PRICE
EVT_QUOTE_ASK_TIME
EVT_QUOTE_ASK_PRICE
EVT_QUOTE_ASK_SIZE
EVT_QUOTE_ASK_CONDITION_CODE
EVT_QUOTE_ASK_LOCAL_EXCH_SRC
UPFRONT_QUOTED_ASK_PRICE
To manage efficient delivery, Gettickhistory maintains a 2GB compressed (20GB uncompressed) limit for SFTP delivery. If a request breach
This error response file will have information about estimated size in MB for each security.
Clients can submit another request by further splitting the file by securities or by reducing the date range.
Response format:
<requestfilename or replyfilename.tar
<requestfilename or replyfilename>_out.err
e.g:
File schema:
security_name|error_code|estimated_quotes_size_in_MB|estimated_trades_size_in_MB
Text
#############################################################################
## There were errors detected within the request file, please correct them
## and resubmit the resulting file.
##
## Source: your_dl_login_name
##
## The following errors were found:
##
## Estimated output size 3686.46 MB exceeds the allowed output size 2048.00 MB.
##
## Please reduce the request either by
## o Reducing the time range of the request.
## o Reducing the number of securities in the request.
##
## Please check the estimated output size for each security requested in Estimated Request File section below.
##
## Estimated Response File format is:
##
## security_name|error_code|estimated_quotes_size_in_MB|estimated_trades_size_in_MB
##
## Error Code Reference:
## o 0 valid security
## o ANY OTHER NUMBER invalid security
##
## Please consult the product documentation for more information on
## the error codes.
##
##
#############################################################################
## Estimated Request file:
#############################################################################
START-OF-FILE
FIRMNAME=your_dl_login_name
PROGRAMNAME=gettickhistory
DATETIMERANGE=2021-01-01_00:00:00|2022-01-05_23:59:59
CONTENTTYPE=quotes&trades
REPLYFILENAME=msftticks
OUTPUT_MEDIA_TYPE=application/x-tar;archive-media-type=gzip-csv
START-OF-DATA
MSFT US Equity|0|1463.19|2223.27
END-OF-DATA
END-OF-FILE
Return Codes
Code Description
11 Restricted Security.
CSV
1 SECURITY,TICK_SEQUENCE_NUMBER,TICK_TYPE,EVT_TRADE_TIME,TRADE_REPORTED_TIME,EVT_TRADE_EXECUTION_TIME,EVT_TRADE_ID
2 AAPL US Equity,51854,NEW,2022-01-12T13:50:00.866Z,2022-01-12T13:50:00.866Z,,m: -t:6320,,,176.420000,10,UQ,"FT,R6
3 AAPL US Equity,51855,NEW,2022-01-12T13:50:00.866Z,2022-01-12T13:50:00.866Z,,m: -t:6321,,,176.420000,1,UQ,"FT,R6,
4 AAPL US Equity,51856,NEW,2022-01-12T13:50:00.866Z,2022-01-12T13:50:00.866Z,,m: -t:1981,,,176.420000,10,VK,"FT,R6
5 AAPL US Equity,51862,NEW,2022-01-12T13:50:04.375Z,2022-01-12T13:50:04.375Z,,m: -t:4535,,,176.410000,4,UP,"FT,R6,
6 AAPL US Equity,51866,NEW,2022-01-12T13:50:06.014Z,2022-01-12T13:50:06.014Z,,m: -t:6322,,,176.430000,1,UQ,"FT,R6,
7 AAPL US Equity,51868,NEW,2022-01-12T13:50:08.545Z,2022-01-12T13:50:08.545Z,,m: -t:6323,,,176.430000,5,UQ,"FT,R6,
8 AAPL US Equity,51872,NEW,2022-01-12T13:50:09.559Z,2022-01-12T13:50:09.559Z,,m:Q-t:839,,,176.430000,2,UD,"FT,Q,OL
9 AAPL US Equity,51875,NEW,2022-01-12T13:50:10.006Z,2022-01-12T13:50:10.006Z,,m: -t:6324,,,176.430000,75,UQ,"FT,R6
10 AAPL US Equity,51877,NEW,2022-01-12T13:50:10.006Z,2022-01-12T13:50:10.006Z,,m: -t:6325,,,176.430000,75,UQ,"FT,R6
11 AAPL US Equity,51881,NEW,2022-01-12T13:50:10.006Z,2022-01-12T13:50:10.006Z,,m: -t:6326,,,176.430000,75,UQ,"FT,R6
12 AAPL US Equity,51888,NEW,2022-01-12T13:50:11.446Z,2022-01-12T13:50:11.446Z,,m: -t:6327,,,176.430000,8,UQ,"FT,R6,
13 AAPL US Equity,51889,NEW,2022-01-12T13:50:11.446Z,2022-01-12T13:50:11.446Z,,m: -t:6328,,,176.430000,61,UQ,"FT,R6
14 AAPL US Equity,51891,NEW,2022-01-12T13:50:11.446Z,2022-01-12T13:50:11.446Z,,m: -t:4536,,,176.430000,142,UP,"FT,R
15 AAPL US Equity,51894,NEW,2022-01-12T13:50:12.087Z,2022-01-12T13:50:12.087Z,,m: -t:4537,,,176.420000,1,UP,"FT,OL"
16 AAPL US Equity,51897,NEW,2022-01-12T13:50:12.573Z,2022-01-12T13:50:12.573Z,,m: -t:6329,,,176.420000,1,UQ,"FT,OL"
17 AAPL US Equity,51898,NEW,2022-01-12T13:50:12.596Z,2022-01-12T13:50:12.596Z,,m: -t:600,,,176.430000,1,UF,"FT,OL",
18 AAPL US Equity,51900,NEW,2022-01-12T13:50:13.296Z,2022-01-12T13:50:13.296Z,,m:N-t:171,,,176.439900,100,UD,"FT,N"
19 AAPL US Equity,51901,NEW,2022-01-12T13:50:13.454Z,2022-01-12T13:50:13.454Z,,m: -t:1982,,,176.430000,7,VK,"FT,OL"
20 AAPL US Equity,51910,NEW,2022-01-12T13:50:15.509Z,2022-01-12T13:50:15.509Z,,m: -t:6330,,,176.430000,1,UQ,"FT,OL"
CSV
1 SECURITY,TICK_SEQUENCE_NUMBER,TICK_TYPE,EVT_QUOTE_BID_TIME,EVT_QUOTE_BID_PRICE,EVT_QUOTE_BID_SIZE,EVT_QUOTE_BID_
2 AAPL US Equity,51859,BID,2022-01-12T13:50:01.095Z,176.410000,1,,UP,,,,,,,
3 AAPL US Equity,51863,BID,2022-01-12T13:50:04.375Z,176.400000,1,,UF,,,,,,,
4 AAPL US Equity,51867,ASK,,,,,,,2022-01-12T13:50:06.014Z,176.430000,2,,UQ,
5 AAPL US Equity,51876,ASK,,,,,,,2022-01-12T13:50:10.006Z,176.430000,1,,UQ,
6 AAPL US Equity,51880,ASK,,,,,,,2022-01-12T13:50:10.006Z,176.440000,5,,UQ,
7 AAPL US Equity,51883,ASK,,,,,,,2022-01-12T13:50:10.007Z,176.430000,1,,UP,
8 AAPL US Equity,51886,BID,2022-01-12T13:50:10.866Z,176.400000,6,,VK,,,,,,,
9
10 AAPL US Equity,51892,ASK,,,,,,,2022-01-12T13:50:11.446Z,176.440000,5,,UQ,
11 AAPL US Equity,51908,BID,2022-01-12T13:50:15.466Z,176.420000,1,,UQ,,,,,,,
12 AAPL US Equity,51911,BID,2022-01-12T13:50:15.509Z,176.400000,6,,VK,,,,,,,
13 AAPL US Equity,51917,ASK,,,,,,,2022-01-12T13:50:15.893Z,176.480000,4,,VG,
14 AAPL US Equity,51922,BID,2022-01-12T13:50:17.036Z,176.420000,1,,UQ,,,,,,,
15 AAPL US Equity,51926,BID,2022-01-12T13:50:18.011Z,176.440000,1,,UF,,,,,,,
16 AAPL US Equity,51930,BID,2022-01-12T13:50:18.617Z,176.440000,1,,UP,,,,,,,
17 AAPL US Equity,51932,ASK,,,,,,,2022-01-12T13:50:18.944Z,176.470000,1,,VK,
18 AAPL US Equity,51957,BID,2022-01-12T13:50:19.224Z,176.410000,1,,UP,,,,,,,
19 AAPL US Equity,51961,BID,2022-01-12T13:50:19.224Z,176.400000,6,,VK,,,,,,,
20 AAPL US Equity,51983,ASK,,,,,,,2022-01-12T13:50:22.513Z,176.450000,1,,UF,
AAPL US Equity,51986,ASK,,,,,,,2022-01-12T13:50:22.513Z,176.470000,1,,VK,
For example, specifying IBM US Equity in a getActions request returns actions specific to that common stock (e.g., a cash dividend) as well as act
Format:
Field Description
Bloomberg Security ID A number that in combination with Bloomberg Company ID identifies a security.
Flag The status of the action at the moment of the request. Returns N for an action that has
Note 1: You should load actions with the first appearance of an Action ID whether the
Note 2: If D is returned as a Flag, CP_DELETE_REASON is provided as the only non-st
Note 3: If an action appears for the first time with a D flag, you should not load the ac
Market Sector Description The name of the market sector yellow key on the Bloomberg Terminal that the securit
Amd-date The date when the corporate action was updated. Valid only when Flag is U, otherwis
Bloomberg Global ID A unique global identifier assigned by Bloomberg for all securities across asset classe
Bloomberg Global Company ID The Bloomberg global identifier (BBGID) for the company level entity.
Bloomberg Security ID Number A unique Bloomberg name for all Bloomberg securities on a given yellow key.
Feed Source The market data source field for the B-Pipe feed. Designed to work with Bloomberg S
Header Parameters
The ACTIONS_DATE header parameter is essential:
By default, Bloomberg matches the securities in the request with corporate actions that were entered into the Bloomberg database in the 2
The ACTIONS_DATE parameter can also modify whether the response returns actions based on effective date, entry date, or both. Actions tha
Additional options are available to control action types and date ranges:
ACTIONS: Specifies action types or action categories. This line cannot be more than 254 characters in length and cannot exceed 128 specifi
DATERANGE: Allows you to retrieve actions (based on entry date, effective date, or both) up to a maximum of seven days prior to the reque
For the fields returned for each action type, see the dataset corporate_actions_layout.xlsx in the Notices folder in your home directory
For all possible returns for each corporate action field, see the dataset lookup.out located in the root folder of your Data License SFTP acco
Action Category codes C and S indicate whether an action is a (S) ecurity level action or a (C) ompany/Issuer level action.
Action Category
CORPORATE_EVENTS
Corporate Action
Name Change
Equity Delisting
Shareholder Meeting
Domicile Change
Change in Listing
Equity Listing
Reconvention
ID Number Change
Redenomination
CAPITAL_CHANGE
Corporate Action
Spin-off
Divestiture
Funged Issues
Bankruptcy Filing
Extendible Issues
Stock Buyback
Reclassification
Equity Offering
Debt Repurchase
Default Resolution
Debt Redemption/Put
Debt Offering/Increase
Exchange Offers
Equity Redemption
Debt Offering/New
Pay in Kind
Consent Solicitation
Rights Offering
Acquisition
DISTRIBUTIONS
Corporate Action
Cash Dividends
Stock Dividend
Stock Split
MUNIS
Corporate Action
Muni Redemption/Put
Muni Default
Corporate Action
Muni Redemption/Call
Muni Refunding
Return codes
The following return codes are supported for getActions:
Code Description
11 Restricted Security.
400 Corporate actions are not applicable for requested security (e.g., CMO)
996 Maximum number of data points exceeded (some data for this security is missing)
Text
START-OF-FILE
FIRMNAME=your_dl_login_name
REPLYFILENAME=TestActions.out
# Looking for Ticker Changes on the specified securities
ACTIONS=CHG_TKR
# Returning actions based on BOTH entry and effective dates
ACTIONS_DATE=both
DATERANGE=20130315|20130322
PROGRAMNAME=getactions
START-OF-DATA
# Three equities and one unknown security
# The two below securities had actions within this date range
MIH PM Equity
LPH US Equity
# A return code of 300 indicates there is no corporate action for this security
IBM Equity
# A return code of 10 indicates that Bloomberg did not recognize the security
Fake Equity
END-OF-DATA
END-OF-FILE
## Sample reply file
### Note that each corporate action is returned as one record. There are also no empty lines between corporate ac
START-OF-FILE
PROGRAMFLAG=oneshot
FIRMNAME=your_dl_login_name
REPLYFILENAME=TestActions.out
# Looking for Ticker Changes on the specified securities
ACTIONS=CHG_TKR
# Returning actions based on BOTH entry and effective dates
ACTIONS_DATE=both
DATERANGE=20130315|20130322
PROGRAMNAME=getactions
getcompany
This program returns company/entity level data such as industry classification, country of risk, and country of domicile for a given security/compan
The program supports requests by security/ticker or by entity/company ID. This program requires the inclusion of header option CREDITRISK=Yes
Format:
Field
Identifier
Rcode
Nfields
Value-1 … Value-Nfields
Return Codes
The following return codes are supported for getcompany:
Code Description
12 Bloomberg cannot find the security and the identifier syntax/format is incorrect
996 Maximum number of data points exceeded (some data for this security is missing)
Text
## Sample getcompany **Request** file using Security
# Note:
# `PROGRAMFLAG` was not specified in request, so that `PROGRAMFLAG` is
# defaulted to `oneshot` by the 'Data License' service
START-OF-FILE
FIRMNAME=your_dl_login_name
REPLYFILENAME=getcompanytest.out
PROGRAMNAME=getcompany
START-OF-FIELDS
ID_BB_COMPANY
CNTRY_OF_RISK
IS_ULT_PARENT
END-OF-FIELDS
START-OF-DATA
IBM US Equity
END-OF-DATA
END-OF-FILE
## Sample getcompany **Reply** file using Security
START-OF-FILE
PROGRAMFLAG=oneshot
FIRMNAME=your_dl_login_name
REPLYFILENAME=getcompanytest.out
CREDITRISK=yes
PROGRAMNAME=getcompany
START-OF-FIELDS
ID_BB_COMPANY
CNTRY_OF_RISK
IS_ULT_PARENT
END-OF-FIELDS
Sample request and reply for getcompany request using a company ID.
Text
START-OF-FILE
FIRMNAME=your_dl_login_name
REPLYFILENAME=getcompany_id_bb.out
SECID=BB_COMPANY
PROGRAMNAME=getcompany
START-OF-FIELDS
ID_BB_COMPANY
LONG_COMP_NAME
CNTRY_OF_RISK
IS_ULT_PARENT
END-OF-FIELDS
START-OF-DATA
100801
END-OF-DATA
END-OF-FILE
## Sample getcompany **Reply** file using Company
START-OF-FILE
RUNDATE=20090518
PROGRAMFLAG=oneshot
FIRMNAME=your_dl_login_name
REPLYFILENAME=getcompany_id_bb.out
CREDITRISK=yes
SECID=BB_COMPANY
PROGRAMNAME=getcompany
START-OF-FIELDS
ID_BB_COMPANY
LONG_COMP_NAME
CNTRY_OF_RISK
IS_ULT_PARENT
END-OF-FIELDS
getsnap
getsnap offers a service to address clients who need an asset price returned at a more precise time or at the time of valuation point. getsnap is av
The Snapshot service also supports reference data requests (in Security Master Category) in addition to pricing data. The getsnap program return
DELAY_LIMIT allows additional controls to be imposed on a request containing securities with mixed embargo times. This header allows the user t
Format:
<Identifier>|<Rcode>|<Nfields>|PX_OPEN|PX_HIGH|PX_LOW|PX_BID|PX_MID|PX_ASK|
YLD_YTM_BID|YLD_YTM_MID|YLD_YTM_ASK|PX_LAST|LAST_YIELD_VALUE|LAST_UPDATE|
PRIOR_CLOSE_MID|PX_CLOSE_DT|PRICING_SOURCE|
Field
Identifier
Rcode
Nfields
## Users may append this information with any Security Master field by adding them to the field section of request. For e
START-OF-FIELDS
SETTLE_DT
END-OF-FIELDS
Return codes
The following return codes are currently supported for getsnap:
Code Description
11 Restricted Security.
996 Maximum number of data points exceeded (some data for this security is missing)
1. After request was accepted by Data License the response is delivered with no delay
The following sample contains samples of all that: 1. request 2. response 3. and reply.
Text
START-OF-FILE
FIRMNAME=dlxxxxx
REPLYFILENAME=testgetsnap
SNAPTIME=0900
DELAY_LIMIT=3
COLUMNHEADER=yes
PROGRAMNAME=getsnap
START-OF-FIELDS
MARKET_SECTOR_DES
END-OF-FIELDS
START-OF-DATA
BMW GY Equity
IBM US Equity
AHA LN 03/18/11 C2600 Equity
GB0033280339|ISIN|
CH0114507210 Corp
EQ0017443700001000|BB_UNIQUE|
END-OF-DATA
END-OF-FILE
## Sample response file
START-OF-FILE
REQUESTFILENAME=testgetsnap.req
PROGRAMFLAG=oneshot
FIRMNAME=dlxxxxx
REPLYFILENAME=testgetsnap
SNAPTIME=0900
DELAY_LIMIT=3
COLUMNHEADER=yes
PROGRAMNAME=getsnap
START-OF-FIELDS
ID_BB_UNIQUE
ID_BB_GLOBAL
END-OF-FIELDS
getQuotes
The getQuotes program returns every last execution price time stamped with date, hour, minute, and second.
You may request a maximum of three (3) consecutive days of tick data in a single request.
A maximum of 240 trading days of tick data is available, provided the security has been priced for that amount of time.
There is a limit of 20 million individual ticks per response. When this limit is reached, the response truncates at the previous full record and
Notes:
getQuotes ignores any fields specified between the keywords START-OF-FIELDS and END-OF-FIELDS.
The first data point forgetQuotes is the most recent tick, followed by older ticks.
Responses forgetQuotes are always compressed. (The COMPRESS request parameter forgetQuotes is ignored.) Responses may be decom
For instructions on establishing a date and time range, see DATERANGE and DATETIMERANGE. Many data points can potentially be return
Format:
Identifier is displayed if the SECDES_FIRST_COL header parameter is set to yes(the default is no).
Field
Identifier
Month-1/Day-1…Month-N/Day-N
Time-1…Time-N
Price-1…Price-N
Volume-1…Volume-N
Return Codes
The following return codes are supported for getQuotes:
Code Description
11 Restricted Security.
601 There are no ticks available for this security on the date range requested.
996 Maximum number of data points exceeded (some data for this security is missing)
getQuotes Example
Text
START-OF-FILE
FIRMNAME=your_dl_login_name
REPLYFILENAME=getquotes_reply.out
DATERANGE=20090320|20090320
PROGRAMNAME=getquotes
PROGRAMFLAG=adhoc
START-OF-DATA
EDPR PL Equity
END-OF-DATA
END-OF-FILE
## Sample reply file
RUNDATE=20180521
FIRMNAME=your_dl_login_name
REPLYFILENAME=getquotes_reply.out
DATERANGE=20180517|20180517
PROGRAMNAME=getquotes
PROGRAMFLAG=adhoc
getAllQuotes
The getAllQuotes program is similar to the getQuotes program, except that in addition to returning every last execution price, matching ask and
You may request a maximum of three (3) consecutive days of tick data in a single request.
A maximum of 240 trading days of tick data is available, provided the security has been priced for that amount of time.
There is a limit of 20 million individual ticks per response. When this limit is reached, the response truncates at the previous full record and w
getAllQuotes is available for all security types for which Bloomberg has tick data.
Note:
Responses forgetAllQuotes are always compressed. (The COMPRESS request parameter forgetAllQuotes is ignored.) Responses may be
For instructions on establishing a date and time range, see DATERANGE and DATETIMERANGE. Many data points can potentially be return
Field
Identifier
Month-1/Day-1…Month-N/Day-N
TimeB-1…TimeB-N
TypeB-1…TypeB-N
PriceB-1…PriceB-N
VolumeB-1…VolumeB-N
TypeA-1…TypeA-N
PriceA-1…PriceA-N
MarketMakerB-1…MarketMakerB-N
MarketMakerA-1…MarketMakerA-N
VolumeA-1…VolumeA-N
Field
Identifier
Month-1/Day-1…Month-N/Day-N
Time-1…Time-N
TypeT-1…TypeT-N
Price-1…Price-N
MarketMaker-1…MarketMaker-N
Volume-1….Volume-N
Return Codes
The following return codes are supported for getAllQuotes:
Code Description
11 Restricted Security.
601 There are no ticks available for this security on the date range requested.
996 Maximum number of data points exceeded (some data for this security is missing)
getAllQuotes Example
Text
## Sample request
START-OF-FILE
FIRMNAME=your_dl_login_name
COMPRESS=yes
REPLYFILENAME=getallquotes.out
DATERANGE=20090320|20090320
PROGRAMNAME=getallquotes
PROGRAMFLAG=adhoc
START-OF-DATA
EDPR PL Equity
END-OF-DATA
END-OF-FILE
## Sample reply
START-OF-FILE
RUNDATE=20090320
FIRMNAME=your_dl_login_name
COMPRESS=yes
REPLYFILENAME=getallquotes.out
DATERANGE=20090320|20090320
PROGRAMNAME=getallquotes
PROGRAMFLAG=adhoc
TIMESTARTED=Fri Mar 20 12:52:48 EDT 2009
START-OF-DATA
START SECURITY|EDPR PL Equity|PL|
## in: 20090320 to 20090320 [13 (New York-DST)]
## out:20090320_00:00:00 to 20090320_23:59:59 [13 (New York-DST)]
03/20|12:39:32|B|6.15|L|4300|A|6.168|L|1307||
03/20|12:37:24|B|6.15|L|820|A|6.168|L|1307||
03/20|12:35:55|B|6.15|L|4300|A|6.168|L|1307||
03/20|12:35:22|B|6.15|L|3480|A|6.168|L|1307||
03/20|12:35:22|B|6.145|L|9309|A|6.168|L|1307||
03/20|12:35:04|B|6.15|L|23480|A|6.168|L|1307||
03/20|12:35:04|T|6.15|L|6715|AU|
03/20|12:35:04|T|6.15|L|1000|AU|
03/20|12:35:04|T|6.15|L|1500|AU|
03/20|12:35:04|T|6.15|L|2500|AU|
03/20|12:35:04|T|6.15|L|5000|AU|
Header Parameters
cancel
This program cancels a scheduled request.
Note:
To cancel a scheduled request, submit a cancel request with REPLYFILENAME equal to that of the scheduled response as specified within the subm
Examples:
In order to cancel a daily scheduled request called “stocks”, a cancel request with REPLYFILENAME=stocks would need to be submitted.
In order to cancel a daily scheduled request called “bonds.dat”, a cancel request with REPLYFILENAME=bonds.dat would need to be subm
## For example, to cancel a daily scheduled job that returns data in the response: corps.out
START-OF-FILE
FIRMNAME=dlxxxxx
REPLYFILENAME=corps.out
PROGRAMFLAG=daily
PROGRAMNAME=cancel
END-OF-FILE
cancel_all
This program can be used to cancel multiple (a list of) or all currently scheduled requests.
Note:
The reply name of each individual scheduled request, which is to be cancelled, must be listed between START-OF-DATA and END-OF-DATA of the c
## For example, following is a sample 'cancel_all' request to cancel scheduled requests named: ABC.out, DEF and GHI.out.g
START-OF-FILE
FIRMNAME=dlxxxxx
PROGRAMNAME=cancel_all
PROGRAMFLAG=daily
START-OF-DATA
ABC.out
DEF
GHI.out.gz
END-OF-DATA
END-OF-FILE
FIRMNAME=dlxxxxx
PROGRAMNAME=cancel_all
PROGRAMFLAG=daily
START-OF-DATA
ABC.out|CANCELLED|
DEF|CANCELLED|
GHI.out.gz|CANCELLED|
END-OF-DATA
END-OF-FILE
scheduled
This program returns a report containing all recurrent requests that are currently scheduled. The response contains all the currently active requests
Scheduled requests:
If there are no scheduled requests found under the account (of any frequency), the response No scheduled nightly requests found. returns.
Text
START-OF-FILE
FIRMNAME=dl123456
REPLYFILENAME=scheduled.out
PROGRAMNAME=scheduled
END-OF-FILE
Request Headers
The following table contains header options you can use to configure persSecurity requests. You must enter header options in your requests as up
Note: The header section in the reply can differ from the per security request header and can be changed by Bloomberg without notice.
BVALTIER getdata 2
DELAY_LIMIT getsnap 0
DIFFFLAG getdata no
DISPLAY_PRICING_SRC gethistory no
FA_ADJUSTED gethistory no
FA_PERIOD_TYPE gethistory P
MATCHgetticksCOLS getallquotes no
TIME All programs (except getsnap, cancel, cancel_all, scheduled) immediate (AD
1
For SFTP requests, the default is request.out, where request is the request name without the .req extension.
2 The current date means the date for the time zone currently used by your DL account (that is, the time zone might differ from your local time zon
3 If PROGRAMFLAG is set to adhoc, then the requests are processed immediately and the TIME parameter is ignored
4
The default value of COMPRESS is either yes or no depending on the PROGRAMNAME parameter value.
5 Also available in DL+.
6
Only available for DL+.
ACTIONS
Allows you to filter corporate actions responses by requesting only certain actions or categories of actions.
For example, you can request a single action type such as Acquisitions. You can also request a category of actions along with a single action from a
Note: These lines cannot be more than 254 characters in length and cannot exceed 128 specific actions.
ACTIONS_DATE
Allows you to request corporate actions based on different dates. You can set it to one of the following values:
Value Description
entry(default value) The date the corporate action was entered into the Bloomberg database. If you do not include a DATERA
effective The effective date of the corporate action, which can be up to two years in the future. If you do not includ
Note: The response to future date requests contains only those actions available at the time of the reque
both Incorporates both the entry and effective dates for corporate actions.
BVALBETA
Returns BVAL beta prices. It can be set to either yes or no (default).
COLUMNHEADER
If the following is set: COLUMNHEADER=yes, then the following row appears above the data:
<Identifier>|<Rcode>|<Nfields>|PX_BID|PX_MID|PX_ASK|
DELIMITER=,
COLUMNHEADER=yes
<Identifier>,<Rcode>,<Nfields>,PX_BID,PX_MID,PX_ASK
If set to yes, the response returns the title of each column of data. For example, if you request the fields PX_BID, PX_MID, and PX_ASK, they appear
COMPRESS
Returns the requested data file compressed by the Unix tool gzip. You can decompress the file using gunzip or Winzip.
DATEFORMAT
Customizes the format of dates produced in the reply files. Optional formats are listed in the table below.
Note: Only applicable to the getactions, getdata, gethistory, getsnap, and getcompany programs.
mmddyy
yyddmm
ddmmyy
yyyyddmm
yyyymmdd
yymmdd
mmddyyyy
yyyy/mm/dd
dd-mmm-yy
ddmmyyyy
mmyydd
ddyymm
mmyyyydd
ddyyyymm
DATERANGE
Specifies a certain date range for data produced by the getquotes, getallquotes, getactions, and gethistory programs. You can specify either an in
Note: For getactions, you can request a maximum of 7 days prior to the request date.
DATERANGE=r
Where r is an integer specifying the number of calendar days (not business days) from the current day. For example, the setting DATERANGE=1 retu
DATERANGE=1
ARSUSD Curncy|0|2|01/11/2021|0.2536|
ARSUSD Curncy|0|2|01/12/2021|0.2535|
The DATERANGE is set in Eastern Time (ET) for gethistory and getactions. For other Program Names, DATERANGE is set according to the time zone of
DATERANGE=0
ARSUSD Curncy|0|2|01/12/2021|0.2535|
DATERANGE=date1|date2
DATERANGE=20200102|20210102
The programs gethistory, getquotes, and getallquotes support DATERANGE for individual securities, using the same date format as shown above. Th
Format:
<Security Identifier>||<date1>|<date2>|
IBM US Equity||20200102|20201231|
DATETIMERANGE
Specifies a certain date and time range for data produced by the getquotes, getallquotes and gettickhistory programs. This option:
Region Name:
DATETIMERANGE=date1_time1|date2_time2|region name
Region name takes the format XX with the supported values NY (New York), LO (London), and TO (Tokyo). For example:
DATETIMERANGE=20210109_07:00:00|20210109_15:30:00|NY
Region Code:
DATETIMERANGE=date1_time1|date2_time2|region code
Region code is in the TZDF <GO> format on the Bloomberg Terminal® or listed in the Time Zone Reference Codes section.
DATETIMERANGE=20210109_07:00:00|20210109_15:30:00|3
There is an optional parameter to account for Daylight Savings Time (DST) in the DATETIMERANGE header option. Appending /DST or /NODST adjus
DATETIMERANGE=date1_time1|date2_time2|region name/NODST
DATETIMERANGE=date1_time1|date2_time2|region name/DST
DATETIMERANGE=date1_time1|date2_time2|region code/NODST
DATETIMERANGE=date1_time1|date2_time2|region code/DST
1 E
2 M
3 H
4 A
5 Pa
6 M
7 A
8 M
9 C
10 S
11 In
12 B
13 E
14 S
15 C
16 A
17 N
18 B
19 B
20 M
21 A
22 Lo
23 G
24 B
25 A
26 E
27 H
28 Is
29 C
30 K
31 M
32 Te
33 A
34 K
Time Zone Reference No. Ex
35 Is
36 M
37 D
38 A
39 B
40 B
41 H
42 To
43 A
44 D
45 C
46 B
47 H
48 M
49 K
50 W
51 F
DATE_TYPE
Allows you to request either the date at which the company actually reported the value for the corresponding field (i.e., REPORTED) or the end date
DELAY_LIMIT
Allows you to impose additional controls on a request file containing securities with mixed embargo times. For example, DELAY_LIMIT=30 returns
DELIMITER
Allows the specification of the delimiter you want to use. You can use any single ASCII character except " (double quote) and a blank. The default
Setting
DELIMITER=,
DELIMITER=#$
All text fields are surrounded with double quotes. Applicable to the getdata, getcompany, and getsnap programs.
The SECDESLENGTH parameter cuts two symbols more from the security description, because two places are taken by quotes.
DIFFFLAG
Controls the Bloomberg output sent back to you. Applicable only to scheduled recurring requests using the getdata program (see the PROGRAM
Value Description
yes The response contains the output of the Unix diff utility. In cases where something has changed, this diff provides full records from the previous respons
Smaller The output is compared against the most recently generated data using the Unix diff utility, and the smaller of the two datasets (the current response an
changes As with the yes option, the Unix diff utility compares the previous response to the current response. In this case, the response sent to you contains only
Python
1 START-OF-FILE
2 RUNDATE=dl123456
3 REPLYFILENAME=difftest.out
4 DIFFFLAG=ch
5 PROGRAMNAME=getdataanges
6 PROGRAMFLAG=weekday
Python
Bloomberg does not recommend the use of DIFFFLAG; rather, the use of snapshots is recommended for the following reasons:
DIFFFLAG values support diverse usage of the Unix diff utility, which compares files line by line, but there is no “un-difference” facility, and t
DISPLAY_PRICING_SRC
Available for corporate, preferred, government, municipal, and mortgage securities. If you use this option, the PRICING_SOURCE is returned in the o
DISPLAYQRMDATE
Controls the date for each tick. Set to yes, the date mirrors the trade dates in the Trade/Quote Recap (QR <GO> and QRM <GO>) functions on the
Python
EXCLUSIVE_PRICING_SRC
Applies to bonds. Allows you to designate an exclusive pricing source when using a PRICING_SOURCE override. If the exclusive source is not availa
Below are sample request and output files that illustrate the PRICING_SOURCE= header option:
Python
1 START-OF-FILE
2 FIRMNAME=dl123456
3 REPLYFILENAME=epsheader.out
4 PROGRAMNAME=getdata
5 PRICING_SOURCE=BGN
6 EXCLUSIVE_PRICING_SRC=yes
7 START-OF-FIELDS
8 PX_LAST
9 PRICING_SOURCE
10 END-OF-FIELDS
11 START-OF-DATA
12 CT30 Govt
13 END-OF-DATA
14 END-OF-FILE
Python
1 START-OF-FILE
2 RUNDATE=20081003
3 PROGRAMFLAG=oneshot
4 FIRMNAME=dl123456
5 REPLYFILENAME=epsheader.out
6 PROGRAMNAME=getdata
7 PRICING_SOURCE=BGN
8 EXCLUSIVE_PRICING_SRC=yes
9 START-OF-FIELDS
10 PX_LAST
11 PRICING_SOURCE
12 END-OF-FIELDS
13 TIMESTARTED=Fri Oct 3 09:33:20 EDT 2008
14 START-OF-DATA
15 CT30 Govt|0|2|103.206971|BGN|
16 END-OF-DATA
17
17 TIMEFINISHED=Fri Oct 3 09:33:26 EDT 2008
18 END-OF-FILE
Python
1 START-OF-FILE
2 FIRMNAME=dl123456
3 REPLYFILENAME=epssec.out
4 PROGRAMNAME=getdata
5 EXCLUSIVE_PRICING_SRC=yes
6 START-OF-FIELDS
7 PX_LAST
8 PRICING_SOURCE
9 END-OF-FIELDS
10 START-OF-DATA
11 CT30 Govt||1|PRICING_SOURCE|BGN|
12 END-OF-DATA
13 END-OF-FILE
Python
1 START-OF-FILE
2 RUNDATE=20081003
3 PROGRAMFLAG=oneshot
4 FIRMNAME=dl123456
5 REPLYFILENAME=epsnoticesec.out
6 PROGRAMNAME=getdata
7 EXCLUSIVE_PRICING_SRC=yes
8 START-OF-FIELDS
9 PX_LAST
10 PRICING_SOURCE
11 END-OF-FIELDS
12 START-OF-DATA
13 CT30 Govt|0|2|103.206971|BGN|
14 END-OF-DATA
15 END-OF-FILE
FA_ADJUSTED
Allows you to request either Bloomberg Enhanced Fundamentals (yes) or Generally Accepted Accounting Principles (no) data.
Bloomberg Enhanced Fundamentals: Since and including fiscal year 2009, Bloomberg data experts analyzed the financial reporting for all current
In addition, Bloomberg makes non-GAAP adjustments to the income statement to remove the impact of one-time and other abnormal charges.
FA_PERIOD_TYPE
The periodicity for the fundamental data you request, such as:
Quarterly (Q)
Annually (A)
FIRMNAME
The SFTP login name assigned by Bloomberg. If you send an SFTP request file with an incorrect FIRMNAME, it is returned as an error. The FIRMNAME
HEADER
Allows you to specify if the header should be returned in the response. You can set this option to yes, no, or timeonly, where yes is the default.
If you specify HEADER=no, only the data between START-OF-DATA and END-OF-DATA is returned.
If you specify HEADER=no and COLUMNHEADER=yes, the first line of the response is SECURITIES|ERROR CODE|NUM FLDS|.
If you specify HEADER=timeonly, the TIMESTARTED and TIMEFINISHED lines are included in the response.
HIST_CRNCY
Allows you to specify the currency for history requests. You can use it in your getdata and gethistory programs requests for historical data. You can
HIST_FORMAT
Alters the output format of a gethistory request. The default vertical format separates the data by the field requested and appears vertically. In the
HIST_OPTION
Allows users of the gethistory program to retrieve historical averages (arithmetic mean) for the date range and period you specify. The only valid v
HIST_PERIOD
Sets the periodicity of gethistory requests. The default behavior provides the smallest period available for the data requested. Data is provided on
Periodicity Code
MATCHGETTICKSCOLS
Controls the output layout for the getallquotes program. If set to yes, the output format (columns) matches getallticks.
OUTPUTFORMAT
Controls the format of responses. Options include:
Option Description
bulklist Applies to bulk fields only in the getdata program. When this is specified, each entry in the bulk field is listed, one per line. This option w
fixed Separates each column without using a delimiter. It is based solely on spacing.
variable The default. Field information is returned separated by the specified delimiter or the default Unix pipe sign (|). Fields are returned with th
Note: If you set OUTPUTFORMAT to fixed, then the fields delimiter is bypassed in the reply file.
PORTSECDES
Specifies the way in which the security description is returned in the response when you use a portfolio feature in the Portfolio Administration (PRT
PRICING_SOURCE
Specifies a PRICING_SOURCE override rather than overriding an individual PRICING_SOURCE in a request. This override applies to all corporate,
Fixed Income
BGN
EXCH
BVAL*
*
Data License accounts that are not subscribed to the BVAL service can only access a subset of BVAL data where the price is wholly derived from d
You can specify the pricing source at the security level using the following format:
912828DM9 Govt||1|PRICING_SOURCE|BGN|
The PRICING_SOURCE override works with fixed income securities (preferred, government, or corporate) and mortgage securities in the getdata a
Rather than overriding the PRICING_SOURCE field, the proper format for overriding a currency pricing provider is:
For example, if you subscribe to ABC Company pricing on the Bloomberg Terminal® (provider code XXXX), the following is used to download ABC
Currency pricing provider codes appear in the Foreign Exchange Defaults (XDF <GO>) function on the Terminal.
Similarly, the default setting for futures is PIT (day) session if you are not linked to a specific Terminal user. Linking refers to the Commodity Default
Futures exchange session settings can be found in the Commodity Defaults (CDEF <GO>) function on the Terminal.
PROGRAMFLAG
Determines how often to process the request. If you do not specify this option, the default is oneshot. The release time of data gathered by the sta
Adhoc mode allows you to run a request one time immediately upon submission. Release of data is subject to a minimum delay of 50 seconds. If y
PROGRAMFLAG Description
adhoc Specifies that the request runs one time only. The request starts imme
Scheduled mode allows you to schedule a per security request for a particular date and time. For that purpose, additional RUNDATE and TIME varia
The table below describes the different use cases for the TIME and RUNDATE variables.
The TIME and RUNDATE variables are set according to the time zone of the account’s sales region, i.e., New York (NY), London (LO), or Tokyo (TO).
The scheduled mode provides several delivery behaviors defined by the PROGRAMFLAG header option:
PROGRAMFLAG Description
weekly Specifies that the request starts weekly on the same day of the week on which the initial request was submitted. Yo
monthly Specifies that the request starts monthly on the same day of the month on which the initial request was submitted.
weekday Specifies that the request starts on Monday through Friday only. You can use this option in conjunction with the TIM
weekend Specifies that the request starts on Saturday and Sunday only. You can use this option in conjunction with the TIME
The programs supported vary according to the mode as shown in the following table:
Program Name
getdata
gethistory
gettickhistory
getallquotes
getactions
getcompany
getsnap
cancel
cancel_all
scheduled
* The program’s delivery mode is always implied to be adhoc (that is, the PROGRAMFLAG is ignored). Reply delivery timeout intervals depend on the
PROGRAMNAME
Specifies the program to run, e.g., getdata, gethistory. For a complete list of available programs, see Program Names in the Running Programs sec
PRP
This field is deprecated. The Portfolio Report (PRP) setup number was formerly found on the Bloomberg Terminal® at the PRP <GO> function.
REPLYFILENAME
Specifies the name of the dataset created to contain the response to a data request. The reply filename is a string that:
From a to z (lowercase)
From A to Z (uppercase)
You can use the following regular expressions to determine if user input contains any invalid characters (not allowed in REPLYFILENAME):
[^a-zA-Z0-9+-.^_]
If not specified, REPLYFILENAME defaults to the request filename with .out as the extension in place of .req for SFTP. For example, a request file ca
If a reply file’s name contains the any not allowed characters, or ends in either .req or .req.enc, the request file will be moved to the request
If a reply file name is the same as a file run earlier in the day, the new file would have the name with a number appended to the file name.
abc.out.20090511
abc.out.20090511.1
RUNDATE
Controls the date on which requests are processed. For requests scheduled with a frequency made available under the PROGRAMFLAG option, R
RUNDATE=20200630
You can use this option in conjunction with the TIME or SNAPTIME option. If no TIME is specified, the response starts at 00:00 of the date specified
The RUNDATE is based on the time zone of the region associated with the Data License account; there are three account regions: NY, LO, and TO.
SECDES_FIRST_COL
Applicable to the getquotes and getallquotes programs. Controls whether the ticker/identifier is printed next to each tick (SECDES_FIRST_COL=yes
SECDESLENGTH
Allows you to specify the length of the security description in the response. The security description is the first data column that is returned. Valid v
SECDESLENGTH=8
SECDESLENGTH=100
If the SECDESLENGTH parameter is used together with the DELIMITER parameter, then the output is influenced by both.
SECID
Allows the specification of a default security identifier. If you specify an alternate security identifier for a security, this option is ignored for that secu
In the example below, TICKER and SEDOL are assigned as alternate identifiers; the remaining numbers will process as ISIN:
Python
1 SECID=ISIN
2 ...
3
4 START-OF-DATA
5 US4592001014
6 US8855351040
7 CT30 Govt|TICKER|
8 2346070|SEDOL|
9 DE0005245500
10 JP3592200004
11 ...
12
13 END-OF-DATA
AUSTRIAN
BELGIUM
COMMON_NUMBER
EUROCLEAR
ISRAELI
SEDOL
If the wrong SECID parameter is specified, the response contains return code 10 (for security not found).
JP3592200004|SEDOL
JP3592200004|10|...
If requesting Equity securities by their CUSIP identifiers, it must be specified that CUSIP is the identifier being used. By way of example, the CUSIP
In a request, one of the following formats must be used for the security to be recognized for processing:
459200101|CUSIP
459200101 Equity|CUSIP
When requesting by TICKER, the market sector must be specified. When both SECID= and YELLOWKEY= options are specified, the SECID= option ta
The length of a security identifier cannot exceed 32 characters. Therefore, the YELLOWKEY (whether included in the START-OF-DATA section of the r
For example: IBM US Equity = 13 characters. You should not include SECID in the security identifier count:
Notes:
It is possible to request Money Market data using <six digit cusip> M-mkt. For example, 4381ZA.
ISINs are not supported as identifier types to be used to pull data for derivatives.
SKIP_PCS
Allows you to define one or more pricing sources that you would like to skip when determining the pricing source returned for a given security’s p
SKIP_PCS=BGN
For more than one source, separate with a Unix pipe character (|):
SKIP_PCS=BGN|EXCH
SN and WS
The serial number (SN) and workstation number (WS) of the Bloomberg Terminal®. Each is available to allow you to link your Terminal to take advan
SNAPTIME
Specifies the time the snapshot should be executed. The format should be hh00 or hh30, where hh is in military time (0-23). The request file must b
Notes:
The snaptime is based on the time zone of the region associated with the Data License account; there are three account regions: NY, LO, an
Option Description
DLPS The response provides the latest available data content from an Adhoc mode or Scheduled mode DLPS request. Adhoc requests incur a pre
DLPLUS The response provides data content from the modeled DL+ universe as of the DL+ Delivery Schedule. For more: Scheduled Runs.
NOTE
The response provides content from your DLPS account if your DLPLUS account does not contain the securities and fields for a sufficient
SPECIALCHAR
Controls the output of fractional and decimal fields. Fractional characters can occur in price fields and security descriptions. SPECIALCHAR default
Option Description
bloomberg Use Bloomberg’s special characters where appropriate, e.g., one half is represented as a byte containing 0x9f.
fraction Translate Bloomberg’s special characters to ASCII fractions, e.g., one half is represented as 1/2.
decimal:n Translate Bloomberg’s special characters to ASCII decimals; e.g., one half is represented as .5. You can specify the number of decimal places using
Certain fields return security descriptions, such as SECURITY_DES for corporate bonds. Security descriptions may contain “fraction characters,” whic
TICKADJUSTDATE
If a session ends on the following day due to time zone conversions (e.g., some Asian securities), this option automatically adjusts the requested ti
TICKEXCHLENGTH
Controls the length of the exchange code and can be set to either 1 or 2. The default is a single-character exchange code. Using TICKEXCHLENGTH
TICKFILTER
Filters the returned ticks and has the values below (defaults to legacy).
Value Description
TICKLOCALTZ
The default for this option is no, and the default time zone is New York. With TICKLOCALTZ=yes in a request, the time zone setting of the client profi
On a request basis, you can link in your TZDF profiles via the USERNUMBER option.
On an account basis, you can contact Product Support and Technical Assistance to request that a particular UUID is associated with your account. T
TICKOUTPUTFORMAT
Alters the output format to match those of older programs. It is mutually exclusive with the MATCHGETTICKSCOLS header option, only applies to
Value Description
TICKOUTPUTTZ
Determines the time zone of the response dataset. This setting is independent of the region selected in the DATERANGE and DATETIMERANGE h
By default, ticks are returned in the same time zone as they are requested. TICKOUTPUTTZ overrides the region in the DATETIMERANGE setting.
DATETIMERANGE controls the time zone of the input, and TICKOUTPUTTZ controls the time zone of the output.
For example, you can request to download ticks from 09:00:00 to 17:00:00 New York time and have the output displayed in London time. The hea
DATETIMERANGE=20210109_09:00:00|20210109_17:00:00|NY
There is an optional parameter to account for Daylight Savings Time (DST) in the TICKOUTPUTTZ header option. Appending /NODST or /DST adjus
TICKOUTPUTTZ=50/NODST
TICKOUTPUTTZ=50/DST
TIME
Determines the time at which requests are processed.
If TIME is not specified in a request, it is processed immediately. The format is TIME=HHMM, where HH is the hour (00 – 23) and MM is the minute (00
During daylight savings time transitions, requests are processed either at the scheduled time or when the time has passed, whichever comes earli
If the TIME parameter is not used in a scheduled request, the request will immediately process at the time the request is received by Bloomberg, a
The TIME will be set according to the time zone of the account’s sales region, New York (NY), London (LO), or Tokyo (TO).
UPLOADTYPE
Specifies how the request should be processed. It is only applicable to the CUSTOMUPLOAD program and has the values listed below.
Value
mars
bvalotc
bvalmmkt
USERNUMBER
The user number of the Bloomberg Terminal® login. It allows you to link your personal Terminal defaults (e.g., fixed income pricing sources) to a lo
VERSION
Specifies the software version. If you specify new, the new beta version of the software processes the request. A new beta version is typically availa
WARNINGS
Emits warnings related to the processing of the request, if any, to the response dataset. It can be set to either yes (default) or no.
YELLOWKEY
Specifies a default market sector (i.e., Govt, Corp, Equity, etc.) that will be used with the security descriptions. The market sector must be part of th
Govt
Corp
Mtge
M-Mkt
Muni
Pfd
Equity
Comdty
Index
Curncy
If a market sector description is already appended to the security in the data section, the given value for this option will be ignored. For example:
Python
1 YELLOWKEY=Equity
2
3 START-OF-DATA
4 IBM US|| # Load as IBM US Equity
5 CT30 Govt|| # Load as CT30 Govt as YK=Govt is explicitly specified
6
7
MSFT US|| # Load as MSFT US Equity
END-OF-DATA
When both SECID= and YELLOWKEY= options are specified, the SECID= option takes precedence. Both options have the same rules regarding leng
The length of a security identifier cannot exceed 32 characters. Therefore, the YELLOWKEY (whether included in the START-OF-DATA section of the
For example: IBM US Equity equals 13 characters. Bloomberg does not include SECID header parameter in the security identifier count.
Response Messages
Response Charset
The basic response datasets for the different programs that can be requested via PROGRAMNAME include the following allowable characters:
End of Line: DOS files, which contain an additional carriage return are accepted.
`~!@#$%&*()[],{}:;‘”></?|=
You can use the REPLYFILENAME option in the header section of the request to specify the name and media type of your response.
If REPLYFILENAME is not specified, the default is .out where is the name of the request excluding the .req extension.
If REPLYFILENAME is specified in the header, that value is used as is, and the .out media type is not added automatically. For example, if REP
If the response is compressed, it has .gz appended to the name. Bloomberg always compresses the responses for the gethistory, getquotes, and g
For other programs, e.g., getdata, by default the COMPRESS header is set to no. If compression is desired, the request header COMPRESS=yes mus
Encrypted responses do not have the .enc media type even when they are encrypted. The only time .enc should appear is on the input (request si
Bloomberg always provides a datestamped version and a non-datestamped version of responses. The non-datestamped version represents the m
<rundate> is of the form of YYYYMMDD, where YYYY is the four-digit year, MM is the two-digit month and DD is the two-digit day.
Response Format
Responses have the general format shown below. Both the header and field sections are exactly as specified in the submitted request. Lines that w
TIMESTARTED
The date and time the request began processing on Bloomberg’s backend server. The format is the same as the output of the UNIX date comman
For example, a request that started processing on May 21, 2021 at 11:43:56 EDT returns
TIMESTARTED=Thu May 21 11:43:56 EDT 2021.
DIFFFLAG
Only valid for the responses of recurrent scheduled diff requests (that is, except oneshot and adhoc requests).
TIMEFINISHED
The date and time the request finished processing on Bloomberg’s backend server. The format of TIMEFINISHED is the same as TIMESTARTED:
Response Availability
A response dataset is available as a file on the primary and backup SFTP servers for seven (7) days after the initial request. You must maintain a bac
When the Bloomberg backend server uploads a response to the client, a copy of it is kept, appended with the date it was sent. For example, a resp
The correct way to utilize Data License internet SFTP servers is to pull the date-stamped response. Internet servers have a failure recovery round-ro
Each SFTP server has a backup server. In the event the primary server is unavailable, you can place requests on the backup server. All responses a
Compression
The Unix utility gzip is used to compress files. Files loaded into a Unix platform can be decompressed with the Unix gzip utility. Files loaded into a
To link to a terminal, the following lines need to be added to the request header:
USERNUMBER=
WS=
SN=
Users can locate the numbers needed above by entering {IAM} on the BLOOMBERG PROFESSIONAL service. The following information appears:
USERNUMBER The integer number before S/N which is 5555555 in this example
SN The integer number after S/N, but preceding the hyphen, which is
WS Always set this header to 0, even if IAM shows a different value (e.
If linking to a BBA (Bloomberg Anywhere) terminal, only the USERNUMBER should be included in the header of the request. Including SN and WS cou
Linking your Data License requests to a Bloomberg Terminal which has been cancelled or moved may impact data in the response. Users should b
Troubleshooting
If the Bloomberg Terminal is permanently linked to the Data License account and becomes cancelled, users should contact Customer Support imm
If a Bloomberg terminal is moved/relocated users should ensure any links to it are still valid. For example, relocating an Open Bloomberg Termina
If user receives the following return in your response, please contact your account representative for assistance:
Request Builder
Overview
The Data License Request Builder is a stand-alone Java application that you can run on various operating system desktops. Request Builder is one
Request Builder
Request Builder:
Simplifies the creation of Data License request files and organizes the large number of available options in a user-friendly, non-technical GU
Supports SFTP as well as Send File (through the Bloomberg Professional® Service) for Data License.
SFTP Client
The SFTP Client:
Retrieves and submits files manually or automatically using this application’s scheduling capability.
NOTE
The SFTP Client is an alternative to applications such as CuteFTP and WSFTP that require licenses and fees.
API Package
The API Package provides useful Java classes and methods for the Java programming language. This package is used by all of the other applicatio
Prior Knowledge
Bloomberg recommends basic knowledge of the Data License Per Security product prior to using these applications. For more: Bloomberg Data L
Installation Prerequisites
Before you can begin the Request Builder installation, you must complete the following steps:
A. Verify that You Are Running the Appropriate Operating System. Request Builder version 7.1.3 is supported on these operating systems:
B. Download the Request Builder Install Package. The install package consists of an .exe file to guide your installation. For more: Customer Se
C. Back Up Your Login Credentials. If you have an existing Request Builder installation, you must download your available login credentials be
D. Back Up and Import Scheduled Jobs: If you have an existing Request Builder installation, you can back up your existing Scheduled Jobs an
a. Select Settings > FTP File Scheduler to open the FTP File Scheduler.
b. Press CRTL+SHIFT+I
A prompt appears to import schedule files.
e. Check the FTP Scheduler and confirm that Scheduled Jobs appear.
E. Install Java 8 Development Kit (JDK): Before you install Request Builder v7.1.3, you must install a 64-bit or 32-bit version of the JRE or JDK.
NOTE
The Request Builder does not support versions higher than Java 8 (e.g., 11, 21, and 23).
You may need assistance from your IT administration department, depending on the authorization level you have on your machine.
2. Run the Java Installer and note where Java is installed. Each vendor’s Installer shows the default installation directory. You can install t
3. Enter CMD to open a command prompt window, then select Run as administrator.
4. From the java.security file in the \lib\security subdirectory of the JRE installation directory, uncomment the crypto.policy=un
d. Ensure the Java installation bin directory is the first item in the path (i.e., ECHO %PATH%).
b. Run rb7-1-3.exe
Installation Process
When you run rb7-1-3.exe, a series of dialogs appear. Follow the prompts to complete the Request Builder 7.1.3 installation process.
2. From the License Agreement, select I accept the terms of the License Agreement > Next.
5. From Choose Java Virtual Machine, select C:\Program Files\Java\jdk1.8.0_311\bin\java.exe > Next.
HINT
Choose the same Java environment that you set in the PATH when performing the JDK or JRE installation steps above.
Error Summary
Common Causes
Troubleshooting
1. Locate the directory for the existing Java installation on your machine, e.g., C:\Program Files\Java\'version'\bin OR C:\Program Fil
3. To set your environment, at the C:\ prompt. enter SET PATH=C:\Program Files\Java\jdk1.8.0_431\bin\
b. Run rb7-1-3.exe
Error Summary
Common Causes
Your operating system is not Microsoft Windows 10, Windows 11, Windows Server 2016, or Windows Server 2019.
Troubleshooting
2. At the C:\ prompt, enter SET JAVA_TOOL_OPTIONS="-Dos.name=Windows 7" exactly as shown here in code font.
a. Enter PATH.
The current directory appears.
c. Remove all references to java from the directory except for 32-bit JAVA_HOME/bin, e.g., C:\Program Files (x86)\Java\jre1.8.0
b. Optional: If you want to support multiple Java installations on the same machine, reinstate the original PATH that you saved in step 3.
c. Run RequestBuilder.exe
Error Summary
Common Causes
The application you try to open requires a username and password to run. For more: appuals.com > Fix: Windows Error 2 Occurred While Loading
Troubleshooting
Remove javapath from your environment variables and retry the installation.
NOTE
To ensure the installation runs, you must set the JAVA_TOOL_OPTIONS environment variable in the Environment Variables window instead of from the command line
2. Select System.
System settings appear with the Display tab selected.
NOTE
You may see a User Access Control prompt. If you have administrative access, enter your credentials. If not, contact your network admin
After you enter administrator credentials, the System Properties window appears with the Advanced tab selected.
NOTE
You must include the quote marks (") in the Variable value to avoid errors during uninstallation.
The Variable name and Variable value appears under System variables.
11. From the System variables section of the Environment variables window, select JAVA_TOOL_OPTIONS > Delete.
The JAVA_TOOL_OPTIONS environment variable disappears and no longer affects any applications.
Connecting
Field
Connection Label
Use Keys
Passphrase
Use Password
Password
Host
Port
Save
Login
Supported Platforms
The Java programming language was chosen for the development of the Data License Front Ends software because of its portability, ease of deve
Additionally, these applications depend on some system dependent data such as the registry under MS Windows for storing information which is
The JRE version must be 1.8 or greater. The recommended version is 1.8.0_71.
Minimum Requirements
Minimum system requirements (Windows):
150 MB of diskspace
128 MB of memory
Language Selection
Request Builder software is localized and currently available in both English and Japanese. Other languages may become available as the demand
This window can be reached by selecting the Reset Language option under the Settings menu of the Login window of the Request Builder and
Help
Application
API Package
Several other options are common to each application under the Help menu. They are:
Check For New Version: This option can determine whether or not the version of the application currently running is the latest version. If t
System Information: This option displays local system information and information about the application currently running. This is useful w
Contact Bloomberg: This option is a simple email client that uses the SMTP protocol to send a message. It is similar to any common email p
About: Displays a message with the application’s name, version, and date of build.
Request Builder
The Data License Request Builder was developed to assist Per Security accounts. As its name implies, it helps users author request files quickly and
Training Videos
Using Getdata Learn how to access current datasets for a list of securities and fields. Set up successful requests, save and upload them for
Downloading Data From SFTP Learn how to find and retrieve data from the SFTP once a successful request has been processed. This train
Using File Scheduler Learn how to automate the submission of request files and the retrieval of data through the File Scheduler. Viewers
Using Gethistory Learn how to access historical datasets for a list of securities and fields, within a specified date range. This training video
Using Getcompany Learn how to set up and retrieve entity level data such as industry classification and credit risk data for a set of securities
Building a BVOL Request The service offers access, on a per security basis, to an end-of-day implied volatility surface for a wide range of
Using Getactions Learn how to set up and retrieve corporate actions data for specified list of instruments. This training video assumes prio
Login Window
The first screen that appears is the Login window. This window can be bypassed by setting a default login (see Set as default login). Once this wind
To begin, select the appropriate tab of the desired application. For Data License, select the type of account that is being used, Request Builder: SF
Once the required information has been entered or selected, click on the Login button to proceed. While in Request Builder: SFTP tab, the login i
Main buttons
Saved Connections
Additionally, information for many logins may be entered and saved based on the Connection Label entered. The list of saved connection labels a
Find: searches through the connection labels that contain matching text
SFTP Login
Network requirement
Must allow connectivity to the IP address to which the server host resolves. See Appendix for server Hosts and IP information.
Encryption Key: DES encryption key (this is necessary even when using SFTP)
Set as default login: checking this will allow this login screen to be bypassed and automatically logged in the next time the application
Bulk Account
Passphrase: enter the passphrase to decrypt the Keys File (this field may be blank if client has created a decrypted private key)
Set as default login: checking this will allow this login screen to be bypassed and automatically logged in the next time the application
Bulk Account
Send File
auto-check for new version: This setting allows for Request Builder to confirm the latest version of the software is installed at login. This
no-check: This option is for those users who do not have an account connection or are waiting for a new SFTP login and just want to use the
auto-check backup server to submit and poll for files: This option enables redundancy in connections for submitting requests an
Encryption Program: This option allows you to supply an encryption program other than the default
Connect Timeout: The number of milliseconds before the application will timeout due to not being able to establish a connection with the
Read Timeout: The number of milliseconds before the application will timeout due to not receiving data from the server
Turn on debug mode: This option will cause logging of the application to be more verbose
SN (serial number): Bloomberg terminal serial number found on the lower left-hand corner of the screen
Reset to Custom Defaults: Resets all options to the previously saved custom default values.
Save Custom Default: Saves all of the options with the currently selected values. This option is useful for the user that always sets certain o
Select Fields: Clicking on this button starts the Field Finder (also available through the Fields option under the Select menu).
Select Securities: Clicking on this button starts the Security Selector (also available through the Securities option under the Select menu
View/Submit: Allow user to view request file and submit the file.
Download Categories
Download Categories are deprecated within Per Security, but remain an option within Request Builder. Selecting and unselecting Download Categ
Corporate Actions
The Corporate Actions Dictionary organizes all corporate actions data available. The Corporate Actions Dictionary provides information about the
When creating a request file for the getactions Program Name, specific action mnemonics or categories may be selected to filter the data that is
Field Finder
The Field Finder organizes the contents of the Data Dictionary (fields.csv). The Field Finder provides information about the available fields and is s
The fields listed in the All Fields / Search Results area can be re-sorted by any of the options or combination of options available in the Sort By dro
When viewing the field names in the All Fields / Search Results or Currently Selected Fields areas, single-clicking on the field name will populate th
Adding Fields
Fields may be added to the Currently Selected Fields list in several ways. First, the Add Mnemonic text field can be used if the field name desired
Simply type in the field name there directly. Otherwise, the field(s) that should be added must be located in the All Fields / Search Results area and
Fields may also be added from a file containing a list of fields (one on each line) or extracted from the fields section of another request file. This fu
Removing Fields
Fields can be removed from the Currently Selected Fields area by double-clicking them or by clicking on the Remove button after selecting them.
Fieldset
Clicking on the Fieldset button, available only for the getcompany program, will show the Data License Credit Risk window. The field set option o
Security Selector
The Security Selector tool is where security information (identifiers) can be entered. Data is returned in the output file according to the fields selec
Adding Securities
The securities may be directly entered in the Enter Security text field. For example, enter IBM US Equity and click on the Add button to add IBM
Securities may also be added from a file containing a list of securities (one on each line) or extracted from the data section of another request file.
Removing Securities
Securities can be removed from the Currently Selected Securities area by double-clicking them or by clicking on the Remove button after sel
Overrides Window
Overrides may be applied on a security basis from the Security Selector window. Select the fields for this request file prior to applying overrides. T
Select the field to be overridden from the Available Fields list, enter the value in the text field, and click on the Add button to have it added to t
Request Files
Saving and loading
Complete the following four steps to save a request file:
Click on the Save File button on the bottom right of the main window
To load a previously saved request file, choose the Open option under the File menu on the main window.
Viewing
After the file is saved (or a new file is loaded), the text in the Save File button changes to View/Submit File. Clicking on the View/Submit File
Poll Options
By default, polling options are not selected. To select these options, click on the poll for reply file check box. Selecting this option will enable the P
Note: if the no-check option from the Login Window is used, the poll for reply file option and the Submit button are not enabled.
The options available in this window reflect the header options selected in the Options Window. Only the options that apply for the current reques
visual alert for .copied confirmation: If this option is selected, a popup message appears when the request file has been transferre
visual alert for replyfile confirmation: If this option is selected, a popup message appears when the data file is available on the B
retrieve .datestamped file(s): If this option is selected, the file(s) with the datestamp extension will be retrieved, in addition to the res
auto-decrypt replyfile: If this option is selected, the data file will automatically be decrypted
Run Command(s): Any number of commands may be entered here to execute after the file has been retrieved. These commands can includ
Click on the Save and Return button to record any changes and return to the View File Window. Click on the Cancel button to ignore the change
Status Manager
The status of request files submitted for processing during each session of the execution of the Request Builder are recorded and may be viewed
The status column for submitted request files will monitor changing from SUBMITTED to IN PROGRESS to COMPLETED if poll options have been s
Offline Usage
The Request Builder may be run in offline mode to modify the fields and/or securities of an existing file. The fields and/or securities in an existing r
The Request Builder can also be used offline to simply submit a request file via the Send File mechanism. The Request Builder will submit the requ
The arguments for all of these options are described in detail in the help pages included with the Request Builder.
Main Panel
When the FTP Client is started, the main window of the application appears. The left portion of the screen represents the local system directories a
Each side, local and remote, have optional views: the tree view and table view. The tree view is the default. It displays the directories as folders wit
The current working directories of the local and remote system are displayed in a non-editable text field labeled Current. The File Filter text fie
Options
The Options window of the FTP Client may be reached by selecting Options under the Settings menu.
auto-decompress .gz files: Automatically decompresses .gz (Unix gzip files) during the file transfer
auto-decrypt .enc files: Automatically decrypts encrypted files during the file transfer. Please note: Encryption may still need to be use
auto-encrypt .req files: Automatically encrypts request files that are submitted to the Bloomberg SFTP servers during file transfer
perform all maintenance on backup server also: Performs all maintenance operations such as deleting files, renaming files, etc. on th
show directories only (local): Only directories on the local system are shown
show hidden files (local): Directories and files with the hidden attribute are shown as well
Default Editor: This text field designates the default program to be used when local files are to be edited using the Edit option when se
While in the main window, simply double-click on the file and the transfer proceeds. To transfer multiple files (or a single file), select the files and c
The right-click menu supports a variety of options. If an option is not clear, please refer to the help pages included with the FTP Client for detailed
The upper portion of the FTP Scheduler is for entering information required to schedule the transfer of a file. The options with a brief description a
Account Region: The account region assigned to the user by Bloomberg (New York, London, or Tokyo).
File Schedule Type: This option is used to schedule either a file to be submitted or a file to be retrieved.
File Options: The options available in this section are dependent upon the File Schedule Type chosen.
Retrieve File As / Submit File As: Target filename or destination after the transfer.
Bulk file: Check box for whether or not the file being retrieved is a Bulk file or not. This option is needed since Bulk files run in the local ti
Retrieve Date / Submit Date: Date at which the scheduled transfer should occur.
Retrieve Time / Submit Time: Time at which the scheduled transfer should occur.
Retrieve Frequency / Submit Frequency: Frequency at which the file transfer should occur. This option may be one time, daily, weekly,
Run Command(s): Any number of commands may be entered here to execute after the file has been retrieved. These commands can includ
Timeout After: Specific amount of time to continue attempting to retrieve a file. After this time, if the file is still not available the program w
Timeout Action (Command): Command to be executed if the file to be retrieved is not available after the duration specified in the Timeout
match datestamp of file to retrieve date: If this option is selected, the Unix datestamp of the file on the Bloomberg SFTP server will
retrieve datestamped file: If this option is selected, only the datestamped version of the data file will be retrieved.
Once the necessary information is entered, clicking on the Add button will add the scheduled file information to the monitoring Currently Schedule
The Status column monitors and its value changes from pending to in progress to complete. The list of currently scheduled files may be sorted by
Note: Files will only be transferred when the software is running. If a file transfer is scheduled during a time when the software is not executing, it w
File Scheduler
Constructing Fields/Securities from Database or File
This feature allows users to submit a request file while loading the fields and/or securities from a different source. This is useful when the fields/sec
Click on the Open File icon to open and select folder where you would like the Database Configuration File to be saved. Type in a file name with
Generic ODBC
Oracle Driver
MySQL Driver
INet SprintA
Hypersonic HSQLDB
IBM DB2
Bloomberg comdb2
Sybase
The JDBC driver file must be placed in the ...\rb7.0\lib\driver sub directory. By default that directory is C:\blp\bbdl\rb7.0\lib\d
The JDBC driver is different for each database. It is not part of the Request Builder installation. Users are responsible to provide the driver fi
Database selection:
Database Configuration File should display the full path name of the xml file input above. The rest of the window will only become activ
Connection Name: A name to save the connection. User can use the New button below to create multiple connection names
Database Driver: select the driver appropriate for the database
Configuration: provide the location of the database via Server Name, Port Number, and Database Name
Database User Name: login name of user permission to access this database
Input the SQL Query to fetch the securities/fields list from the chosen database.
SQL queries are database specific. Make sure to use the correct syntax for the selected database. For example, in MySQL, table named SEC
The tree on the left shows all of the Bulk files available and the group names (based on the order(s) for Bulk files). Under each folder is a list of the
The File Information area contains basic information about the file. The File/Group text field shows the group the file belongs to, the Retrieve T
The right side of this screen allows for entering the options that should be applied to the Bulk files that are to be scheduled. All of the options are
S & P BO Ratings Approval Received (FixedIncSP): this option specifies whether or not the user has received approval for the specia
Moody BO Ratings Approval Received (FixedIncMoody): this option specifies whether or not the user has received approval for the spe
Once the files and settings that should be scheduled are selected, clicking on the Add button will add them to the status table of the FTP Schedule
The list of scheduled files is automatically saved. To have the FTP Client automatically transfer files via the FTP Scheduler, the application must be r
Notice Retriever
There are periodic needs to change or update specific elements of the Data License product. For every change or update, notices are created and
First, select the language(s) of the notices that should be received. Currently, English and Japanese versions of the notices are made available. The
The Check Frequency area is used to schedule notice retrievals, the options being:
weekly on: check for notices weekly on a specific day and time
If the notice retrievals are scheduled (daily or weekly), the Download Label at the top of the Notices Retriever becomes enabled. This is to give the
The Action area of the Notices Retriever is used to specify what to do once a notice has been retrieved. The options available are:
send as attachment: sends the notices retrieved as an email attachment to the specified email addresses (Email) or the specified SMTP se
By clicking on the Save and Return button, all scheduled notice retrievals will be saved and the application will return to the FTP Main. Clicking o
Logging
By default, the Request Builder log file is {$RB_HOME}\reqbuilder.log, example, C:\blp\bbdl\rb6.0\reqbuilder.log. The logging properties
Debug
This is a hidden window available to the Request Builder application to control debug log verbosity. To have access to this, use the Request Build
History
A view of historical SFTP and Request Builder activity is stored and may be viewed by selecting the History option from the View menu. It is a con
Production Scenarios
Every user has different needs. The Front Ends software may be used in a variety of different ways to greatly reduce the amount of time needed to
All of the scenarios that follow refer to processing the file as the final step. This term is used to denote anything the user wants to do with the data
Scenario I First Time User (Per Security)
New Per Security users can review the Per Security product functionality by running the Request Builder and following the tutorial in its help pages
Scheduling Request Files (Per Security) and Retrieving Data Files (Per Security and Bulk)
There are two main ways to schedule a request file to process. The first is to use the PROGRAMFLAG header option inside the request file and the sec
Scenario
If the PROGRAMFLAG header option is chosen to schedule the file, the request file can be generated and submitted using the Request Builder. Intern
If the FTP Scheduler option is chosen to schedule the file, the scheduling of the request file will need to be done on the user system. Any of the fo
These changes to the request file can be made with the offline mechanism of the Request Builder. Given an existing request file and a file with the
Version Control
The version of these applications may be found by selecting the About option under the Help menu. New versions are announced in the enhance
Consulting Services
Bloomberg Data License offers consulting services to users who need special data formats. Contact the Data License Sales Department for details
© 2025 Bloomberg L.P. All rights reserved. Contact Us Terms of Service Trademarks Privacy Policy