What types of fund codes does the Eikon API support
There are many types of fund code, refer to the screenshot, what types of fund codes be supported when I using the Eikon get_data api? If I can use China Code CE as instruments param or not?
df, err = ek.get_data(instruments=[fund code], fields=[
"TR.RICCode",
"CF_NAME",
"CF_CURR",
"CF_DATE",
"CF_TIME",
"TR.FundLaunchDate"
])
Best Answer
-
Hi @anchu
If you want to convert China Code as an input code you may want to use this approach. Here the output is ANY but you can define to the one of your choice.import refinitiv.data as rd
rd.open_session()
url = 'https://api.refinitiv.com/discovery/symbology/v1/lookup';
body={
"from": [
{
"identifierTypes": [
"ChinaCode"
],
"values": [
"001751"
]
}
],
"to": [
{
"identifierTypes": [
"ANY"
]
}
],
"reference": [
"name",
"status",
"classification"
],
"type": "strict"
}
request = rd.delivery.endpoint_request.Definition(
method = rd.delivery.endpoint_request.RequestMethod.POST,
url = url,
body_parameters = body
)
response = request.get_data()
data = response.data.raw['data']
data1
Answers
-
@anchu , If possible use Lipper ID or the RIC that is just have the "LP" followed by the Lipper ID. The China code is too short so it usually not working as that part of the code can be part of other codes in other coding schemes. Longer code such as ISIN work pretty well.
I am not sure if the Eikon API can specify the coding scheme to do the matching, as I never saw any code can do that.
1 -
Hi @anchu , I only know the RDP Funds API have this ability, I am not sure if Eikon API or other API can do that or not. The sample query for the RDP Funds API to check cross-reference codes is:
https://api.refinitiv.com/data/funds/v1/assets?symbols=001751&properties=codes
You should get the JSON response as shown at the bottom of this message. That means you got the reference codes for your sample code "001751" as below. Notes, I think you need to check the JSON response to see if more than 1 records is returned and use the China Code to check to make sure you get the correct record just in case another coding scheme also got the same ID for another fund.
001751 RIC / Triarch Code LP68331664
001751 RIC LP68331664
001751 China Code FE 001751
001751 Perm ID 180683316
001751 RIC / Triarch Code LP68331664
001751 LipperId 68331664Sample JSON reponse:
{
"assets": [
{
"id": "001751",
"codes": [
{
"code": "RICTRIARCH",
"type": {
"id": "1425",
"name": "RIC / Triarch Code"
},
"values": [
{
"value": "LP68331664"
}
]
},
{
"code": "RIC",
"type": {
"id": "26",
"name": "RIC"
},
"values": [
{
"value": "LP68331664",
"date": "2015-09-15"
}
]
},
{
"code": "CHINA",
"type": {
"id": "5422",
"name": "China Code FE"
},
"values": [
{
"value": "001751"
}
]
},
{
"code": "OAID",
"type": {
"id": "36941",
"name": "Perm ID"
},
"values": [
{
"value": "18068331664"
}
]
},
{
"code": "CHINA_HLD",
"type": {
"id": "5422",
"name": "China Code FE"
},
"values": [
{
"value": "001751"
}
]
},
{
"code": "RIC_HLD",
"type": {
"id": "1425",
"name": "RIC / Triarch Code"
},
"values": [
{
"value": "LP68331664"
}
]
},
{
"code": "LIPPERID",
"type": {
"id": "4002",
"code": "LIPPERID",
"name": "LipperId"
},
"values": [
{
"value": "68331664"
}
]
}
]
}
],
"totalRecords": 1,
"fromIndex": 0,
"toIndex": 0,
"pageNumber": 0
}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 中文论坛