I have generated App key for Eikon API and want to use it with Python but when I run the set app ...

...key command in Jupyter notebook, it gives me the error as shown in the attachment.

Screenshot 2021-10-18 224635.png

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @saad.ali

    I assumed that you are using the httpx version 0.20.0.

    I got the same error when using the Eikon Data API with the httpx 0.20.0.

    Please downgrade the version of the httpx to 0.19.0

     pip install httpx==0.19.0

    You can verify the httpx version by using the following command.

    C:\>pip show httpx
    Name: httpx
    Version: 0.19.0
    Summary: The next generation HTTP client.
    Home-page: https://github.com/encode/httpx
    Author: Tom Christie
    Author-email: tom@tomchristie.com
    License: BSD
    Location: c:\python37\lib\site-packages
    Requires: rfc3986, charset-normalizer, httpcore, sniffio, certifi
    Required-by: refinitiv-dataplatform, eikon

Answers