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
Best Answer
-
@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
0
Answers
-
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.
0 -
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.
0 -
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.
0 -
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 = XXXXXXXXXXXXXXXI 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?0 -
@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()".
0 -
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.
0 -
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.
0 -
Hello @wasin.waeosri, PFB the version details:
python : 3.7.7
httpx : 0.14.2
refinitiv-dataplatform : 1.0.0a6
0 -
@vijay.singhHello
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?0 -
@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.
0 -
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:
If you are interested in Eikon Data API
If you are interested in RDP
- RDP APIs page
- RDP Libraries page
- Discover our Refinitiv Data Platform Library part 1 and part 2
0 -
@vijay.singhHello
Sorry for the late reply, I have contacted the RDK and RKD team to help you verify this question.0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 622 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 674 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛