Is there a way to get data from multiple chains in Python API?

Trying to get data for two chains as follows:
data = ek.get_data(["0#USFN30=TWEB", "0#USFN15=TWEB"], ['CF_DATE','CF_NAME','COUPN_RATE','CF_BID', 'CF_ASK', 'SETTLEDATE'])
Getting the following error:
( Instrument CF_DATE CF_NAME COUPN_RATE CF_BID CF_ASK SETTLEDATE
0 0#USFN15=TWEB NaN UMBS 15YR NaN NaN NaN NaN
1 0#USFN30=TWEB NaN UMBS 30YR NaN NaN NaN NaN, [{'code': 251658244, 'col': 3, 'message': "Error: Field 'COUPN_RATE' was not found in response for the instrument '0#USFN15=TWEB'", 'row': 0}, {'code': 251658244, 'col': 4, 'message': "Error: Field 'CF_BID' was not found in response for the instrument '0#USFN15=TWEB'", 'row': 0}, {'code': 251658244, 'col': 5, 'message': "Error: Field 'CF_ASK' was not found in response for the instrument '0#USFN15=TWEB'", 'row': 0}, {'code': 251658244, 'col': 6, 'message': "Error: Field 'SETTLEDATE' was not found in response for the instrument '0#USFN15=TWEB'", 'row': 0}, {'code': 251658244, 'col': 3, 'message': "Error: Field 'COUPN_RATE' was not found in response for the instrument '0#USFN30=TWEB'", 'row': 1}, {'code': 251658244, 'col': 4, 'message': "Error: Field 'CF_BID' was not found in response for the instrument '0#USFN30=TWEB'", 'row': 1}, {'code': 251658244, 'col': 5, 'message': "Error: Field 'CF_ASK' was not found in response for the instrument '0#USFN30=TWEB'", 'row': 1}, {'code': 251658244, 'col': 6, 'message': "Error: Field 'SETTLEDATE' was not found in response for the instrument '0#USFN30=TWEB'", 'row': 1}])
When I run for one chain as follows:
data = ek.get_data("0#USFN15=TWEB", ['CF_DATE', 'CF_NAME','COUPN_RATE','CF_BID', 'CF_ASK', 'SETTLEDATE'])
I am able to retrieve pricing.
Best Answer
-
This question has been escalated to the case 07876995 .
The support team has investigated the question and gave this answer.
"As for the question about SIFMA settlement calendar, this is purely a content search question. You can advise the user that SIFMA MBS settlement calendar is available from chain 0#MBSSETTLE1. "
0
Answers
-
Hi @fuadnasir
I believe that these 2 RICs are not chain RIC.
75 = small non-Monitor page
120 =
link record (Chain RIC)So when you combined them in a list, the API does not understand that this is a chain RIC.
I have few examples below:
So you have loop your code to request for a single "small non-monitor page" ric and append the result into a result list.
0 -
I don't quite agree with the conclusion @chavalit-jintamalit drew here, as I reproduce the same issue using other chains such as 0#EUR= where FID 259 has the correct value corresponding to a link record.
@fuadnasirI suggest you raise this to Refinitiv Helpdesk. I would have done it on your behalf, but you chose to register on this portal with a personal email address, which effectively makes you anonymous.
In the meantime the obvious workaround is to retrieve two chains separately and combine the dataframes.0 -
Not resolved. Help desk is asking me to post on the dev community here, and the dev community is asking me to post on Help desk. So I'm going round in circles.
0 -
@fuadnasir
Could you provide the case number the Helpdesk gave you?0 -
@fuadnasir
Could you provide the case number the Helpdesk gave you?0 -
Case:: 07876995
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 629 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛