I am not able to open Open RDP Platform Session.
username : email@example.com
appkey : e84e*************************42408
import refinitiv.dataplatform as rdp
import configparser as cp
cfg = cp.ConfigParser()
# Open RDP Platform Session
session = rdp.open_platform_session(
username = cfg['rdp']['username'],
password = cfg['rdp']['password']
2020-10-27 13:40:45,138 - Session session.platform - Thread 13440 | MainThread [Error 400 - access_denied] None
@wasin.waeosri, Could you please let me know that among RKD and RDP, which one will be more suitable for below requirement:
Preferred data format : csv
The "access_denied" message indicates that it is the permission issue.
Could you please verify with the Postman authentication "Get Access Token" script? You can download the Postman collection at RDP API download page.RDP API download page. Please refer to the RDP Postman tutorial page regarding how to setup Postman environment.
Hi @wasin.waeosri, PFB the screenshot of error I am getting after running the timeSeries.py file.
python python timeSeries.py
This is downloaded from samples.zip: https://developers.refinitiv.com/en/api-catalog/refinitiv-data-platform/refinitiv-data-platform-apis/download
Also kindly let me know if I am missing any step. As of now I have just created account of Developers Refinitv Data Platform, created app_key and thereafter running the below code.
The timeSeries.py example returns "access_denied" when it tries to authenticate your credential with RDP Auth service.
I strongly suggest you contact your Refinitiv representative to help you verify your permission.
I just created a new rdptest.py with the following codes.
import refinitiv.dataplatform as rdp import configparser as cp cfg = cp.ConfigParser() cfg.read('rdp.cfg') print(cfg['rdp']['app_key']) print(cfg['rdp']['username']) print(cfg['rdp']['password']) # Open RDP Platform Session session = rdp.open_platform_session(cfg['rdp']['app_key'],rdp.GrantPassword(username = cfg['rdp']['username'],password = cfg['rdp']['password'])) session.get_open_state()
And then create rdp.cfg with my RDP login account.
[rdp] app_key = 1XXXXXXXXXXXXXXXXXXXXXXXXXb username = MXXXXXXX@cxcom password = XXXXXXXXXXXXXXX
I can log in without the issue, but if the username and password or app id is an invalid one, it will contain a reason text after "[Error 400 - access_denied] ". But your case seems to return None.
Do you have a chance to test just codes to open sessions like my codes with incorrect username password etc and does it print any additional message?
And what version of RDP library and python you currently use?
@wasin.waeosri, I think you are right that that there is not any programmatic issue, instead it is an permission issue.
@moragodkrit.chumsri_1, Yes I also tried it in the same way as you did and I get the "access_denied" erorr. Do you also suggest to contact the Refinitv Representative to get more clarity on required permission. It would be very helpful if you can tell what additional permissions are required to setup "rdp.open_platform_session()".
@wasin.waeosri,I had discussion with the Refinitve Representative and I am evaluating the available options i.e RKD, RDP, Eikon APIs.
Also the above access issue was because the account does not have permission to access RDP APIs. I will let you know if anything else is required on Q&A forum.
You did great help in getting the root cause of this access issue and providing the further leads. Thanks a lot for your support.
I signed up on this platform to access live stock market data but can't get the API access credentials to use the .NET library. I keep getting the 401 error page even for the quickstart page (details below). Is it a general problem or is it just for me?