TermsAndConditionsExtractionRequest
I receive empty file results for the following rest api in Java:
@{"ExtractionRequest":{"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest", "ContentFieldNames":["Ticker","Coupon Type","Day Count Code","Coupon Rate"], "IdentifierList":{ "@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.EntityIdentifierList", "EntityIdentifiers":[ {"Identifier":"18236","IdentifierType":"OrgId"} ]}, "Condition":{ "ExcludeWarrants":true,"FixedIncomeRatingSources": "Fitch", "StartDate":"2017-01-02T00:00:00.000Z", "UseRelativeAnalytics":true } } }
What is the proper way to call TermsAndConditionsExtractionRequest?
Thanks
Best Answer
-
You can use the ExtractWithNotes endpoint instead of Extract to get more information from the Note. The following error message is in the Note.
45 Instruments suppressed due to rating date not on or after 01/02/2017.
It could be related to the Delta Extraction that contains only data for instruments that have had a ratings change since the last extraction execution.
Once the "FixedIncomeRatingSources" and "StartDate" conditions are removed from the request, data can be extracted properly. Below is the modified request.
{"ExtractionRequest":
@{"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest",
"ContentFieldNames":["Ticker","Coupon Type","Day Count Code","Coupon Rate"],
"IdentifierList":{ "@odata.type":"#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.EntityIdentifierList", "EntityIdentifiers":[ {"Identifier":"18236","IdentifierType":"OrgId"} ]},
"Condition":{ "ExcludeWarrants":true,"UseRelativeAnalytics":true } } }Below is the information in the DSS User Guide document.
0
Answers
-
Hi @Axegine,
You can download the POSTMAN sample collections from here.
From tutorial 7b Request Terms and Conditions example.
This is the sample request:
POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/Extract HTTP/1.1
Prefer: respond-async
Content-Type: application/json
Authorization: Token <your token>
cache-control: no-cache
Postman-Token: 37111503-5017-4a44-adb7-b97253d8207c
User-Agent: PostmanRuntime/7.1.1
Accept: */*
Host: hosted.datascopeapi.reuters.com
cookie: DSSAPI-COOKIE=R3148268809
accept-encoding: gzip, deflate
content-length: 1013
Connection: close
{
"ExtractionRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest",
"ContentFieldNames": [
"RIC", "CUSIP", "ISIN", "SEDOL", "Issuer OrgID", "Currency Code"
],
"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": "00209tab1",
"IdentifierType": "Cusip"
},
{
"Identifier": "IBM.N",
"IdentifierType": "Ric"
},
{
"Identifier": "US4592001014",
"IdentifierType": "Isin"
},
{
"Identifier": "B1YW440",
"IdentifierType": "Sedol"
}
]
}
}
}This is the sample response:
HTTP/1.1 200 OK
Set-Cookie: DSSAPI-COOKIE=R3148268809; path=/
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-Request-Execution-Correlation-Id: 7e4613d8-71e0-45ea-975f-bbe460f201c2
X-App-Id: Custom.RestApi
X-App-Version: 11.3.534.64
Date: Tue, 09 Jan 2018 02:56:55 GMT
Connection: close
Content-Length: 861
@{"@odata.context":"https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Collection(ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ExtractionRow)","value":[{"IdentifierType":"Cusip","Identifier":"00209TAB1","RIC":"00209TAB1=RRPS","CUSIP":"00209TAB1","ISIN":"US00209TAB17","SEDOL":"2166502","Issuer OrgID":"172642","Currency Code":"USD"},{"IdentifierType":"Ric","Identifier":"IBM.N","RIC":"IBM.N","CUSIP":"459200101","ISIN":"US4592001014","SEDOL":"2005973","Issuer OrgID":"18228","Currency Code":"USD"},{"IdentifierType":"Isin","Identifier":"US4592001014","RIC":"IBM.N","CUSIP":"459200101","ISIN":"US4592001014","SEDOL":"2005973","Issuer OrgID":"18228","Currency Code":"USD"},{"IdentifierType":"Sedol","Identifier":"B1YW440","RIC":"LP71000002","CUSIP":null,"ISIN":"GB00B1YW4409","SEDOL":"B1YW440","Issuer OrgID":"100691344","Currency Code":"GBp"}]}0 -
Hello @Axegine,
You can refer to REST API Reference Tree showing the complete functionality with the parameters of each function and the HTTP requests according to the parameters.The example of TermsAndConditionsExtractionRequest parameters:
The example of TermsAndConditionsExtractionRequest request according to the Parameters
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛