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
Best Answer
-
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)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.
0
Answers
-
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'])
dfTo get real-time fields, you need to convert ISINs to RICs.
df, err = ek.get_data(
instruments = ['DE000PF2SQR3','DEPF2SQR.F'],
fields = ['CF_LAST'])
df0 -
@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
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 中文论坛