get_data with specific ISIN and Exchange
Hi,
I would like to receive 'CF_BID', 'CF_ASK', 'BIDSIZE', 'ASKSIZE' of a specific ISIN and exchange.
This is working well for an ISIN as identifier:
# retrieve RIC from ISIN
DATA, err = ek.get_data(['US02079K3059'], ['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)
The result is based on GOOGL.OQ.
How can I change the exchange? I would like to receive data for the german Exchange Tradegate. The RIC is ABEA.TG.
Any ideas?
Best Answer
-
Dear @Bjorn8 ,
I would suggest two approaches to achieve the desired outcome:
1. using get_symbology function by specifying parameter value of best_match to FALSE which will return all RICs.
rics = ek.get_symbology('US02079K3059', from_symbol_type="ISIN", to_symbol_type="RIC", best_match = False)
rics['RICs'].to_list()The drawback of this approach is that it returns list of all RICs without specifying the exchanges. So you would need to hand select the RIC you want from the list of all RICs.
2. Using search function from RD Library:
response = search.Definition(
query = 'US02079K3059',
select = ' RIC, ExchangeCode',
top = 100
).get_data().data.df
ric = response.loc[res['ExchangeCode'] == 'TDG']
ricThis will allow to get a dataframe with a RIC from the exchange you specify in your query.
From here you can use get_data function from Eikon or RD to request date for 'CF_BID', 'CF_ASK', 'BIDSIZE', 'ASKSIZE' fields. Posting here an example of get_data function from RD:
rd.get_data('ABEA.TG', fields = ['CF_BID', 'CF_ASK', 'BIDSIZE', 'ASKSIZE' ])
You will find the GitHub repo for RD library QuickStart and Examples useful to connect and use the API.
I hope this was helpful. Feel free to let me know if you have any further questions.
Best regards,
Haykaz
0
Answers
-
Hi @Bjorn8
You should be able to achieve what you want using the RDP Symbology API - e.g.
{
"from": [
{
"values": [
{
"RDNExchangeCode": "TDG",
"Isin": "US02079K3059"
},
{
"RDNExchangeCode": "NSQ",
"Isin": "US02079K3059"
}
]
}
],
"to": [
{
"identifierTypes": [
"RIC"
],
"objectTypes": [
"EdfQuote"
]
}
],
"type": "predefined",
"route": "IsinVenueToQuote"
}gives:
[{'input': [{'value': 'US02079K3059', 'identifierType': 'Isin'},
{'value': 'NSQ', 'identifierType': 'RDNExchangeCode'}],
'output': [{'value': 'GOOGL.O', 'identifierType': 'RIC'}]},
{'input': [{'value': 'US02079K3059', 'identifierType': 'Isin'},
{'value': 'TDG', 'identifierType': 'RDNExchangeCode'}],
'output': [{'value': 'ABEA.TG', 'identifierType': 'RIC'}]}]This would require using the Endpoint interface of the RD Library (as the symbol_conversion uses a different API at the moment)
You can see an example of the Symbology API being used with the Endpoint interface at Example.DataLibrary.Python/EX-3.01.01-Endpoint.ipynb - if you refer to the Body Parameter: example towards bottom of that notebook.
As you will note, you can provide multiple input values in a single request.
1
Categories
- All Categories
- 6 AHS
- 38 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 中文论坛