The controller for path \'/RestApi/v1/Extraction/ExtractionRaw\' was not found or does not implem...

...ent IController DSS REST API
I`ve been working on a project to extract data from REST API.
I am able to connect to the server and get the token from my credentials. However, when I try to get a extraction following the examples provided I get the error message below:
'{"error":{"code":"d0dfbb58-c1a4-44a4-bc72-20d9af1c4b7b","message":"The controller for path \'/RestApi/v1/Extraction/ExtractionRaw\' was not found or does not implement IController. Error ID: [d0dfbb58-c1a4-44a4-bc72-20d9af1c4b7b]"}}'
Script:
import requests
header = {
'Prefer': 'respond-async, wait=5',
'Content-Type': 'application/json; odata.metadata=minimal',
'Authorization': tkn
}
data = {
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryRawExtractionRequest",
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{ "Identifier": "ABEV3.SA", "IdentifierType": "Ric" }
]
},
"Condition": {
"MessageTimeStampIn": "GmtUtc",
"ReportDateRangeType": "Range",
"QueryStartDate": "2021-07-22T12:00:00.000Z",
"QueryEndDate": "2021-07-26T12:10:00.000Z",
"ExtractBy": "Ric",
"SortBy": "SingleByRic",
"DomainCode": "MarketPrice",
"DisplaySourceRIC": True
}
}
}
urlExtraction = 'https://hosted.datascopeapi.reuters.com/RestApi/v1/Extraction/ExtractionRaw';
session = requests.Session()
session.headers=header
r = session.post(urlExtraction,data)
r.text
It would be great if anyone who knows what is happeing help me providing de solution for this.
Best Answer
-
The URL endpoint is incorrect. The urlExtraction must be:
urlExtraction = 'https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw'
0
Answers
-
Hello @victor.jmartins ,
Please note, that there was a very recent major migration of Datascope and Tick History endpoints, all the information can be found at Tick History API front page, please try with the new endpoints as advised, both submitting the request, checking status and retrieving the result. This information applies to both DSS and Tick History APIs. This may be the issue.
If this does not help, would like to suggest:
1. Reviewing and running REST API Tutorial 8: On Demand raw data extraction
2. Once the result is received successfully, tune the request to your requirements
3. Merge the tuned working request into working RTH Python example of on demand retrieval.
Let us know how this works on your side?
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
- 249 ETA
- 554 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 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 中文论坛