Response Bug in get_data

When I query multiple instruments with get_data I get an error, whereas one instrument returns data. I have included the relevant queries below. This looks like a bug or at least some odd undocumented behaviour.
eikon.get_data(
['0#CS-PADD1-US',],
['CRD_STREAM'],
raw_output=True
)
{
"columnHeadersCount": 1,
"data": [
[
"PD1ABOCRDSLT",
"Abo"
],
[
"PD1AGBCRDSLT",
"Agbami"
],
...
],
"headerOrientation": "horizontal",
"headers": [
[
{
"displayName": "Instrument"
},
{
"displayName": "CRD_STREAM",
"field": "CRD_STREAM"
}
]
],
"rowHeadersCount": 1,
"totalColumnsCount": 2,
"totalRowsCount": 187
}
Whereas querying multiple series I get field errors.
eikon.get_data(
['0#CS-PADD1-US', '0#CS-PADD3-US'],
['CRD_STREAM'],
raw_output=True
)
{
"columnHeadersCount": 1,
"data": [
[
"0#CS-PADD1-US",
null
],
[
"0#CS-PADD3-US",
null
]
],
"error": [
{
"code": 251658244,
"col": 1,
"message": "Error: Field 'CRD_STREAM' was not found in response for the instrument '0#CS-PADD1-US'",
"row": 0
},
{
"code": 251658244,
"col": 1,
"message": "Error: Field 'CRD_STREAM' was not found in response for the instrument '0#CS-PADD3-US'",
"row": 1
}
],
"headerOrientation": "horizontal",
"headers": [
[
{
"displayName": "Instrument"
},
{
"displayName": "CRD_STREAM",
"field": "CRD_STREAM"
}
]
],
"rowHeadersCount": 1,
"totalColumnsCount": 2,
"totalRowsCount": 3
}
The respective payloads of the queries are
{'Entity': {'E': 'DataGrid_StandardAsync', 'W': {'requests': [{'instruments': ['0#CS-PADD1-US'], 'fields': [{'name': 'CRD_STREAM'}]}]}}}
{'Entity': {'E': 'DataGrid_StandardAsync', 'W': {'requests': [{'instruments': ['0#CS-PADD1-US', '0#CS-PADD3-US'], 'fields': [{'name': 'CRD_STREAM'}]}]}}}
Best Answer
-
I have tested it with the TR function in Excel and it returns:
Both 0#CS-PADD1-US and 0#CS-PADD3-US are chain RICs and a chain RIC must be requested separately.
0
Answers
-
Thanks @jirapongse.phuriphanvichai. From the excel API the error is informative, e.g this is a chain and must be requested seperately. Via the json / python API the erorr message is not very helpful, i.e.
"error": [
{
"code": 251658244,
"col": 1,
"message": "Error: Field 'CRD_STREAM' was not found in response for the instrument '0#CS-PADD1-US'",
"row": 0
},It would probably be worth updating the backend service to have a more relevant error message similar to the Excel message?
0 -
I have tested with other chains RICs 0#.FTSE and 0#.SETI.
The get_data method can retrieve data for items in those chains properly. I am not sure why it doesn't work with ['0#CS-PADD1-US', '0#CS-PADD3-US']. I will contact the Eikon team to verify the problem.
0 -
@jirapongse.phuriphanvichai any new info on this?
0 -
There is no response back yet. I have tried another way by submitting a new case on your behalf to the support team. The case number is 08394071.
0 -
We got a response back from the development team. First, I would like to explain the internal design of the get_data method.
The get_data method calls the DataGrid API to retrieve data and then the DataGrid API gets data from ADC.
0#CS-PADD1-US is a commodity index that is not supported by ADC so ADC is unable to expand this commodity index chain.
The get_data method works because the DataGrid API can expand it. However, the DataGrid API can expand only one chain RIC in the request. Therefore, specifying two commodity indices in the get_data method doesn't work.
0#.FTSE and 0#.SETI work with the get_data method because ADC can expand those RICs.
The solution, for now, is using only one chain RIC in the request.
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
- 683 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
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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 中文论坛