PriceHistoryExtractionRequest vs TimeSeriesExtractionRequest

vikas.khurana
Explorer
in DSS
It seems from the documentation that I should use the PriceHistoryExtractionRequest over the TimeSeriesExtractionRequest but I don't see any examples for it. Is that the case? Are there any significant differences I should be aware of?
Tagged:
0
Best Answer
-
POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes HTTP/1.1 Authorization: Token <your_auth_token_goes_here> Prefer: respond-async Content-Type: application/json; odata=minimalmetadata { "ExtractionRequest": { "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest", "ContentFieldNames": [ "Ask High", "Ask Low", "Bid High", "Bid Low", "Trade Date" ], "IdentifierList": { "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList", "InstrumentIdentifiers": [ { "Identifier": "TRI.N", "IdentifierType": "Ric" } ], "ValidationOptions": null, "UseUserPreferencesForValidationOptions": false }, "Condition": { "QueryStartDate": "2015-12-01T00:00:00.000Z", "QueryEndDate": "2015-12-02T00:00:00.000Z" } } }
Response
HTTP/1.1 200 OK
@{ "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ExtractionResult", "Contents": [ { "IdentifierType": "Ric", "Identifier": "TRI.N", "Ask High": null, "Ask Low": null, "Bid High": null, "Bid Low": null, "Trade Date": "2015-12-01" }, { "IdentifierType": "Ric", "Identifier": "TRI.N", "Ask High": null, "Ask Low": null, "Bid High": null, "Bid Low": null, "Trade Date": "2015-12-02" } ], "Notes": [ "Extraction Services Version 12.0.38496 (4b10cc09ac17), Built Mar 9 2018 22:12:54\r\n Processing started at 03/12/2018 PM 08:17:56.\r\n User ID: 20058\r\n Extraction ID: 2000000001130828\r\n Schedule: 0x0618fef979084050 (ID = 0x0000000000000000)\r\n Input List (1 items): (ID = 0x0618fef979084050) Created: 03/12/2018 PM 08:17:56 Last Modified: 03/12/2018 PM 08:17:56\r\n Report Template (11 fields): _OnD_0x0618fef979084050 (ID = 0x0618fef99b684050) Created: 03/12/2018 PM 08:17:52 Last Modified: 03/12/2018 PM 08:17:52\r\n Schedule dispatched via message queue (0x0618fef979084050)\r\n Schedule Time: 03/12/2018 PM 08:17:54\r\n Timeseries Date Range: 12/01/2015 to 12/02/2015\r\n Processing completed successfully at 03/12/2018 PM 08:18:07, taking 10.871 Secs.\r\n Extraction finished at 03/12/2018 PM 08:18:07 UTC, with servers: x04q11, ETS (10.4 secs), QSDEV1 (0.0 secs), QSSDB2 (0.0 secs)\r\n Usage Summary for User 20058, Client 11286, Template Type Price History\r\n \r\n Base 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\n No TRPS complex usage to report -- 1 Instrument in the input list had no reported data.\r\n Writing RIC maintenance report.\r\n" ] }@vikas.khurana, yes, please use PriceHistroryExtracion request over TimeseriesExtractionRequest because price history has more data points than TimeseriesTemplate. Also eventually, timeseries will become legacy An example is available in API Reference Tree-->Extractions-->on Demand Extractions--> ExtractionWithNotes
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
- 719 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 中文论坛