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