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

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by lebenjohnson.mannariat · Apr 22, 2019 at 11:37 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonequitiesside-by-side-apiportfolio-management

Python Eikon API to Reuters Stock Screen

Hi, As part of my portfolio optimization, I test out various stocks and optimize their weights to have max returns for min risk. I can have these list of stocks as individual buttons, which when clicked I would like to provide key metrics of them. Rather than trying to download the details and provide them, which is no value add from my side, I would like to access Eikon's stocks screen, where I pass the stock instrument symbol and have the same screen (like in Eikon) pop up through the API. Makes my life easy and would be able to access all the wealth of information from Eikon at the portfolio's fingertips, rather than going back into Eikon and typing the stock symbol. Is there anyway I can access this through Eikon API.

Thanks in advance.

Regards

Leben

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.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by chavalit-jintamalit · Apr 23, 2019 at 12:24 AM

Hi @lebenjohnson.mannariat

You can use Side by Side Integration API to send command to Eikon to open a stock screen.

You can find the information here.

This is my sample command to launch a page for IBM.N symbol.

{
  "command": "launch",
  "appId": "GxHOME",
  "context": "{\n  \"entities\": [ { \"RIC\": \"IBM.N\" } ]\n}",
  "sessionToken": "<your Side by Side Integration API session token"
}

And I got this page pop up in my Eikon Desktop.


ibmn.jpg (186.5 KiB)
Comment
jonathan.legrand

People who like this

1 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 lebenjohnson.mannariat · Apr 23, 2019 at 05:14 AM

Hi,

Thanks that worked. However I would need to send the commands through Postman. Is there a way I could send the commands from a Python program through the Eikon API, while having the hand shake established through Postman running in the background.

Appreciate your help.

Thanks & Regards

Leben

Comment
jonathan.legrand

People who like this

1 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
chavalit-jintamalit ♦♦ · Apr 23, 2019 at 06:23 AM 1
Share

Hi @lebenjohnson.mannariat

You can use Postman to generate sample Python code to send the same request which you tried it on Postman.

You can include this generated code in your Python application.
This is not part of Eikon Desktop Data APIs.

avatar image
REFINITIV
chavalit-jintamalit ♦♦ · Apr 23, 2019 at 06:33 AM 1
Share

This is generated code from Postman to send handshake command to Eikon Desktop from your Python program.

import requests

url = "http://127.0.0.1:9000/sxs/v1/"

payload = "{\r\n\t\"command\": \"handshake\",\r\n\t\"productId\": \"YOUR APP ID\",\r\n\t\"apiKey\": \"YOUR APP KEY\"\r\n}"
headers = {
    'Content-Type': "application/json",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
avatar image
Answer by lebenjohnson.mannariat · Apr 23, 2019 at 06:49 AM

Thanks,

I am able to get the code from Postman, that works perfectly.

Much appreciated.

Regards

Leben

Comment
Christiaan Meihsl
chavalit-jintamalit
jonathan.legrand

People who like this

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

Related Questions

there is a bug with the quarterly frequency of get_data() function

"Access Denied" for Nasdaq Rics even though permissioned on Eikon

Using TR.IsDelistedQuotes an the meaning of listed/deslited stocks.

Filtering companies by major countries of business operations. (E.g. Companies in the UK with major operations in the US).

What is the maximum port range that Eikon API will attempt to connect?

  • 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
  • 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
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges