question

Upvotes
Accepted
262 12 15 18

Tick History Intraday Summaries python Error

When I try to extract Tick History Intraday Summaries extraction using attached python file from our developers portal <https://developers.refinitiv.com/en/api-catalog/refinitiv-tick-history/refinitiv-tick-history-rth-rest-api/download&gt;

I am receiving below error message:

ConnectionError: HTTPSConnectionPool(host='hosted.datascopeapi.reuters.com', port=443): Max retries exceeded with url: /RestApi/v1/Extractions/ExtractRaw (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000218F3E65040>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
tick-history-rest-api
icon clock
10 |1500

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

Hello @Beera.Rajesh

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS


Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

Hello @Beera.Rajesh,

Looks like your connection is timing out, failing to establish a connection to DSS endpoints. I am able to run the example without issues, after first replacing the placeholder DSS credentials with valid.

Can we check what are your versions of

python:

python

Requests library:

python -m pip freeze | findstr requests

And openssl library version, I suspect you are on windows, 64 bit, run command shell as administrator:

"C:\Program Files\OpenSSL-Win64\bin\openssl" version


icon clock
10 |1500

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

Hi @zoya.farberov Here are my details:

Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32

C:\Program Files>OpenSSL-Win64\bin\openssl

OpenSSL> version

OpenSSL 1.1.1j 16 Feb 2021




Hi @Beera.Rajesh

The above looks good, is requests module installed?

Do you find it with pip freeze?

If in doubt, please check:

python -m pip install requests

let me know how this works for you?

Otherwise, the next thing to look at is connectivity. Does it behave the same with company VPN on and off?


Hi @zoya.farberov It worked fine with VPN off. Thank you.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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