question

Upvotes
Accepted
3 0 0 0

Report suppressed because no instruments are permitted

hi there,

I am trying to run your python example for RTH download, i simply copied the code from:

https://developers.refinitiv.com/en/article-catalog/article/request-tick-history-time-and-sales-data-using-python

but i get these error messages below and the output file is empty.

__main__
Login to DSS Server
Send Login request
Token=_qhzRQRkEbfBT14OFnWoq7ndbfndmOEfv5oumyXBZZ8lQpuJLE4alE8XxuTKKDAuG4M1Yr38vM195JP0KyjF8ijzQ6_gNXDS06pyv1vm6bFYnDIK1ZKmTsPIWdiyH-vfroL13n-c0aZsFnXELwi4PKehho9P5jjJlihWTMsK0MDeeRH7Z7YYKFbt9ucFVqC3X0SbmRFj-hG-6LBBJ1_jsmlthmvJsIh9tfiGQm5uadM4FufBbX4xqWihBAyBsTncXQI9ucuRnPN1ZsQs5A4nMq05_gTEI5VZ7OZbb08DUesE
OrderedDict([('ExtractionRequest', OrderedDict([('@odata.type', '#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryTimeAndSalesExtractionRequest'), ('ContentFieldNames', ['Trade - Price', 'Trade - Volume', 'Trade - Exchange Time']), ('IdentifierList', OrderedDict([('@odata.type', '#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList'), ('InstrumentIdentifiers', [OrderedDict([('Identifier', 'PEUP.PA'), ('IdentifierType', 'Ric')])])])), ('Condition', OrderedDict([('MessageTimeStampIn', 'GmtUtc'), ('ApplyCorrectionsAndCancellations', 'False'), ('ReportDateRangeType', 'Range'), ('QueryStartDate', '2016-09-29T00:00:00.000Z'), ('QueryEndDate', '2016-09-29T12:00:00.000Z'), ('DisplaySourceRIC', 'True')]))]))])
Status Code=200
Status is completed the JobID is 0x075dda1e01b71e51
Notes:
======================================
Extraction Services Version 14.3.42012 (5bce45a491e6), Built Dec 7 2020 18:13:00
User ID: 9027506
Extraction ID: 2000000207049132
Schedule: 0x075dda1e01b71e51 (ID = 0x0000000000000000)
Input List (1 items): (ID = 0x075dda1e01b71e51) Created: 2020-12-16 21:48:59 Last Modified: 2020-12-16 21:48:59
Report Template (3 fields): _OnD_0x075dda1e01b71e51 (ID = 0x075dda1e01d71e51) Created: 2020-12-16 21:48:58 Last Modified: 2020-12-16 21:48:58
Schedule dispatched via message queue (0x075dda1e01b71e51)
Schedule Time: 2020-12-16 21:48:58
Processing started at 2020-12-16 21:48:58
Processing completed successfully at 2020-12-16 21:48:59
Extraction finished at 2020-12-16 21:48:59 UTC, with servers: x04q13
Instrument <RIC,PEUP.PA> expanded to 1 RIC: PEUP.PA.
Total instruments after instrument expansion = 1
Your request was truncated due to your Contract Entitlement
Report suppressed because no instruments are permitted
======================================
Retrieve result from https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/RawExtractionResults('0x075dda1e01b71e51')/$value
Write output to ./TestOutput4437.csv.gz completed


pythontick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
23k 22 9 14

Hello @Mehdi,

You will be able to extract TimeAndSales if your user id is permissioned for TimeAndSales report template and for instruments that are included in the request. As, in this case, you do not appear to be permissioned for the only valid instrument that is requested, therefore, the result is empty.

I would like to suggest contacting your Refinitiv account manager, who will be the best person to confirm the instruments your Refinitiv Tick History user id is permissioned for, as well as which report templates your user id is permissioned for, and then request accordingly, in confidence.

If it's easier, you can verify by using Datascope GUI interface, logging in with your Refinitiv Tick History user id and password, and request instruments you require that way, to examine, the permissions per user id will be consistent between API access and the DSS GUI access.

Hope this helps

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea