Вы находитесь на странице: 1из 17

Technology FAQs (continued)

How do I retrieve S&P Capital IQ data with API functions?


Before coding, it is important to understand S&P Capital IQ data and how API Functions are used
to retrieve the data.
Each category of data (e.g., Company Specific Data and Company Fundamental (Financials)
Data) includes various Mnemonics (i.e., data item names) pertaining to each specific data item,
which can be queried using the Functions provided within the API. Some functions return a single
data value (point-in-time), while others return a series of data values. A description of each of the
applicable Functions follows this section.
Typical input parameters for the Functions include a single Company Identifier or list of Company
Identifiers (e.g., Capital IQ IDs and Ticker Symbols), a single Mnemonic or a list of Mnemonics,
and various other required and/or optional arguments referred to as Properties within the API.
The required and/or optional Properties vary based on the Function used and Mnemonic
requested.
Each Function requires at least one Identifier. Identifiers are case sensitive and must be passed
as uppercase. Identifier types can be mixed (i.e., IQ#### & TICKER).
Each Function requires at least one Mnemonic. Mnemonics are case sensitive and must be
passed as uppercase. A complete listing of Mnemonics available for this challenge is available in
the appendix.
Properties (i.e., Function Arguments) are passed as Key/Value pairs. A Complete listing of
applicable Properties available for this challenge are available below.

What are the available API Functions?


Following is a description of each of the Functions that can be used to retrieve the S&P Capital IQ
data for this challenge.
GDSP
This Function retrieves a single data value for a point-in-time for given Mnemonic(s). The
default point-in-time for GDSP Function is Current, but can be changed if the GDSP Function is
called with a startDate Property defined.
Example (GDSP with 2 Identifers, 2 Mnemonics & 1 optional Property):
GDSP | IQ139488, IBM | IQ_COMPANY_NAME, IQ_TOTAL_REV | startDate : 05/01/2014

GDSHE
This Function retrieves a range of values for Mnemonic(s) by Rank or Date. Data values are
returned according to the Rank or Date Properties defined and results are ordered by Rank
or Date value.
Example (GDSHE with 1 Identifer, 1 Mnemonics, 1 required (startRank) & 1 Optional (endRank) Property):
GDSHE | IQ139488 | IQ_QUICK_COMP | startRank : 1, endRank : 5
Note: Some Rank Mnemonics have upper range limits (for results) such as 5 or 10 depending on the Mnemonic.

Following is a list of the specialized request Properties by Function that can be used with specific
Mnemonics (where O is optional & R is required):

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

Property Keys

GDSP

startDate *

GDSHE

endDate

startRank *

endRank

periodType **

filingMode **

restatementTypeId **

currencyId **

currencyConversionModeId **

*
**

For GDSHE, startDate or startRank is required


For Company Fundamentals (financial period aligned data) Mnemonics

Descriptions of specialized request Properties:


Property Key

Property Value Descriptions

startDate & endDate

The valid values for startDate and endDate are valid dates
(as MM/DD/YYYY).

startRank & endRank

The valid values for startRank and endRank are 1 thru #.

PeriodType

The following periodTypes can be used in the S&P Capital


IQ API to specify the type of data being returned.
Relative: For retrieving data relative to a current
period the functions accepts
IQ_FY: Fiscal Year
IQ_CY: Calendar Year
IQ_FQ: Fiscal Quarter
IQ_CQ: Calendar Quarter
IQ_LTM: Last 12 Months [defaultFinancials]
IQ_NTM: Next 12 Months [default
-Estimates]
IQ_YTD: Year-to-Date
Any of the above period types can

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

be used with an offset (+/- #) in


order to retrieve historical or future
periods.
Absolute: For retrieving data within a specific fiscal
date range the functions accepts the following as
absolute period inputs
FYyyyy: Fiscal Year
CYyyyy: Calendar Year
FQqyyyy: Fiscal Quarter
CQqyyyy: Calendar Quarter
Where yyyy is Year and q is Quarter
(example: FQ32014 will return 3rd
Quarter for fiscal Year 2014 data)
currencyID

The currency in which the financial data should be


displayed. Monetary data will be converted to this
currency, if collected in a different currency. There are
approximately 200 currencyId values (example: LOCAL,
USD, GBP, JPY, INR, etc.)

currencyConversionModeI
d

If the currency is not the reported currency, this parameter


controls how the data should be currency converted. The
valid values for currencyConversionModeId are Historical
or SpotRate.

restatementTypeId

The valid values for restatementTypeId are:


O Original version
P Preliminary Version
LFR Latest fully reported version [default]
LRI Latest reported instance
LRP Latest reported period
LA Latest
IPO

filingMode

The valid values for filingMode are:


P - Period [default]
F - Filing
E - Effective

Sample Company Data Mnemonics:


IQ_COMPANY_NAME
IQ_COMPANY_TICKER
IQ_MARKETCAP
IQ_SHARESOUTSTANDING

Company Name
Company Ticker
Market Capitalization
Shares Outstanding

Sample Company Fiscal Period Aligned Data Mnemonics


IQ_TOTAL_REV
IQ_NI
IQ_PE_EXCL

Revenue
Net Income
P/E (Diluted/Before Extraordinary)

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

IQ_PE_NORMALIZED
IQ_PBV
IQ_PRICE_SALES
IQ_TEV_EBITDA
IQ_TEV_TOTAL_REV
IQ_GROSS_MARGIN
IQ_EARNING_CO_MARGIN
IQ_NI_MARGIN
IQ_NI_NORM_MARGIN
IQ_RETURN_ASSETS
IQ_RETURN_EQUITY
IQ_RETURN_CAPITAL
IQ_FIXED_ASSET_TURNS

P/E (Normalized)
P/B
P/S
EV/EBITDA
EV/Revenue
Gross Margin
Operating Margin
Net Margin
Net Margin (Normalized)
Return On Assets
Return On Equity
Return On Capital
Asset Turnover

How do I use the .NET and Java API Client Libraries?


Client Library Response Types: OBJECT, JSON and XML
Query responses are returned in native OBJET format by default, which returns a List of
SDKDataOutput objects that can be interrogated for the response data. To get results in XML or
JSON format, simply make the request using the optional second argument as shown below:
JSON
StringresponseJson=
(String)serviceImpl.invokeDataService(input_request,JSON);
XML
StringresponseXml=
(String)service.Impl.invokeDataService(input_request,XML);
A list of sample requests is available in the appendix.

What are the meanings of the common error responses?


It is possible to receive the following error responses when submitting a request:
Data Unavailable
This means that there is no coverage for the data request (the identifier, mnemonic, and function
are correct for input).
Not Applicable
This means that an invalid identifier has been submitted that doesnt match up with any of our
identifier formats (at the entity or security level). It could mean you have used an entity level
identifier as an input, but made a request for a security level mnemonic (or vice versa).
Invalid Identifier
This means that an invalid identifier was passed into a data request.

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

Invalid Mnemonic
This means that an incorrect mnemonic was passed into a data request.
Input Arguments Missing
This means that there is one or more input arguments missing.
Function Mismatch
This means that a mnemonic has been passed in that does not work with the specific function it
was assigned to (it works with another function).
Not Entitled
This means that the user is not entitled to the specific mnemonic passed in to the data request.
Error Processing Function / Error Processing Request / Invalid Request
These are general errors meaning there is an issue with the input parameters in the request an
input parameter might be missing or some of the input parameters may be invalid.
A full list of error responses is available in the appendix.

What are some API-specific best practices?


You should follow these practices when using the S&P Capital IQ API with the API Client Libraries
or the JSON Direct (JSON/REST) access method.
Caching Data (Locally)
Caching data locally improves overall performance. If your application uses the same data
point(s) frequently and you do not need to refresh data via the API every time, caching locally
avoids the overhead of redundant requests. Additionally, if your workflow requires historical data
points, local caching is highly recommended, as most historical data is static.
Validate API Inputs
Validate all API request input parameters (i.e. functions, identifiers, mnemonics, and property
key/value pairs) prior to making any API request. This avoids the most common API errors.
Avoid Duplicate API Requests
When an API request is in progress, wait for the API response before making the same request.
Multiple requests for the same identifier/mnemonic combinations can cause temporary blocking of
API request processing leading to delays in API responses.
Multiple API Requests
Although concurrent API requests per IP address are supported, we advise limiting the number of
concurrent API request threads to 5. Too many concurrent requests can cause processing time
delays and, depending on your subscription, may even block API access.

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

API Request Sizes (Identifiers/Mnemonics per Request)


It is good practice to group multiple functions, identifiers, and mnemonics in a single API request,
although we recommend avoiding large requests. The API platform connection timeout is 15
minutes for a single API request.
When coding against the API, its helpful to size the number of data points being requested. We
suggest tuning individual API requests to yield approximately 1000 data points, where each
request is defined as one function, mnemonic, identifier (plus other property combinations as
applicable).
Time Series, Historical, and Vector Information
The Time Series, Historical, and Vector functions (GDSHE) require more processing time and
return more data points than the Point-in-Time functions (GDSP).
In addition to sizing the number of requests, when making requests for time series, historical, or
vector API requests, limit the input ranges (data, rank, etc.) to return smaller API requests with
better response times.

API Response Errors


It is good practice to resolve all known API errors. This avoids duplicate API requests with the
same exception such as making multiple requests with an incorrect API user name and
password, invalid inputs, etc.

Appendix A: Mnemonics
Balance Sheet Statement

Mnemonics

Cash And Equivalents

IQ_CASH_EQUIV

Short Term Investments

IQ_ST_INVEST

Total Cash & ST Investments

IQ_CASH_ST_INVEST

Accounts Receivable

IQ_AR

Total Receivables

IQ_TOTAL_RECEIV

Inventory

IQ_INVENTORY

Total Current Assets

IQ_TOTAL_CA

Gross Property, Plant & Equipment

IQ_GPPE

Net Property, Plant & Equipment

IQ_NPPE

Long-term Investments

IQ_LT_INVEST

Total Intangibles

IQ_GW_INTAN

Total Assets

IQ_TOTAL_ASSETS

Accounts Payable

IQ_AP

Short-term Borrowings
Current Portion of Long Term Debt
Curr. Port. of Cap. Leases

IQ_ST_DEBT
IQ_CURRENT_PORT_DEBT
IQ_CURRENT_PORT_LEASES

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

Total Current Liabilities

IQ_TOTAL_CL

Long-Term Debt

IQ_LT_DEBT

Capital Leases
Minority Interest

IQ_CAPITAL_LEASES
IQ_MINORITY_INTEREST

Total Liabilities

IQ_TOTAL_LIAB

Total Pref. Equity

IQ_PREF_EQUITY

Common Stock

IQ_COMMON

Retained Earnings

IQ_RE

Treasury Stock
Total Common Equity

IQ_TREASURY
IQ_TOTAL_COMMON_EQUITY

Total Equity
Total Liabilities And Equity

IQ_TOTAL_EQUITY
IQ_TOTAL_LIAB_EQUITY

Filing Date

IQ_FILINGDATE_BS

Period Date
Shares Outstanding on Filing Cover
Shares Outstanding on Balance Sheet Date
Total Shares Out. On Filing Date
Total Shares Outstanding on BS Date

IQ_PERIODDATE_BS
IQ_OUTSTANDING_FILING_DATE
IQ_OUTSTANDING_BS_DATE
IQ_TOTAL_OUTSTANDING_FILING_DATE
IQ_TOTAL_OUTSTANDING_BS_DATE

Book Value/Share

IQ_BV_SHARE

Tangible Book Value

IQ_TBV

Tangible Book Value/Share

IQ_TBV_SHARE

Total Debt
Total Current Debt
Total Non-Current Debt

IQ_TOTAL_DEBT
IQ_TOTAL_DEBT_CURRENT
IQ_TOTAL_DEBT_NON_CURRENT

Net Debt

IQ_NET_DEBT

Total Capitalization

IQ_TOTAL_CAP

Full Time Employees

IQ_FULL_TIME

Income Statement
Total Revenues
Cost Of Revenues

Mnemonics
IQ_TOTAL_REV
IQ_COST_REV

Cost Of Goods Sold

IQ_COGS

Gross Profit
Selling General & Admin Exp.

IQ_GP
IQ_SGA_SUPPL

R & D Exp.
Depreciation & Amort.
Amort. of Goodwill and Intangibles
Operating Income
Net Interest Exp.
EBT Excl Unusual Items
Total Unusual Items

IQ_RD_EXP
IQ_DA_SUPPL
IQ_GW_INTAN_AMORT
IQ_OPER_INC
IQ_NET_INTEREST_EXP
IQ_EBT_EXCL
IQ_TOTAL_UNUSUAL

EBT Incl Unusual Items

IQ_EBT

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

Income Tax Expense


Earnings from Cont. Ops.

IQ_INC_TAX
IQ_EARNING_CO

Earnings of Discontinued Ops.


Extraord. Item & Account. Change

IQ_DO
IQ_EXTRA_ACC_ITEMS

Net Income
Pref. Dividends and Other Adj.
Merger/Restructuring Costs
NI to Common Incl Extra Items
NI to Common Excl Extra Items
Basic EPS
Basic EPS Excl. Extra Items
Weighted Avg. Basic Shares Out.
Diluted EPS
Diluted EPS Excl Extra Itmes
Weighted Avg. Diluted Shares Out.
Normalized Basic EPS
Normalized Diluted EPS

IQ_NI
IQ_PREF_DIV_OTHER
IQ_MERGER_RESTRUCTURE
IQ_NI_AVAIL_INCL
IQ_NI_AVAIL_EXCL
IQ_BASIC_EPS_INCL
IQ_BASIC_EPS_EXCL
IQ_BASIC_WEIGHT
IQ_DILUT_EPS_INCL
IQ_DILUT_EPS_EXCL
IQ_DILUT_WEIGHT
IQ_EPS_NORM
IQ_DILUT_EPS_NORM

EBITDA
EBITDA (Incl. Equity Inc. from Affiliates)

IQ_EBITDA
IQ_EBITDA_EQ_INC

EBITA

IQ_EBITA

EBIT
EBITDAR
Net Rental Expense
Normalized Net Income
Same Store Sales Growth %
Effective Tax Rate
Payout Ratio
Interest On Long Term Debt
Total Current Taxes
Total Deferred Taxes

IQ_EBIT
IQ_EBITDAR
IQ_NET_RENTAL_EXP_FN
IQ_NI_NORM
IQ_SAME_STORE
IQ_EFFECT_TAX_RATE
IQ_PAYOUT_RATIO
IQ_INT_EXP_LTD
IQ_CURR_TAXES
IQ_DEFERRED_TAXES_TOTAL

Cash Flow Statement

Mnemonics

Net Income

IQ_NI_CF

Depreciation & Amort., Total

IQ_DA_CF

Asset Writedown & Restructuring

IQ_ASSET_WRITEDOWN_CF

Costs Stock-Based Compensation

IQ_STOCK_BASED_CF

Net Cash From Discontinued Ops.

IQ_DO_CF

Change In Accounts Receivable

IQ_CHANGE_AR

Change In Inventories

IQ_CHANGE_INVENTORY

Change in Acc. Payable

IQ_CHANGE_AP

Change in Unearned Rev.

IQ_CHANGE_UNEARN_REV

Change in Inc. Taxes

IQ_CHANGE_INC_TAX

Change in Def. Taxes

IQ_CHANGE_DEF_TAX

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

Cash from Ops.

IQ_CASH_OPER

Capital Expenditure

IQ_CAPEX

Sale of Property, Plant, and Equipment

IQ_SALE_PPE_CF

Cash Acquisitions

IQ_CASH_ACQUIRE_CF

Divestitures

IQ_DIVEST_CF

Sale (Purchase) of Intangible assets

IQ_SALE_INTAN_CF

Net Cash from Investments

IQ_INVEST_SECURITY_CF

Cash from Investing

IQ_CASH_INVEST

Short Term Debt Issued

IQ_ST_DEBT_ISSUED

Long-Term Debt Issued

IQ_LT_DEBT_ISSUED

Total Debt Issued

IQ_TOTAL_DEBT_ISSUED

Short Term Debt Repaid

IQ_ST_DEBT_REPAID

Long-Term Debt Repaid

IQ_LT_DEBT_REPAID

Total Debt Repaid

IQ_TOTAL_DEBT_REPAID

Issuance of Common Stock

IQ_COMMON_ISSUED

Repurchase of Common

IQ_COMMON_REP

Issuance of Preferred Stock

IQ_PREF_ISSUED

Repurchase of Preferred

IQ_PREF_REP

Common Dividends Paid

IQ_COMMON_DIV_CF

Pref. Dividends Paid

IQ_PREF_DIV_CF

Common and/or Pref. Dividends Paid

IQ_COMMON_PREF_DIV_CF

Total Dividends Paid

IQ_TOTAL_DIV_PAID_CF

Cash from Financing

IQ_CASH_FINAN

Net Change in Cash

IQ_NET_CHANGE

Cash Interest Paid

IQ_CASH_INTEREST

Cash Taxes Paid

IQ_CASH_TAXES

Net Debt Issued

IQ_NET_DEBT_ISSUED

Levered Free Cash Flow

IQ_LEVERED_FCF

Unlevered Free Cash Flow

IQ_UNLEVERED_FCF

Change in Net Working Capita

IQ_CHANGE_NET_WORKING_CAPITAL

EBITDA - Capex

IQ_EBITDA_CAPEX

Ratios

Mnemonics

Return on Assets %

IQ_RETURN_ASSETS

Return on Equity %

IQ_RETURN_EQUITY

Gross Margin %

IQ_GROSS_MARGIN

SG&A Margin %

IQ_SGA_MARGIN

EBITDA Margin %

IQ_EBITDA_MARGIN

Net Income Margin %

IQ_NI_MARGIN

Levered Free Cash Flow Margin %

IQ_LFCF_MARGIN

Accounts Receivable Turnover

IQ_AR_TURNS

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

Inventory Turnover

IQ_INVENTORY_TURNS

Current Ratio

IQ_CURRENT_RATIO

Quick Ratio

IQ_QUICK_RATIO

Avg Days Sales Outstanding

IQ_DAYS_SALES_OUT

Avg Days Payable Outstanding

IQ_DAYS_PAYABLE_OUT

Total Debt/Equity

IQ_TOTAL_DEBT_EQUITY

Total Debt/Capital

IQ_TOTAL_DEBT_CAPITAL

EBIT / Interest Expense

IQ_EBIT_INT

Capex as % of Revenues

IQ_CAPEX_PCT_REV

Total Debt/EBITDA

IQ_TOTAL_DEBT_EBITDA

Net Debt/EBITDA

IQ_NET_DEBT_EBITDA

Return on Capital %

IQ_RETURN_CAPITAL

Market Data

Mnemonics

Pricing Date

IQ_PRICEDATE

Stock Exchange

IQ_EXCHANGE

Last Sale Price

IQ_LASTSALEPRICE

Close Price

IQ_CLOSEPRICE

Dividend Adjusted Day Close Price

IQ_CLOSEPRICE_ADJ

Volume Weighted Average Price

IQ_VWAP

52 Week High Price

IQ_YEARHIGH

52 Week High Date

IQ_YEARHIGH_DATE

Daily Volume

IQ_VOLUME

Daily Value Traded

IQ_VALUE_TRADED

Market Capitalization

IQ_MARKETCAP

Enterprise Value

IQ_TEV

Shares Outstanding

IQ_SHARESOUTSTANDING

5 Year Beta

IQ_BETA_5YR

5 Year Price Volatility

IQ_PRICE_VOL_HIST_5YR

Fund NAV

IQ_FUND_NAV

Dividend Yield

IQ_DIVIDEND_YIELD

Latest Annualized Dividend Per Share

IQ_ANNUALIZED_DIVIDEND

Growth (Up to 10 years of growth)

Mnemonics

Total Revenues, 1 Yr Growth %

IQ_TOTAL_REV_1YR_ANN_GROWTH

Gross Profit, 1 Yr Growth %

IQ_GP_1YR_ANN_GROWTH

EBITDA, 1 Yr Growth %

IQ_EBITDA_1YR_ANN_GROWTH

EBIT, 1 Yr Growth %

IQ_EBIT_1YR_ANN_GROWTH

Net Income, 1 Yr Growth %

IQ_NI_1YR_ANN_GROWTH

Normalized Net Income, 1 Yr Growth %

IQ_NI_NORM_1YR_ANN_GROWTH

Diluted EPS before Extra, 1 Yr Growth %

IQ_EPS_1YR_ANN_GROWTH

Common Equity, 1 Yr Growth %

IQ_COMMON_EQUITY_1YR_ANN_GROWTH

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

10

Inventory, 1 Yr Growth %

IQ_INV_1YR_ANN_GROWTH

Total Assets, 1 Yr Growth %

IQ_TOTAL_ASSETS_1YR_ANN_GROWTH

Tangible Book Value, 1 Yr Growth %

IQ_TBV_1YR_ANN_GROWTH

Cash from Operations, 1 Yr Growth %

IQ_CFO_1YR_ANN_GROWTH

Capital Expenditures, 1 Yr Growth %

IQ_CAPEX_1YR_ANN_GROWTH

Levered Free Cash Flow, 1 Yr Growth %

IQ_LFCF_1YR_ANN_GROWTH

Unlevered Free Cash Flow, 1 Yr Growth %

IQ_UFCF_1YR_ANN_GROWTH

Dividend per Share, 1 Yr Growth %

IQ_DPS_1YR_ANN_GROWTH

Valuation

Mnemonics

TEV/Total Revenues

IQ_TEV_TOTAL_REV

TEV/EBITDA

IQ_TEV_EBITDA

TEV/EBIT

IQ_TEV_EBIT

TEV/Unlevered FCF

IQ_TEV_UFCF

Market Cap/Levered FCF

IQ_MARKET_CAP_LFCF

P/Diluted EPS before extra

IQ_PE_EXCL

P/BV

IQ_PBV

P/TangBV

IQ_PTBV

P/Sales

IQ_PRICE_SALES

TEV/Forward Total Revenue

IQ_TEV_TOTAL_REV_FWD

TEV/Forward EBITDA

IQ_TEV_EBITDA_FWD

TEV/Forward EBIT

IQ_TEV_EBIT_FWD

P/Forward Diluted EPS before extra

IQ_PE_EXCL_FWD

PEG Ratio

IQ_PEG_FWD

P/Forward CFPS

IQ_PRICE_CFPS_FWD

Company Information & Ownership

Mnemonics

Company Name

IQ_COMPANY_NAME

CIQ Company ID

IQ_COMPANY_ID

Business Description

IQ_BUSINESS_DESCRIPTION

Headquarters

IQ_COMPANY_ADDRESS

Primary Industry

IQ_PRIMARY_INDUSTRY

Number of Shareholders

IQ_NUMBER_SHAREHOLDERS

Institutional Owner

IQ_INSTITUTIONAL_OWNER

Institutional Owner Total Shares

IQ_INSTITUTIONAL_SHARES

Insider Owner

IQ_INSIDER_OWNER

Insider Owner Total Shares

IQ_INSIDER_SHARES

Holder Name

IQ_HOLDER_NAME

Holder CIQ ID

IQ_HOLDER_CIQID

Holder Total Shares

IQ_HOLDER_SHARES

Mutual Fund Name

IQ_HOLDER_FUND_NAME

Mutual Fund Shares Held

IQ_HOLDER_FUND_SHARES

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

11

Mutual Fund % of Shares Outstanding

IQ_HOLDER_FUND_PERCENT

Appendix B: Sample API Requests


REQUEST1CompanyLookup(byName)togettheCIQCompanyID

Function:GDSHE
Identifiers:MCDONALDS
Mnemonics:IQ_COMPANY_NAME_QUICK_MATCH,IQ_COMPANY_ID_QUICK_MATCH
Properties[1]:startRank=1
Properties[2]:endRank=5

REQUEST1RESULTSListofCompanyNames&IDs(byrank)

1|McDonald'sCorp.
2|McDonald'sHoldingsCompany(Japan),Ltd.
3|McDonald'sRestaurantsLimited
4|HappyFamilyFoodsLtd.
5|McdonaldsCo.(Japan)Ltd.

1|IQ139488
2|IQ6561811
3|IQ5472699
4|IQ108545353
5|IQ31271459

REQUEST1SampleusingAPIJSONDirectrequestmethod(JSONRequest
FormatforHTTPPOSTbody)
...APIRESTURL:
https://sdk.gds.standardandpoors.com/gdssdk/rest/v2/clientservice.json

inputRequests=
{inputRequests:
[
{function:"GDSHE",identifier:"MCDONALDS",mnemonic:"IQ_COMPANY_NAME_QUICK
_MATCH",properties:{startRank:"1",endRank:"5"}},
{function:"GDSHE",identifier:"MCDONALDS",mnemonic:"IQ_COMPANY_ID_QUICK_M
ATCH",properties:{startRank:"1",endRank:"5"}}
]
}

REQUEST1RESULTSListofCompanyNames&IDs(byrank)

1|McDonald'sCorp.
2|McDonald'sHoldingsCompany(Japan),Ltd.
3|McDonald'sRestaurantsLimited

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

12

4|HappyFamilyFoodsLtd.
5|McdonaldsCo.(Japan)Ltd.

1|IQ139488
2|IQ6561811
3|IQ5472699
4|IQ108545353
5|IQ31271459

REQUEST2CompanyComps(byID)togetTop10CompCompanies

Function:GDSHE
Identifiers:IQ139488
Mnemonics:IQ_QUICK_COMP
Properties[1]:startRank=1
Properties[2]:endRank=10

REQUEST2RESULTSListofTop10CompCompaniesTickerIDs(byrank)

1|NYSE:YUM
2|NYSE:CMG
3|NasdaqGS:SBUX
4|LSE:CPG
5|NasdaqGS:WEN
6|NasdaqGS:JACK
7|NYSE:BKW
8|NYSE:DRI
9|NasdaqGS:DNKN
10|NasdaqGS:RRG

REQUEST3CompanyInfo&Financials(byIDswithPeriod/Date
referencing)
...latest2fiscalAnnualperiods(viaperiodTypeproperty)
...latest4fiscalQuarterlyperiods(viaperiodTypeproperty)
...latest#daysDailymarketprices(viastartDateproperty)

Function:GDSP
Identifiers:IQ139488
Mnemonics:IQ_COMPANY_NAME,IQ_COMPANY_TICKER,IQ_MARKETCAP,
IQ_SHARESOUTSTANDING

Function:GDSP
Identifiers:IQ139488

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

13

Mnemonics:IQ_TOTAL_REV,IQ_NI
Properties[1]:periodType=IQ_FY
Properties[2]:restatementTypeId=LFR
Properties[3]:filingMode=P
Properties[4]:currencyId=USD
Properties[5]:currencyConversionModeId=Historical

Function:GDSP
Identifiers:IQ139488
Mnemonics:IQ_TOTAL_REV,IQ_NI
Properties[1]:periodType=IQ_FY1
Properties[2]:restatementTypeId=LFR
Properties[3]:filingMode=P
Properties[4]:currencyId=USD
Properties[5]:currencyConversionModeId=Historical

Function:GDSP
Identifiers:IQ139488
Mnemonics:IQ_TOTAL_REV,IQ_NI
Properties[1]:periodType=IQ_FQ
Properties[2]:restatementTypeId=LFR
Properties[3]:filingMode=P
Properties[4]:currencyId=USD
Properties[5]:currencyConversionModeId=Historical

Function:GDSP
Identifiers:IQ139488
Mnemonics:IQ_TOTAL_REV,IQ_NI
Properties[1]:periodType=IQ_FQ1
Properties[2]:restatementTypeId=LFR
Properties[3]:filingMode=P
Properties[4]:currencyId=USD
Properties[5]:currencyConversionModeId=Historical

Function:GDSP
Identifiers:IQ139488
Mnemonics:IQ_TOTAL_REV,IQ_NI
Properties[1]:periodType=IQ_FQ2
Properties[2]:restatementTypeId=LFR
Properties[3]:filingMode=P
Properties[4]:currencyId=USD
Properties[5]:currencyConversionModeId=Historical

Function:GDSP
Identifiers:IQ139488
Mnemonics:IQ_TOTAL_REV,IQ_NI
Properties[1]:periodType=IQ_FQ3
Properties[2]:restatementTypeId=LFR
Properties[3]:filingMode=P
Properties[4]:currencyId=USD
Properties[5]:currencyConversionModeId=Historical

Function:GDSHE
Identifiers:IQ139488

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

14

Mnemonics:IQ_CLOSEPRICE
Properties[1]:startDate=09/01/2014
Properties[2]:currencyId=USD
Properties[3]:currencyConversionModeId=Historical

REQUEST3RESULTSCompanySpecific(Current)
PeriodSpecificFinancials
MarketData(Daily)

current|IQ_COMPANY_NAME|McDonald'sCorp.
current|IQ_COMPANY_TICKER|NYSE:MCD
current|IQ_MARKETCAP|91123.011200
current|IQ_SHARESOUTSTANDING|981.929000
IQ_FY|IQ_TOTAL_REV|28105.700000
IQ_FY|IQ_NI|5585.900000
IQ_FY1|IQ_TOTAL_REV|27567.000000
IQ_FY1|IQ_NI|5464.800000
IQ_FQ|IQ_TOTAL_REV|7181.700000
IQ_FQ|IQ_NI|1387.100000
IQ_FQ1|IQ_TOTAL_REV|6700.300000
IQ_FQ1|IQ_NI|1204.800000
IQ_FQ2|IQ_TOTAL_REV|7093.200000
IQ_FQ2|IQ_NI|1397.000000
IQ_FQ3|IQ_TOTAL_REV|7323.400000
IQ_FQ3|IQ_NI|1522.200000
09/02/2014|IQ_CLOSEPRICE|92.800000
09/03/2014|IQ_CLOSEPRICE|93.140000

Appendix C: Error

09/04/2014|IQ_CLOSEPRICE|93.010000

Responses
API Error Message
AGGREGATEREQUESTTOOLARGE
ANALYSTNAMENOTREPORTED
ANALYSTNOTPROFILED
CANNOTDISPLAYLISTSWITHOVER10000CONSTITUENTS
CAPABILITYNEEDED
CURRENCYNOTAVAILABLE
DATACANNOTBEAGGREGATED
DATA UNAVAILABLE
DETAILEDDATAUNAVAILABLE
ENTITLEMENTNEEDED
ERROR GETTING DATA
ERROR PROCESSING FUNCTION
ERROR PROCESSING THE REQUEST
ESCAPE WORDS NOT ALLOWED

Readable Format
Aggregate Request Too Large
Analyst Name Not Reported
Analyst Not Profiled
Cannot Display Lists With Over
10,000 Constituents
Capability Needed
Currency Not Available
Data Cannot Be Aggregated
Data Unavailable
Detailed Data Unavailable
Entitlement Needed
Error Getting Data - Please Try
Again!
Error Processing Function Please Try Again!
Error Processing the Reques! (JSON Direct Input)
Escape Words Not Allowed

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

15

EXCEEDED THE RATE LIMIT


EXCEEDS5YEARLIMIT
EXCEEDS8YEARLIMIT
FREQUENCY NOT APPLICABLE
FUNCTION MISMATCH
GDS CURRENTLY UNAVAILABLE - PLEASE TRY AGAIN
LATER
HISTORICALDATANOTAVAILABLEFORREQUESTEDLISTTY
PE
INPUT ARGUMENTS MISSING
INVALIDASOFDATE
INVALIDCONTRIBUTOR
INVALIDCOUNT
INVALIDCURRENCY
INVALIDCURRENCYREQUEST
INVALIDDATAVENDOR
INVALID DATE ARGUMENT
INVALID DATE ENTERED
INVALID DATE RANGE FOR FREQUENCY
INVALIDDISPLAY
INVALIDENTRY
INVALIDFACTORCODE
INVALID FISCAL DATE FORMAT
INVALIDFORMULAMETRIC
INVALID FREQUENCY
INVALID FUNCTION
INVALID IDENTIFIER
INVALIDIDENTIFIER
INVALIDINDEX
INVALIDLISTID
INVALIDMETRIC
INVALID MNEMONIC
INVALIDPARAMETERS
INVALIDPERIODRANGE
INVALIDPERIODTYPE
INVALIDRATING
INVALIDRATINGCHARACTERISTIC
INVALIDRATINGOPTION
INVALIDRATIO
INVALID REQUEST
INVALIDRESTATEMENTTYPE
INVALIDSECONDPARTY
INVALIDSECTOR
INVALID SENIORITY CODE
INVALID SNAP TYPE
INVALIDSOLICITATION

Exceeded The Rate Limit


Exceeds 5 Year Limit
Exceeds 8 Year Limit
Frequency Not Applicable
Function Mismatch
GDS Currently Unavailable Please Try Again Later!
Historical Data Not Available For
Requested List Type
Input Arguments Missing
Invalid AsOfDate
Invalid Contributor
Invalid Count
Invalid Currency
Invalid Currency Request
Invalid Data Vendor
Invalid Date Argument
Invalid Date Entered
Invalid Date Range For
Frequency
Invalid Display
Invalid Entry
Invalid Factor Code
Invalid Fiscal Date Format
Invalid Formula Metric
Invalid Frequency
Invalid Function
Invalid Identifier
Invalid Identifier
Invalid Index
Invalid List Identifier
Invalid Metric
Invalid Mnemonic
Invalid Parameters
Invalid Period Range
Invalid Period Type
Invalid Rating
Invalid Rating Characteristic
Invalid Rating Option
Invalid Ratio
Invalid Request
Invalid Restatement Type
Invalid Second Party
Invalid Sector
Invalid Seniority Code
Invalid Snap Type
Invalid Solicitation

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

16

INVALIDTENOR
INVALIDTIMEPERIOD
INVALIDTRANSACTIONID
INVALIDWEIGHTTYPE
NEWDATAAVAILABLE
NONE
NOT APPLICABLE
NOT ENTITLED
NOTSUPPORTED
NOTSUPPORTEDIDENTIFIER
ONLYCONSENSUSAVAILABLE
PLEASE AUTHENTICATE
REQUEST NOT PROCESSED
REQUEST TIMED OUT
REQUESTTOOLARGE
SECONDPARTYINVALID
SENIORITY CODE NOT APPLICABLE
SNAP TYPE NOT APPLICABLE
SUBSCRIPTION LIMIT
THE REMOTE SERVER RETURNED AN ERROR: (400) BAD
REQUEST.
THERE WAS AN ERROR PROCESSING YOUR REQUEST
THEREWASANERRORPROCESSINGYOURREQUEST
TOOMANYLISTCONSTITUENTS
UNEXPECTED ERROR - PLEASE TRY AGAIN LATER
USERACCESSRESTRICTED
USERNAME FOR DESTINATION SYSTEM IS NOT
MAPPED.

Invalid Tenor
Invalid Time Period
Invalid Transaction Identifier
Invalid Weight Type
New Data Available
None
Not Applicable
Not Entitled
Not Supported
Not Supported Identifier
Only Consensus Available
Please Authenticate
Request Not Processed - Please
Try Again!
Request Timed Out - Please Try
Again!
Request Too Large
Second Party Invalid
Seniority Code Not Applicable
Snap Type Not Applicable
Subscription Limit
The Remote Server Returned An
Error: (400) BAD REQUEST
There Was An Error Processing
Your Request!
There Was An Error Processing
Your Request!
Too Many List Constituents
Unexpected Error - Please Try
Again!
User Access Restricted
Username For Destination
System Is Not Mapped

S&P Capital IQ Tablet Application Challenge, Fall 2014


www.spcapitaliq-njit.com

17

Вам также может понравиться