I cannot get the market_price_rdpgw_service_discovery.py from website. Would you please send it to m
I cannot get the market_price_rdpgw_service_discovery.py from website. Would you please send it to me for testing? Thanks.
Best Answer
-
Hi @susie.di
Please look in the RDP\Python folder
You can also access the individual examples on Github websocket-api/Applications/Examples/RDP/python at master · Refinitiv/websocket-api (github.com)
0
Answers
-
@umer.nalla we got below warning message after we run market_price_rdpgw_service_discovery.py . Could you check and advise?
0 -
Hello @susie.di
It seems the example code encounters the issue during the authentication process with the RDP APIs Auth service.
I am noticed that you are using the email-based username, not the Machine-ID. Please note that the RTO connections require the Machine-ID username type (GE-XXXXX). Did you get the Machine-ID from the Welcome email yet? I suggest you check the Welcome email again and try the step-by-step guide on the "Getting Start with the Machine ID" section of the Getting Started with Refinitiv Data Platform article.
This old post also helps you regarding the difference between email ID (for RDP HTTP REST APIs) and Machine ID (for RTO connection).
Once you have set up your Machine-ID, Password, and AppKey (aka Client_ID), you can test the credentials via the following cURL command or Python code.
curl --location --request POST 'https://api.refinitiv.com/auth/oauth2/v1/token'; \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer ' \
--data-urlencode 'username=<Machine ID>' \
--data-urlencode 'password=<Password>' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'scope=trapi' \
--data-urlencode 'takeExclusiveSignOnControl=true' \
--data-urlencode 'client_id=<App Key>'or Python Code
import requests
reqUrl = "https://api.refinitiv.com/auth/oauth2/v1/token"
headersList = {
"Accept": "*/*",
"User-Agent": "Python",
"Content-Type": "application/x-www-form-urlencoded"
}
payload = "username=<Machine ID>&password=<Password>&client_id=<App Key>&grant_type=password&takeExclusiveSignOnControl=true&scope=trapi"
response = requests.request("POST", reqUrl, data=payload, headers=headersList)
print(response.text)0 -
still failed. please help
0 -
Hi @ngbmk
Looking at the screenshot, the password is too short to be a MachineID password.
did they click the link in the Welcome email and set the long password for the machineID?
Please follow the instructions as per the link provided - Step 2 of the Welcome Email is the one where the long password is set.
0 -
-
hi umer.nalla ;
may i clarify the userid, GE-A-00171812-3-4545 or NGBMK@hkbea.com? i am use NGBMK@hkbea.com to logon refinitiv website. if the userid is GE-A-00171812-3-4545, would you please advise the password of GE-A-00171812-3-4545 and NGBMK@hkbea.com are the same, or not?
0 -
Hi @ngbmk - I have deleted your last post as you included both machineID and user email address - both of which are client confidential information
0 -
Hi @ngbmk
Please refer to the Getting Started with Refinitiv Data Platform article which my colleague linked previously - it provides detailed instructions.
For RTO connection you need to use your MachineID - GE-A-xxxxxx with a long password set using the link in the Welcome Email as described in the above article.
0 -
i just use payload = "username=GE-A-xxxxxx&password=long password sent by Susie&client_id=babbxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&grant_type=password&takeExclusiveSignOnControl=true&scope=trapi" to test connection, it still show {"error":"access_denied" ,"error_description":"Invalid username or password." }
0 -
Hi @ngbmk
I cannot confirm what the long password would be that Susie sent you. Normally the customer uses the link in the Welcome Email to set the long password.
The error message you are seeing would indicate that the password is not valid.
I have just tried to reset your password - so you should receive an email which should allow you to set the long password yourself.
Please confirm if the email was received.
0 -
i just sent the mail to you.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛