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
REFINITIV
Question by Almir Purisic · May 13 at 09:35 AM · eikon-data-apiricsisinwarrants

Warrant data on ISIN via Eikon Data API

Dear all,

I'm too much of a noob when it comes to Python so I would need your help in the following client query. Client is trying to use ISIN for Warrants traded at Frankfurt Stock Exchange like (DE000PF2SQR3 or DE000UH5CN61) to extract CF_BID, CF_ASK etc without needing to pick out RICs everytime. My "code" to first extract RICs and then the data items looks like this:

DATA = ek.get_data(['DE000PF2SQR3', 'DE000UH5CN61'],

['TR.RIC'])

df, err = ek.get_data([DATA],

['CF_NAME','CF_BID', 'CF_ASK', 'BIDSIZE', 'ASKSIZE', 'CF_EXCHNG'])

display(df)


Unfortunately it seems to not use the RICs as DATA and therefore doesnt return any values. Your help in correcting my code would be highly appreciated :)

Kind regards,

Almir

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 raksina.samasiri · May 13 at 09:46 AM

Hi @Almir Purisic ,

as ek.get_data function returns the output dataframe and error message, so it's recommended to be used like the below. Plus, it has to be converted to a Python list before being passed into ek.get_data as a list of instruments. Please see an example code below and let me know if you have any questions

# retrieve RIC from ISIN
DATA, err = ek.get_data(['DE000PF2SQR3', 'DE000UH5CN61'], ['TR.RIC'])

# convert RICs to list to be used
ric_lists = DATA['RIC'].to_list()

# get data
df, err = ek.get_data(ric_lists,
                      ['CF_NAME','CF_BID', 'CF_ASK', 'BIDSIZE', 'ASKSIZE', 'CF_EXCHNG'])
display(df)

1652435048501.png

However, I'm not sure why some of the data is <NA>, you can check the content with support team via MyRefinitiv so the content specialist can help assist you on this.


1652435048501.png (35.5 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 Jirapongse · May 13 at 10:14 AM

@Almir Purisic

These fields (['CF_NAME','CF_BID', 'CF_ASK', 'BIDSIZE', 'ASKSIZE', 'CF_EXCHNG'])) are in the Real-Time category. Typically, we subscribe to get real-time data by using RICs. I assume that this is why those real-time fields can't be used with ISINs.

You can use ISINs with TR fields, such as TR.ClosePrice, and TR.OpenPrice fields.

df, err = ek.get_data(
instruments = ['DE000PF2SQR3','DE000UH5CN61'],
fields = ['TR.ClosePrice','TR.OpenPrice'])
df

1652436327135.png

To get real-time fields, you need to convert ISINs to RICs.

df, err = ek.get_data(
instruments = ['DE000PF2SQR3','DEPF2SQR.F'],
fields = ['CF_LAST'])
df

1652436695419.png




1652436327135.png (12.9 KiB)
1652436695419.png (11.0 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 Almir Purisic · May 20 at 10:51 AM

@raksina.samasiri thanks a million! This has helped us sell an Eikon Global Equities license and displace the competition. In my CodeBook it somehow was able to pull the data. I had no N/A as results. Have a nice weekend! Cheers, Almir

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

Related Questions

Unable to download Fund price

Get Historical Prices from Bond ISIN

Why CF_CURR does not return currency when asking same instrument via different types of identifier?

Search for bonds on Eikon Data API (using Python)

How do I retrieve RIC codes of stock symbols for a country, e.g. Canada?

  • 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