Unable to extract data from API

API.zip

Hello Everyone,

I am new to this organization (3 months old) but i have a pretty decent understanding of python. So i was testing how to extract the data from an API from API Playground but when i put in the APP key and download the data, I get a 404 error message. Can someone please assist me on this? Attached the zip file with the .ipynb file.


Best Answer

Answers

  • @subhashis.bose

    Thanks for reaching out to us.

    First, you need to get an access token from the RDP Authentication service and then use the access token to connect to other RDP services.

    You can refer to the answer in this discussion.

    I hope that this information is of help.

  • Hello Jirapongse.. I already have the app key from eikon as well as the machine ID and Machine password. I have set the code in such a way that i need to manually input them upon running the code and then it will extract the data. But its still not happening.
  • @subhashis.bose

    You need the application key when you are using Eikon Data API or Refinitiv Data Libraries to retrieve data from the Desktop session.

    To retrieve data directly from RDP (https://api.refinitiv.com/data/historical-pricing/v1/intraday-summaries), you need the machine ID, password, and client_id.

    Use the machine ID, password, and client_id to get an access token. Then use the access token to get the data. Please refer to the Quick Start of Refinitiv Data Platform APIs.

    Otherwise, you can use Refinitiv Data Library for Python to retrieve data from RDP. The Refinitiv Data Library for Python provides a set of ease-of-use interfaces offering coders uniform access to the breadth and depth of financial data and services available on the Refinitiv Data Platform.

  • thank you so much... I will start studying on it and will improve my code on the basis of the same
  • Thank you so much
  • @Jirapongse Kindly find attached my updated code. Please remember that i am not a coder by profession and I am still learning. Kindly take a look at it and please help me correct it.API_upd.zip