DataScopeSelect mandatory name changes - PriceHistoryExtractionRequest
I made the changes to our system that were communicated to us, but I am unable to make it work.
For example, I make this request:
{
"ExtractionRequest": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest",
"ContentFieldNames": [
"RIC",
"High Price",
"Low Price",
"Universal Close Price",
"Trade Date"
],
"IdentifierList": {
"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": "AAPL.OQ",
"IdentifierType": "Ric"
}
]
},
"Condition": {
"AdjustedPrices": true,
"QueryStartDate": "2010-05-12T12:43:17.137Z",
"QueryEndDate": "2021-05-12T12:43:17.137Z"
}
}
}
to
https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw
Then I get an ExtractRawResult which I follow to its RawExtractionResults which says to me
{
"error": {
"code": "EntitySetController Unmapped Request ErrorCode",
"message": "EntitySetController Unmapped Request ~/entityset/key/unresolved"
}
}
Tagged:
0
Best Answer
-
It works fine for me.
First, I sent the request to /Extractions/ExtractRaw and got the following response.
The response contains the JobId so I use the JobId with Extractions/RawExtractionResults('{{jobId}}')/$value and get the data.
0
Answers
-
Ok, I tried it again:
Posting:
@{"ExtractionRequest":{"@odata.type":"#DataScope.Select.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest","ContentFieldNames":["RIC","High Price","Low Price","Universal Close Price","Trade Date"],"IdentifierList":{"@odata.type":"#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList","InstrumentIdentifiers":[{"Identifier":"AAPL.OQ","IdentifierType":"Ric"}]},"Condition":{"AdjustedPrices":true,"QueryStartDate":"2010-05-19T07:20:44.430Z","QueryEndDate":"2021-05-19T07:20:44.430Z"}}}
received response:
202
with header
Location: https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x078f3010c68c9590')
which I then hit with GET
https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x078f3010c68c9590')
which received a 200:
@{"@odata.context":"https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#RawExtractionResults/$entity","JobId":"0x078f3010c68c9590","Notes":["Extraction Services Version 14.5.42294 (737b0965c07f), Built Apr 8 2021 13:46:52\r\nProcessing started at 05/19/2021 07:20:50.\r\nUser ID: 9021462\r\nExtraction ID: 2000000260840704\r\nSchedule: 0x078f3010c68c9590 (ID = 0x0000000000000000)\r\nInput List (1 items): (ID = 0x078f3010c68c9590) Created: 05/19/2021 07:20:49 Last Modified: 05/19/2021 07:20:49\r\nReport Template (5 fields): _OnD_0x078f3010c68c9590 (ID = 0x078f3010c6ac9590) Created: 05/19/2021 07:20:47 Last Modified: 05/19/2021 07:20:47\r\nSchedule dispatched via message queue (0x078f3010c68c9590)\r\nSchedule Time: 05/19/2021 07:20:48\r\nTimeseries Date Range: 05/19/2010 to 05/19/2021\r\nProcessing completed successfully at 05/19/2021 07:20:51, taking 1.184 Secs.\r\nExtraction finished at 05/19/2021 07:20:51 UTC, with servers: x04q24, ETS (0.4 secs), QSHC15 (0.0 secs), QSSHA1 (0.0 secs)\r\nUsage Summary for User 9021462, Client 108638, Template Type Price History\r\nBase Usage\r\n Instrument Instrument Terms Price\r\n Count Type Subtype Source Source\r\n------- ----------------------------------- ---------------------------- -------------- ----------------------------------------\r\n 1 Equities N/A N/A\r\n-------\r\n 1 Total instrument charged.\r\n 0 Instruments with no reported data.\r\n=======\r\n 1 Instrument in the input list.\r\nNo Evaluated Pricing Service complex usage to report -- 1 Instrument in the input list had no reported data.\r\n"]}
which I then followed to
https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/RawExtractionResults('0x078f3010c68c9590')/value
which said:
{"error":{"code":"EntitySetController Unmapped Request ErrorCode","message":"EntitySetController Unmapped Request ~/entityset/key/unresolved"}}
Could you point out what I'm doing wrong?
0 -
It should be "$value", not "value".
https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/RawExtractionResults('0x078f3010c68c9590')/$value
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
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 280 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 717 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
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛