Retrieving Tick History Time and Sales & Raw data DSS reports via API

I am subscribing to Tick History data in DataScope Select. I've set up some instrument list and report templates. (Tick History Time and Sales and Tick History Raw) templates.
I was able to run these reports and download some data via DSS web GUI. The process is very manual and prone to errors (if I accidentally selected the wrong field, clicked the wrong timezone etc). I'd like to run these reports via REST API using Python.
I came across other people's Q&A in the forum. It listed "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest" along with same specific condition arguments.
However I searched through the Developer Community and couldn't find reference for these Tick History data extracts. Can you please point me to the relevant documentation and some example code?
I tried posting TickHistoryTimeAndSalesExtractionRequest requests. I wrapped the argument lists and posted the request. However I'm getting generic 404 error: requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
json={
"ExtractionRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest","ContentFieldNames": content_field_names,"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList","InstrumentIdentifiers": instrument_identifiers
},"Condition": condition}}
content_field_names=[
"Trade - Date",
"Trade - Exchange Time",
"Trade - High",
"Trade - Low",
"Trade - Open",
"Trade - Open Interest",
"Trade - Orderbook VWAP",
"Trade - Price",
"Trade - Qualifiers",
"Trade - Total Volume",
"Trade - Turnover",
"Trade - Volatility",
"Trade - Volume",
],
instrument_identifiers=[
{"Identifier": "Gc1", "IdentifierType": "Ric"},
],
condition={
"MessageTimeStampIn": "",
"ReportDateRangeType": "Range",
"QueryStartDate": "2019-01-03T23:45:00.000Z",
"QueryEndDate": "2019-01-16T20:30:00.000Z",
"DisplaySourceRIC": True
}
regards
Best Answer
-
Hi @nelson.lam,
You can find more information about the extractions in the following tutorials
- TickHistoryTimeAndSalesExtraction
The endpoint used for these extractions needs to be ExtractRaw.
With regard to the 404 error, it seems that your application cannot access the DSS server. Is the application behind a proxy?
0
Answers
-
Hi Veerapath,
I was able to run Extractions.ReportTemplates.ReportTemplateTypes'TickHistoryTimeAndSales' so I believe I can get to DSS server.
Thanks for pointing out the corresponding tutorials. I missed them completely before. Reading through the tutorial I think I need to use ExtractRaw with Post method. I'll give that a try
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
- 279 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
- 716 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 中文论坛