Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
  • Refinitiv Data Platform Libraries /
avatar image
Question by vijay.singh · Oct 27, 2020 at 08:26 AM · access deniedrefinitiv.dataplatform

Unable to Open RDP Platform Session

I am not able to open Open RDP Platform Session.

username : vijay.singh@gslab.com

appkey : e84e*************************42408


Code

import refinitiv.dataplatform as rdp

import configparser as cp

cfg = cp.ConfigParser()

cfg.read('rdp.cfg')


# 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()



Error

2020-10-27 13:40:45,138 - Session session.platform - Thread 13440 | MainThread [Error 400 - access_denied] None


app key



rdp-error-1.jpg (75.3 KiB)
rdp-error-2.jpg (53.0 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

8 Replies

  • Sort: 
avatar image
Best Answer
Answer by vijay.singh · Oct 29, 2020 at 09:07 AM

@wasin.waeosri, Could you please let me know that among RKD and RDP, which one will be more suitable for below requirement:


  • mode : Batch processing

  • language : python

  • Purpose : Data analytics on company fundamental and financial data. Flexibility in reading the data in an API request (example for a given company, read only the specified features for specified time range, in quarterly or annual basis, in csv format).

  • Preferred data format : csv

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
wasin.waeosri ♦♦ · Nov 03, 2020 at 02:47 AM 0
Share
Hello @vijay.singh
Sorry for the late reply, I have contacted the RDK and RKD team to help you verify this question.
avatar image
REFINITIV
Answer by wasin.waeosri · Oct 27, 2020 at 09:05 AM

Hello @vijay.singh

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.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by vijay.singh · Oct 27, 2020 at 09:22 AM

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.


rdp-error-4.jpg (113.6 KiB)
rdp-error-1.jpg (75.3 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by wasin.waeosri · Oct 27, 2020 at 09:32 AM

Hello @vijay.singh

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.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by moragodkrit.chumsri_1 · Oct 27, 2020 at 09:33 AM

@vijay.singh

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?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by vijay.singh · Oct 27, 2020 at 09:52 AM

@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()".


rdp-error-5.jpg (83.5 KiB)
Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
wasin.waeosri ♦♦ · Oct 28, 2020 at 03:36 AM 0
Share

Hello @vijay.singh

You input parameters for the rdp.open_platform_session() method are correct. There is no additional parameter for permission. The permission is based on your credentials.

I found that you have contact Refinitiv Helpdesk regarding this issue. The Helpdesk and your Refinitiv representative are contacting the team that can help you verify the permission.

avatar image
REFINITIV
wasin.waeosri ♦♦ · Oct 28, 2020 at 09:32 AM 0
Share

Hi @vijay.singh

Additionally, what is version of RDP library, httpx and python you currently use? You can use the pip list command to verify the libraries versions.

avatar image
Answer by vijay.singh · Oct 28, 2020 at 09:46 AM

Hello @wasin.waeosri, PFB the version details:

python : 3.7.7

httpx : 0.14.2

refinitiv-dataplatform : 1.0.0a6

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
wasin.waeosri ♦♦ · Oct 29, 2020 at 07:44 AM 0
Share
Hello @vijay.singh
I just got information from your Refinitiv representative. Could you please confirm if you want to get data via Refinitiv Knowledge Direct API (RKD - formerly known as TRKD) or RDP/ RDP Libraries?
avatar image
Answer by vijay.singh · Oct 29, 2020 at 08:07 AM

@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.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
wasin.waeosri ♦♦ · Oct 29, 2020 at 08:57 AM 0
Share

@vijay.singh

Thank you for clarification, please let me introduce the APIs resource pages that should be helpful for you

If you are interested in RKD API:

  • RKD API product page
  • RKD API page on Developer Portal

If you are interested in Eikon Data API

  • Eikon Data API page

If you are interested in RDP

  • RDP APIs page
  • RDP Libraries page
  • Discover our Refinitiv Data Platform Library part 1 and part 2

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

Where can I find the source code for Refinitiv.DataPlatform .NET?

issue to use refinitiv_dataplatform with python

refinitiv-dataplatform Streaming fails

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges