Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /

For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
REFINITIV
Question by susie.di · Aug 09, 2021 at 10:45 AM · elektronrefinitiv-realtimeelektron-sdkrrt

I cannot get the market_price_rdpgw_service_discovery.py from website. Would you please send it to me for testing? Thanks.

I cannot get the market_price_rdpgw_service_discovery.py from website. Would you please send it to me for testing? Thanks.

1628505770061.png

1628505770061.png (111.5 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
REFINITIV
Best Answer
Answer by umer.nalla · Aug 09, 2021 at 11:31 AM

Hi @susie.di

Please look in the RDP\Python folder

1628508531890.png

You can also access the individual examples on Github websocket-api/Applications/Examples/RDP/python at master · Refinitiv/websocket-api (github.com)



1628508531890.png (16.8 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.w · Aug 10, 2021 at 05:11 AM

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)


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 umer.nalla · Aug 10, 2021 at 08:30 AM

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.

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
umer.nalla ♦♦ · Aug 10, 2021 at 08:33 AM 0
Share
Hi @susie.di and @ngbmk

When posting screenshots etc, please remove machineIDs and email addresses - as well as passwords - this is a public forum.

avatar image
REFINITIV
Answer by umer.nalla · Aug 10, 2021 at 08:50 AM

Hi @ngbmk - I have deleted your last post as you included both machineID and user email address - both of which are client confidential information


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 umer.nalla · Aug 10, 2021 at 09:00 AM

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.


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 ngbmk · Aug 10, 2021 at 09:29 AM

Hi @susie.di @umer.nalla

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." }

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 umer.nalla · Aug 10, 2021 at 09:46 AM

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.

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 ngbmk · Aug 10, 2021 at 10:50 AM

hi @umer.nalla

i just sent the mail to you.

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.

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 >
10 People are following this question.

Related Questions

Connection between Kondor DRT and Realtime Optimize

to directly connect to RCC to contribute data which approach is better 1.) Real time SDK or 2.) websocket? Please list the pro and cons of both approaches?

TIMACT_MS is in milliseconds but since when?

APIToken service throws HTTP 403 to our request

To directly connect to RCC which is a better solution(websocket vs real time SDK) in terms of performance for us. Our use case is to send the pricing data every 10 seconds?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • 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
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges