why does the ld.get_data() not return anything for commodity options

for example, ld.get_data('C430X25', fields=['EXPIR_DATE'])
I used item code from data item browser.
Many thanks
Answers
-
Thank you for reaching out to us.
For me, it returns data properly.
You may need to enable the debug log by running the following code before opening a session.
config = ld.get_config()
config.set_param("logs.transports.file.enabled", True)
config.set_param("logs.transports.file.name", "lseg-data-lib.log")
config.set_param("logs.level", "debug")
ld.open_session()With this code, the lseg-data-lib.log file will be created.
Please remove any private information or credentials from the log file before sharing it. Once we have the log, we’ll be able to investigate the issue further.
0 -
Hi, i believe session is definitely established as I can use other lseg.data.content functions well and ld.get_date() works well as the example shown in the github. See attached screenshot.
0 -
log for your reference:
[2025-07-23T14:57:14.527798+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35824 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='C430X25' send open_message {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "C430X25"}, "View": ["EXPIR_DATE"]}[2025-07-23T14:57:14.527893+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35824 - OpenUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "C430X25"}, "View": ["EXPIR_DATE"]}[2025-07-23T14:57:14.528236+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35824 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='C430X25' wait open event[2025-07-23T14:57:14.696783+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [19568 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 5, "Type": "Status", "Key": {"Service": "ELEKTRON_DD", "Name": "C430X25"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(4927)"}}][2025-07-23T14:57:14.697015+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [19568 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] queued with priority 4: {"ID": 5, "Type": "Status", "Key": {"Service": "ELEKTRON_DD", "Name": "C430X25"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(4927)"}}[2025-07-23T14:57:14.697158+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [7288 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [omm_stream_connection] - [_process_message] - [OMMSTREAMING_PRICING_0.0] process message {"ID": 5, "Type": "Status", "Key": {"Service": "ELEKTRON_DD", "Name": "C430X25"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(4927)"}}[2025-07-23T14:57:14.697280+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [7288 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [_omm_cxn_listeners] - [callback] - _UniverseStream owner.id=0 id=5 name='C430X25' open event is set in StatusOMMListenerUniverseStm[2025-07-23T14:57:14.697441+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [7288 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [_omm_cxn_listeners] - [callback] - _UniverseStream owner.id=0 id=5 name='C430X25' open event is set in StatusOMMListenerUniverseStm[2025-07-23T14:57:14.697523+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35824 - OpenUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='C430X25' transition OpeningOMMStreamSt -> OpenOMMStreamSt[2025-07-23T14:57:14.697564+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [7288 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_get_messages] - [OMMSTREAMING_PRICING_0.0] received messages: 1 | processed messages: 1[2025-07-23T14:57:14.698405+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35728 - MainThread] - [_universe_streams] - [open_streams] - MixedStreams id=0 universe=['C430X25'] end open ['C430X25'][2025-07-23T14:57:14.698602+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35728 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['C430X25'] transition OpeningUniverseStreamsSt -> OpenUniverseStreamsSt[2025-07-23T14:57:14.698768+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35728 - MainThread] - [_basestream] - [close] - MixedStreams id=0 universe=['C430X25'] state=OpenUniverseStreamsSt close [2025-07-23T14:57:14.698877+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35728 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['C430X25'] transition OpenUniverseStreamsSt -> CloseUniverseStreamsSt[2025-07-23T14:57:14.698966+10:00] - [sessions.platform.kev-session.0] - [DEBUG] - [35728 - MainThread] - [_universe_streams] - [_do_close] - MixedStreams id=0 universe=['C430X25'] start close
0 -
It is a permission issue.
- [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 5, "Type": "Status", "Key": {"Service": "ELEKTRON_DD", "Name": "C430X25"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(4927)"}}][2025-07-23T14:57:14.697015+10:00] -
You can try this delayed RIC (/C430X25) instead.
ld.get_data('/C430X25', fields=['EXPIR_DATE'])
0 -
yes, it works. many thanks!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 35 Data Model Discovery
- 697 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 256 ETA
- 564 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 769 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
- 27 DACS Station
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 194 TREP Infrastructure
- 232 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 98 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛