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
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 250 ETA
- 555 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛