I'd like to pull the last trade price using lseg-data for a commodity.
After speaking to support through the platform, I was given the suggestion to ask on the forums. How can I replicate the same results from the picture above with lseg-data?
Hello @profision
The first picture seems to be captured from the Workspace Codebook application. Am I correct? If so, the CodeBook uses a Desktop Session (connects and gets data through Workspace platform) by default.
The second picture shows that you are using the "platform.ldp" configuration which connects and gets data through the Delivery/Data Platform (RDP or LDP APIs). The Workspace platform and Delivery Platform require different permission set and credential. Your Delivery Platform account might not have the same permission sets as your Workspace credential.
Please enable the log file and share us the login on this post, so we can check the issue in detail (Please remove your credential before posting!)
{ "logs": { "level": "debug", "transports": { "console": { "enabled": true }, "file": { "enabled": true, "name": "lseg-data-lib.log" } } }, "sessions": { "default": "platform.ldp", "platform": { "ldp": { ... } } } }
Alternatively, if you want to switch to use a Desktop Session instead (the Workspace Desktop Application must be running on the same machine!).
{ "logs": { ... }, "sessions": {"default": "desktop.workspace", "desktop": { "workspace": { "app-key": "Your App Key" } } } }
Hello @wasin.w
The issue is not in the credentials. We can move past this issue as I don't have any issue querying, for example, C3 SPOT (.BATB) using the same code:
df = ld.get_data( universe=['.BATB'], fields=["TRADE_DATE", "TRDPRC_1"] )
The issue I'm describing is specific to CFI2c1 and other Carbon Future tenors (CFI2c2, CFI2c3, etc.).
In my screenshots, I'm showing you what the LSEG Helpdesk is showing me when they tried to assist me. They are querying the same parameters using refinitiv-data using the Workspace Codebook Application as I am doing through the LDP API in my python code.
refinitiv-data
I'd like clarity on why I'm not getting data using lseg-data.
lseg-data
Here are the logs as well:
[2025-04-08T14:57:11.132402+01:00] - [ld] - [DEBUG] - [46684 - MainThread] - [_configure] - [log_debug] - LD version is 2.0.1; Python version is 3.10.16 | packaged by conda-forge | (main, Dec 5 2024, 14:07:43) [MSC v.1942 64 bit (AMD64)] [2025-04-08T14:57:11.162704+01:00] - [ld] - [DEBUG] - [46684 - MainThread] - [_configure] - [log_debug] - Cannot log installed packages, No module named 'pkg_resources' [2025-04-08T14:57:11.178421+01:00] - [ld] - [DEBUG] - [46684 - MainThread] - [_configure] - [log_debug] - Read configs: P:\Profision Shared\Market Analysis & Trading\Dan\refinitiv_eikon\lseg-data.config.json, C:\Users\daniel.shao\lseg-data.config.json [2025-04-08T14:57:11.194069+01:00] - [ld] - [DEBUG] - [46684 - MainThread] - [_configure] - [load_config] - Load config from lseg-data.config.json [2025-04-08T14:57:18.072745+01:00] - [session] - [DEBUG] - [46684 - MainThread] - [_session] - [__init__] - Creating session "sessions.platform.ldp.0" based on session.platform.Definition("platform.ldp") [2025-04-08T14:57:18.296327+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_platform_session] - [_connection] - Created session connection SessionCxnType.PLATFORM_DATA [2025-04-08T14:57:18.315945+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_session_provider] - [session_provider] - Session created: PlatformSession name = ldp connection = PlatformDataConnection stream_auto_reconnection = True authentication_token_endpoint_url = https://api.refinitiv.com/auth/oauth2/v1/token signon_control = true server_mode = False state = OpenState.Closed session_id = 0 logger_name = sessions.platform.ldp.0 [2025-04-08T14:57:18.327548+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_session] - [open] - Open session [2025-04-08T14:57:18.383982+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_auth_manager] - [authorize] - AuthManager: start authorize [2025-04-08T14:57:18.397352+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [_auth_manager] - [_do_authorize] - AuthManager: Access token will be requested in 1e-05 seconds [2025-04-08T14:57:18.413153+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [http_service] - [build_request] - HTTP Request id 0 url = https://api.refinitiv.com/auth/oauth2/v1/token method = POST headers = {'Accept': 'application/json', 'x-tr-applicationid': '********'} data = {'scope': 'trapi', 'grant_type': 'password', 'username': '*******', 'password': ********, 'takeExclusiveSignOnControl': 'true', 'client_id': '********'} [2025-04-08T14:57:20.227897+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [http_service] - [request] - HTTP Response id 0 status_code = 200 text = { "access_token":"********", "refresh_token":"**********", "expires_in":"600" , "scope":"trapi.alerts.history.crud trapi.alerts.preferences.crud trapi.alerts.publication.crud trapi.alerts.subscription.crud trapi.auth.cloud-credentials trapi.cfs.claimcheck.read trapi.commodities.yesenergy.read trapi.data.api.msr_read trapi.data.average-volume-analytics.ava_read trapi.data.benchmark.bmk_read trapi.data.get.data.read trapi.data.historical-pricing.events.read trapi.data.historical-pricing.summaries.read trapi.data.portfolios.read trapi.data.portfolios.write trapi.data.quantitative-analytics.read trapi.data.symbology.advanced.read trapi.data.symbology.read trapi.data.wealth-clients.advisor_dashboard trapi.data.wealth-clients.wfdca trapi.frtb.sentimarization trapi.graphql.subscriber.access trapi.messenger trapi.metadata.nsa.read trapi.metadata.read trapi.platform.iam.acl_service trapi.platform.iam.groups trapi.platform.iam.guiss trapi.research-analytics.fx-impact-intelligence trapi.sdbold trapi.search.explore.read trapi.search.lookup.read trapi.search.metadata.read trapi.search.read trapi.searchcore.lookup.read trapi.searchcore.metadata.read trapi.searchcore.read trapi.streaming.prcperf.read trapi.streaming.pricing.read trapi.streaming.synthetic.read trapi.synthetic.crud trapi.tradefeedr.basic.read trapi.user-framework.application-metadata.raplib trapi.user-framework.mobile.crud trapi.user-framework.recently-used.crud trapi.user-framework.workspace.crud trapi.userdata.lists.read trapi.userdata.lists.write trapi.userdata.portfolio-management.read", "token_type":"Bearer" } [2025-04-08T14:57:20.235696+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [_access_token_updater] - [_request_token] - Latency: 1.8225433826446533 sec. Access token response: { "access_token":"********", "refresh_token":"************", "expires_in":"600" , "scope":"trapi.alerts.history.crud trapi.alerts.preferences.crud trapi.alerts.publication.crud trapi.alerts.subscription.crud trapi.auth.cloud-credentials trapi.cfs.claimcheck.read trapi.commodities.yesenergy.read trapi.data.api.msr_read trapi.data.average-volume-analytics.ava_read trapi.data.benchmark.bmk_read trapi.data.get.data.read trapi.data.historical-pricing.events.read trapi.data.historical-pricing.summaries.read trapi.data.portfolios.read trapi.data.portfolios.write trapi.data.quantitative-analytics.read trapi.data.symbology.advanced.read trapi.data.symbology.read trapi.data.wealth-clients.advisor_dashboard trapi.data.wealth-clients.wfdca trapi.frtb.sentimarization trapi.graphql.subscriber.access trapi.messenger trapi.metadata.nsa.read trapi.metadata.read trapi.platform.iam.acl_service trapi.platform.iam.groups trapi.platform.iam.guiss trapi.research-analytics.fx-impact-intelligence trapi.sdbold trapi.search.explore.read trapi.search.lookup.read trapi.search.metadata.read trapi.search.read trapi.searchcore.lookup.read trapi.searchcore.metadata.read trapi.searchcore.read trapi.streaming.prcperf.read trapi.streaming.pricing.read trapi.streaming.synthetic.read trapi.synthetic.crud trapi.tradefeedr.basic.read trapi.user-framework.application-metadata.raplib trapi.user-framework.mobile.crud trapi.user-framework.recently-used.crud trapi.user-framework.workspace.crud trapi.userdata.lists.read trapi.userdata.lists.write trapi.userdata.portfolio-management.read", "token_type":"Bearer" } [2025-04-08T14:57:20.254006+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [_auth_manager] - [_access_token_update_handler] - AuthManager: Access token handler, event: access_token_success, message: All is well [2025-04-08T14:57:20.268434+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [_auth_manager] - [_access_token_update_handler] - Access token ********. Expire in 600.0 seconds [2025-04-08T14:57:20.282195+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [_session] - [update_access_token] - Session.update_access_token(access_token='*********' [2025-04-08T14:57:20.547423+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25820 - AuthManager-Thread] - [_auth_manager] - [_do_authorize] - AuthManager: Refresh token will be requested in 298 seconds [2025-04-08T14:57:20.547423+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_auth_manager] - [authorize] - AuthManager: end authorize, result True [2025-04-08T14:57:20.573510+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_session] - [open] - Opened session [2025-04-08T14:58:15.289603+01:00] - [sessions.platform.ldp.0] - [INFO] - [46684 - MainThread] - [_data_provider] - [get_data_from_stream] - Requesting pricing info for fields=['CF_DATE', 'TRDPRC_1'] via websocket [2025-04-08T14:58:15.298971+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['CFI2c1'] state=UnopenedUniverseStreamsSt inited [2025-04-08T14:58:15.308848+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [open] - MixedStreams id=0 universe=['CFI2c1'] state=UnopenedUniverseStreamsSt open kwargs={'with_updates': False} [2025-04-08T14:58:15.319659+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['CFI2c1'] transition UnopenedUniverseStreamsSt -> OpeningUniverseStreamsSt [2025-04-08T14:58:15.342516+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='CFI2c1' state=UnopenedOMMStreamSt inited [2025-04-08T14:58:15.367904+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_universe_streams] - [open_streams] - MixedStreams id=0 universe=['CFI2c1'] start open ['CFI2c1'] [2025-04-08T14:58:15.393434+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_basestream] - [open] - _UniverseStream owner.id=0 id=5 name='CFI2c1' state=UnopenedOMMStreamSt open kwargs={'with_updates': False} [2025-04-08T14:58:15.412880+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='CFI2c1' transition UnopenedOMMStreamSt -> OpeningOMMStreamSt [2025-04-08T14:58:15.425267+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='CFI2c1' request cxn [2025-04-08T14:58:15.436176+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_auth_manager] - [verify_scope] - Scope for key=/streaming/pricing/v1/, method=GET not found. [2025-04-08T14:58:15.457851+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [http_service] - [build_request] - HTTP Request id 1 url = https://api.refinitiv.com/streaming/pricing/v1/ method = GET headers = {'Authorization': 'Bearer *********', 'x-tr-applicationid': '*********'} [2025-04-08T14:58:15.498201+01:00] - [RetryTransportBase] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_retry_transport] - [_handle_request] - Sending request to https://api.refinitiv.com/streaming/pricing/v1/ [2025-04-08T14:58:16.302279+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [http_service] - [request] - HTTP Response id 1 status_code = 200 text = {"services":[{"port":14002,"location":["ap-northeast-1a"],"transport":"tcp","provider":"aws","endpoint":"ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-northeast-1a","ap-northeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-northeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-northeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-northeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1a"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1a","ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-central-1a"],"transport":"tcp","provider":"aws","endpoint":"eu-central-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-central-1a","eu-central-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-central-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-central-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-central-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a","eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a"],"transport":"tcp","provider":"aws","endpoint":"us-east-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a","us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"us-east-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a","us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":443,"location":["ap-northeast-1a"],"transport":"websocket","provider":"aws","endpoint":"ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-northeast-1a","ap-northeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-northeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-northeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-northeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-southeast-1a"],"transport":"websocket","provider":"aws","endpoint":"ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-southeast-1a","ap-southeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-southeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-central-1a"],"transport":"websocket","provider":"aws","endpoint":"eu-central-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-central-1a","eu-central-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-central-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-central-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-central-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-west-1a"],"transport":"websocket","provider":"aws","endpoint":"eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-west-1a","eu-west-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-west-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-1a"],"transport":"websocket","provider":"aws","endpoint":"us-east-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-1a","us-east-1b"],"transport":"websocket","provider":"aws","endpoint":"us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-1b"],"transport":"websocket","provider":"aws","endpoint":"us-east-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-2a"],"transport":"websocket","provider":"aws","endpoint":"us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-2a","us-east-2b"],"transport":"websocket","provider":"aws","endpoint":"us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-2b"],"transport":"websocket","provider":"aws","endpoint":"us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]}]} [2025-04-08T14:58:16.318096+01:00] - [ld.stream-factory] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream_factory] - [create_stream_cxn] - + Created: cxn : OMMStreamConnection name : ThreadOMMSTREAMING_PRICING_0.0 state : StreamCxnState.Initial subprotocol : tr_json2 is_auto_reconnect: True can_reconnect : True num_attempt : 0 config : PlatformStreamCxnConfig headers=[],data_formats=['tr_json2'],supported_protocols=['OMM'],data_fmt=tr_json2 urls : wss://ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-northeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-northeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-central-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-central-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-central-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket [2025-04-08T14:58:16.330067+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream_cxn_cache] - [get_cxn] - + StreamCxnCache created new connection: id=0, daemon=False, content_type=ContentType.STREAMING_PRICING, protocol_type=ProtocolType.OMM [2025-04-08T14:58:16.330648+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [run] - [OMMSTREAMING_PRICING_0.0] wait start connecting [2025-04-08T14:58:16.355697+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream_cxn_cache] - [get_cxn] - StreamCxnCache wait for connection: id=0, content_type=ContentType.STREAMING_PRICING, protocol_type=ProtocolType.OMM [2025-04-08T14:58:16.385483+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [run] - [OMMSTREAMING_PRICING_0.0] is connecting [2025-04-08T14:58:16.413744+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_run_websocket_listener] - [OMMSTREAMING_PRICING_0.0] connect num_attempt : 0 url : wss://ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket headers : ['User-Agent: Python'] cookies : None transport : websocket subprotocols: ['tr_json2'] [2025-04-08T14:58:17.335118+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_ws_open] - [OMMSTREAMING_PRICING_0.0] on_ws_open [2025-04-08T14:58:17.349377+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_ws_open] - [OMMSTREAMING_PRICING_0.0] send login message {'Domain': 'Login', 'ID': 2, 'Key': {'Elements': {'AuthenticationToken': '************', 'ApplicationId': '256', 'Position': '10.10.11.43/PSCM-DXB-PC31'}, 'NameType': 'AuthnToken'}} [2025-04-08T14:58:19.209147+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 2, "Type": "Refresh", "Domain": "Login", "Key": {"Name": "AQIC5wM2LY4Sfcz6SXOQcy%2BEaXHSjx4gQusj%2B4%2B7UCe8p68%3D%40AAJTSQACMTAAAlNLABM3MzcwMzEzMjk2MDc2NjgzMzMwAAJTMQACMjY%3D%23", "Elements": {"AllowSuspectData": 1, "ApplicationId": "256", "ApplicationName": "RTO", "AuthenticationErrorCode": 0, "AuthenticationErrorText": {"Type": "AsciiString", "Data": null}, "AuthenticationTTReissue": 1746799097, "Position": "10.10.11.43/PSCM-DXB-PC31", "ProvidePermissionExpressions": 1, "ProvidePermissionProfile": 0, "SingleOpen": 1, "SupportEnhancedSymbolList": 1, "SupportOMMPost": 1, "SupportPauseResume": 0, "SupportStandby": 1, "SupportStandbyMode": 3, "SupportBatchRequests": 7, "SupportViewRequests": 1, "SupportOptimizedPauseResume": 0}}, "State": {"Stream": "Open", "Data": "Ok", "Text": "Login accepted by host ads-fanout-sm-az1-apne1-prd."}, "Elements": {"PingTimeout": 30, "MaxMsgSize": 65535}}] [2025-04-08T14:58:19.213681+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream_cxn_cache] - [get_cxn] - <=== StreamCxnCache connection id=0 is ready [2025-04-08T14:58:19.226245+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='CFI2c1' received cxn=ThreadOMMSTREAMING_PRICING_0.0 [2025-04-08T14:58:19.236977+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='CFI2c1' send open_message {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "CFI2c1"}, "View": ["CF_DATE", "TRDPRC_1"]} [2025-04-08T14:58:19.251003+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "CFI2c1"}, "View": ["CF_DATE", "TRDPRC_1"]} [2025-04-08T14:58:19.261987+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='CFI2c1' wait open event [2025-04-08T14:58:19.531089+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 5, "Type": "Status", "Key": {"Service": "ELEKTRON_DD", "Name": "CFI2c1"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(3997)"}}] [2025-04-08T14:58:19.560565+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46360 - 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": "CFI2c1"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(3997)"}} [2025-04-08T14:58:19.582428+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46360 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [_omm_cxn_listeners] - [callback] - _UniverseStream owner.id=0 id=5 name='CFI2c1' open event is set in StatusOMMListenerUniverseStm [2025-04-08T14:58:19.597358+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46360 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [_omm_cxn_listeners] - [callback] - _UniverseStream owner.id=0 id=5 name='CFI2c1' open event is set in StatusOMMListenerUniverseStm [2025-04-08T14:58:19.597358+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='CFI2c1' transition OpeningOMMStreamSt -> OpenOMMStreamSt [2025-04-08T14:58:19.631686+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_universe_streams] - [open_streams] - MixedStreams id=0 universe=['CFI2c1'] end open ['CFI2c1'] [2025-04-08T14:58:19.642737+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['CFI2c1'] transition OpeningUniverseStreamsSt -> OpenUniverseStreamsSt [2025-04-08T14:58:19.660795+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [close] - MixedStreams id=0 universe=['CFI2c1'] state=OpenUniverseStreamsSt close [2025-04-08T14:58:19.678139+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['CFI2c1'] transition OpenUniverseStreamsSt -> CloseUniverseStreamsSt [2025-04-08T14:58:19.704422+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_universe_streams] - [_do_close] - MixedStreams id=0 universe=['CFI2c1'] start close [2025-04-08T14:58:19.716662+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [1692 - CloseUniverseStreams-Thread_0] - [_basestream] - [close] - _UniverseStream owner.id=0 id=5 name='CFI2c1' state=OpenOMMStreamSt close [2025-04-08T14:58:19.736363+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [1692 - CloseUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='CFI2c1' transition OpenOMMStreamSt -> CloseOMMStreamSt [2025-04-08T14:58:19.769969+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [1692 - CloseUniverseStreams-Thread_0] - [_stream] - [_do_close] - _UniverseStream owner.id=0 id=5 name='CFI2c1' send close_message {"ID": 5, "Type": "Close"} [2025-04-08T14:58:19.797337+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [1692 - CloseUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Type": "Close"} [2025-04-08T14:58:19.845279+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [1692 - CloseUniverseStreams-Thread_0] - [_stream] - [_do_close] - _UniverseStream owner.id=0 id=5 name='CFI2c1' release cxn=ThreadOMMSTREAMING_PRICING_0.0 [2025-04-08T14:58:19.861095+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [1692 - CloseUniverseStreams-Thread_0] - [_stream_cxn_cache] - [release] - StreamCxnCache release (item=CacheItem(cxn=ThreadOMMSTREAMING_PRICING_0.0, number_in_use=0), content_type=ContentType.STREAMING_PRICING, session=ldp) [2025-04-08T14:58:19.893336+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_universe_streams] - [_do_close] - MixedStreams id=0 universe=['CFI2c1'] end close [2025-04-08T14:58:19.916447+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_data_df_builder] - [build_df] - [DataDFBuilder.build_df] Start [2025-04-08T14:58:19.989563+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_data_df_builder] - [build_df] - [DataDFBuilder.build_df] End [2025-04-08T14:58:20.123753+01:00] - [sessions.platform.ldp.0] - [INFO] - [46684 - MainThread] - [session] - [close_session] - Closing session [2025-04-08T14:58:20.150949+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_session] - [close] - Closing session 'ldp' [2025-04-08T14:58:20.163785+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [65540 - CloseCxns-Thread_0] - [stream_connection] - [start_disconnecting] - [OMMSTREAMING_PRICING_0.0] is disconnecting [dis] [2025-04-08T14:58:20.175273+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [65540 - CloseCxns-Thread_0] - [stream_connection] - [dispose] - [OMMSTREAMING_PRICING_0.0] is disposing [d], StreamCxnState.Disconnected [2025-04-08T14:58:20.189863+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [65540 - CloseCxns-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] cannot send message: state=StreamCxnState.Disposed, message={"Domain": "Login", "ID": 2, "Type": "Close"} [2025-04-08T14:58:20.464869+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_ws_close] - [OMMSTREAMING_PRICING_0.0] on_ws_close: close_status_code=None, close_msg=None, state=StreamCxnState.Disposed [2025-04-08T14:58:20.464869+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [65540 - CloseCxns-Thread_0] - [stream_connection] - [dispose] - [OMMSTREAMING_PRICING_0.0] disposed [D] [2025-04-08T14:58:20.484114+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [dispose] - [OMMSTREAMING_PRICING_0.0] cannot dispose, StreamCxnState.Disposed [2025-04-08T14:58:20.527823+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_sts_auth_manager] - [close] - AuthManager: close [2025-04-08T14:58:20.643744+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [http_service] - [build_request] - HTTP Request id 2 url = https://api.refinitiv.com/auth/oauth2/v1/revoke method = POST headers = {'Authorization': 'Bearer *********', 'Content-type': 'application/x-www-form-urlencoded', 'x-tr-applicationid': '*********'} data = {'token': '********', 'token_type_hint': 'access_token', 'client_id': '*********'} [2025-04-08T14:58:21.091482+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [http_service] - [request] - HTTP Response id 2 status_code = 200 [2025-04-08T14:58:21.115504+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [revoke_token] - [revoke_token] - Access token was revoked. [2025-04-08T14:58:21.128709+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [http_service] - [build_request] - HTTP Request id 3 url = https://api.refinitiv.com/auth/oauth2/v1/revoke method = POST headers = {'Authorization': 'Bearer *********', 'Content-type': 'application/x-www-form-urlencoded', 'x-tr-applicationid': '*********'} data = {'token': '********', 'token_type_hint': 'access_token', 'client_id': '*********'} [2025-04-08T14:58:22.777616+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [http_service] - [request] - HTTP Response id 3 status_code = 200 [2025-04-08T14:58:22.830734+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [revoke_token] - [revoke_token] - Refresh token was revoked. [2025-04-08T14:58:22.857922+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [46684 - MainThread] - [_session] - [close] - Closed session 'ldp' [2025-04-08T14:58:22.876671+01:00] - [sessions.platform.ldp.0] - [INFO] - [46684 - MainThread] - [session] - [close_session] - Session is closed
Thank you for the information. I checked the given log messages. I found the following messages:
The library sent request message for CFI2c1 item:
[2025-04-08T14:58:19.251003+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [64004 - OpenUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "CFI2c1"}, "View": ["CF_DATE", "TRDPRC_1"]}
The library received a status response message from the backend:
[2025-04-08T14:58:19.531089+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [39584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 5, "Type": "Status", "Key": {"Service": "ELEKTRON_DD", "Name": "CFI2c1"}, "State": {"Stream": "Closed", "Data": "Suspect", "Code": "NotEntitled", "Text": "Access Denied: User req to PE(3997)"}}]
The "Code": "NotEntitled", "Text": "Access Denied: User req to PE(3997)" status message indicates that your credential does not have a permission to request CFI2c1 (and possibly other Carbon Future tenors items) from the Platform Session (RDP).
This issue cannot be fixed via the code. I strongly suggest you contact your LSEG representative or Account Manager to help you add the permissions to request items that you need.
My credential has permission to request CFI2c1. Here's another request asking for fields=['TR.SETTLEMENTPRICE', 'TR.SETTLEMENTPRICE.Date']
fields=['TR.SETTLEMENTPRICE', 'TR.SETTLEMENTPRICE.Date']
[2025-04-09T14:23:44.726578+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_data_df_builder] - [build_df] - [DataDFBuilder.build_df] Start [2025-04-09T14:23:44.756604+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_data_df_builder] - [build_df] - [DataDFBuilder.build_df] End [2025-04-09T14:23:44.761621+01:00] - [sessions.platform.ldp.0] - [INFO] - [23244 - MainThread] - [_get_adc_data] - [get_adc_data] - Requesting ['TR.SETTLEMENTPRICE.DATE', 'TR.SETTLEMENTPRICE'] for ['CFI2Zc1', 'CFI2Zc2', 'CFI2Zc3', 'CFI2Zc4', 'CFI2Zc5', 'CFI2Zc6', 'CFI2Zc7', 'CFI2Zc8', 'CFI2Zc9', 'CFI2Zc10', 'CFI2c1', 'CFI2c2', 'CFI2c3', 'CFI2c4', 'CFI2c5', 'CFI2c6', 'CFI2c7', 'CFI2c8', 'CFI2c9', 'CFI2c10', 'CFI2c11', 'CFI2c12', 'CFI2c13', 'CFI2c14', 'CFI2c15', 'CFI2c16', 'CFI2c17', 'CFI2c18', 'CFI2c19'] [2025-04-09T14:23:44.769065+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_definition_base] - [_update_content_type] - UDF DataGrid service cannot be used with platform sessions, RDP DataGrid will be used instead. The "/apis/data/datagrid/underlying-platform = 'udf'" parameter will be discarded, meaning that the regular RDP DataGrid service will be used for Fundamental and Reference data requests. [2025-04-09T14:23:44.772086+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_auth_manager] - [verify_scope] - Scope for key=/data/datagrid/beta1/, method=POST not found. [2025-04-09T14:23:44.777122+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [http_service] - [build_request] - HTTP Request id 4 url = https://api.refinitiv.com/data/datagrid/beta1/ method = POST headers = {'request-timeout': '20', 'x-tr-applicationid': 'LD-PYTHON-LIB', 'Content-Type': 'application/json', 'Authorization': "********"''} json = {'universe': ['CFI2Zc1', 'CFI2Zc2', 'CFI2Zc3', 'CFI2Zc4', 'CFI2Zc5', 'CFI2Zc6', 'CFI2Zc7', 'CFI2Zc8', 'CFI2Zc9', 'CFI2Zc10', 'CFI2c1', 'CFI2c2', 'CFI2c3', 'CFI2c4', 'CFI2c5', 'CFI2c6', 'CFI2c7', 'CFI2c8', 'CFI2c9', 'CFI2c10', 'CFI2c11', 'CFI2c12', 'CFI2c13', 'CFI2c14', 'CFI2c15', 'CFI2c16', 'CFI2c17', 'CFI2c18', 'CFI2c19'], 'fields': ['TR.SETTLEMENTPRICE.DATE', 'TR.SETTLEMENTPRICE']} [2025-04-09T14:23:55.901657+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [7584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"Type": "Ping"}] [2025-04-09T14:23:55.903662+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25136 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [omm_stream_connection] - [_process_message] - [OMMSTREAMING_PRICING_0.0] process message {"Type": "Ping"} [2025-04-09T14:23:55.911118+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [25136 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"Type": "Pong"} [2025-04-09T14:23:56.542135+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [http_service] - [request] - HTTP Response id 4 status_code = 200 text = {"links":{"count":29},"variability":"","universe":[{"Instrument":"CFI2Zc1","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc2","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc3","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc4","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc5","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc6","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc7","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc8","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc9","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2Zc10","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c1","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c2","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c3","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c4","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c5","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c6","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c7","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c8","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c9","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c10","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c11","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c12","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c13","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c14","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c15","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c16","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c17","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c18","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."},{"Instrument":"CFI2c19","Company Common Name":null,"Organization PermID":"Failed to resolve identifier(s).","Reporting Currency":"Failed to resolve identifier(s)."}],"data":[["CFI2Zc1","2025-04-08T00:00:00",62.06],["CFI2Zc2","2025-04-08T00:00:00",63.74],["CFI2Zc3","2025-04-08T00:00:00",65.8],["CFI2Zc4","2025-04-08T00:00:00",68.17],["CFI2Zc5","2025-04-08T00:00:00",70.76],["CFI2Zc6","2025-04-08T00:00:00",74.03],["CFI2Zc7",null,null],["CFI2Zc8",null,null],["CFI2Zc9",null,null],["CFI2Zc10",null,null],["CFI2c1","2025-04-08T00:00:00",61.04],["CFI2c2","2025-04-08T00:00:00",61.14],["CFI2c3","2025-04-08T00:00:00",61.3],["CFI2c4","2025-04-08T00:00:00",61.56],["CFI2c5","2025-04-08T00:00:00",61.74],["CFI2c6","2025-04-08T00:00:00",62.06],["CFI2c7","2025-04-08T00:00:00",62.52],["CFI2c8","2025-04-08T00:00:00",62.94],["CFI2c9","2025-04-08T00:00:00",63.23],["CFI2c10","2025-04-08T00:00:00",63.38],["CFI2c11","2025-04-08T00:00:00",63.74],["CFI2c12","2025-04-08T00:00:00",64.25],["CFI2c13","2025-04-08T00:00:00",65.15],["CFI2c14","2025-04-08T00:00:00",65.8],["CFI2c15","2025-04-08T00:00:00",66.98],["CFI2c16","2025-04-08T00:00:00",68.17],["CFI2c17","2025-04-08T00:00:00",70.76],["CFI2c18","2025-04-08T00:00:00",74.03],["CFI2c19",null,null]],"messages":{"codes":[[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-2,-2],[-1,-2,-2],[-1,-2,-2],[-1,-2,-2],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-1,-1],[-1,-2,-2]],"descriptions":[{"code":-2,"description":"empty"},{"code":-1,"description":"ok"}]},"headers":[{"name":"instrument","title":"Instrument","type":"string","description":"The requested Instrument as defined by the user."},{"name":"TR.SETTLEMENTPRICE","title":"Date","type":"datetime","description":"Settlement price. The official closing price of a futures or option contract set by the clearing house at the end of the trading day."},{"name":"TR.SETTLEMENTPRICE","title":"Settlement Price","type":"number","decimalChar":".","description":"Settlement price. The official closing price of a futures or option contract set by the clearing house at the end of the trading day."}]} [2025-04-09T14:23:56.548485+01:00] - [sessions.platform.ldp.0] - [INFO] - [23244 - MainThread] - [_get_adc_data] - [get_adc_data] - Request to /data/datagrid/beta1/ with ['TR.SETTLEMENTPRICE.DATE', 'TR.SETTLEMENTPRICE'] for ['CFI2Zc1', 'CFI2Zc2', 'CFI2Zc3', 'CFI2Zc4', 'CFI2Zc5', 'CFI2Zc6', 'CFI2Zc7', 'CFI2Zc8', 'CFI2Zc9', 'CFI2Zc10', 'CFI2c1', 'CFI2c2', 'CFI2c3', 'CFI2c4', 'CFI2c5', 'CFI2c6', 'CFI2c7', 'CFI2c8', 'CFI2c9', 'CFI2c10', 'CFI2c11', 'CFI2c12', 'CFI2c13', 'CFI2c14', 'CFI2c15', 'CFI2c16', 'CFI2c17', 'CFI2c18', 'CFI2c19'] status code: 200 [2025-04-09T14:23:56.557211+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_data_df_builder] - [build_df] - [DataDFBuilder.build_df] Start [2025-04-09T14:23:56.574977+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_data_df_builder] - [build_df] - [DataDFBuilder.build_df] End [2025-04-09T14:23:56.595809+01:00] - [sessions.platform.ldp.0] - [INFO] - [23244 - MainThread] - [session] - [close_session] - Closing session [2025-04-09T14:23:56.602831+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_session] - [close] - Closing session 'ldp' [2025-04-09T14:23:56.612455+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [4876 - CloseCxns-Thread_0] - [stream_connection] - [start_disconnecting] - [OMMSTREAMING_PRICING_0.0] is disconnecting [dis] [2025-04-09T14:23:56.620541+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [4876 - CloseCxns-Thread_0] - [stream_connection] - [dispose] - [OMMSTREAMING_PRICING_0.0] is disposing [d], StreamCxnState.Disconnected [2025-04-09T14:23:56.628100+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [4876 - CloseCxns-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] cannot send message: state=StreamCxnState.Disposed, message={"Domain": "Login", "ID": 2, "Type": "Close"} [2025-04-09T14:23:56.788033+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [7584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_ws_close] - [OMMSTREAMING_PRICING_0.0] on_ws_close: close_status_code=None, close_msg=None, state=StreamCxnState.Disposed [2025-04-09T14:23:56.789018+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [4876 - CloseCxns-Thread_0] - [stream_connection] - [dispose] - [OMMSTREAMING_PRICING_0.0] disposed [D] [2025-04-09T14:23:56.794017+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [7584 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [dispose] - [OMMSTREAMING_PRICING_0.0] cannot dispose, StreamCxnState.Disposed [2025-04-09T14:23:56.818563+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [_sts_auth_manager] - [close] - AuthManager: close [2025-04-09T14:23:56.923972+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [23244 - MainThread] - [http_service] - [build_request] - HTTP Request id 5
TRDPRC_1 field is a real-time field. It uses a different endpoint from the TR.xxx fields.
The error indicates that your account doesn't have permission to access real-time data for CFI2c1.
You can try a delayed RIC (/CFI2c1) instead.
But my account does have access to real time data for CFI2c1. I can see intraday price movement directly in the Workspace app as well as through the Excel Add-In.
So why doesn't it work through the lseg-data python library?
It is a delayed RIC (/CFI2c1).
Could you please enable the log, replicate the issue with /CFI2c1 and CF_BID, CF_ASK fields, then share the log file to let us check in detail?
Please note that your Platform Session (RDP) and Workspace/Eikon account may have different permissions.
[2025-04-10T12:44:36.085966+01:00] - [sessions.platform.ldp.0] - [INFO] - [28612 - MainThread] - [_data_provider] - [get_data_from_stream] - Requesting pricing info for fields=['CF_BID', 'CF_ASK'] via websocket [2025-04-10T12:44:36.086552+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['/CFI2c1'] initialized to state=UnopenedUniverseStreamsSt [2025-04-10T12:44:36.087191+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [open] - MixedStreams id=0 universe=['/CFI2c1'] state=UnopenedUniverseStreamsSt open kwargs={'with_updates': False} [2025-04-10T12:44:36.087705+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['/CFI2c1'] transition UnopenedUniverseStreamsSt -> OpeningUniverseStreamsSt [2025-04-10T12:44:36.088514+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' initialized to state=UnopenedOMMStreamSt [2025-04-10T12:44:36.089083+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_universe_streams] - [open_streams] - MixedStreams id=0 universe=['/CFI2c1'] start open ['/CFI2c1'] [2025-04-10T12:44:36.090042+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_basestream] - [open] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' state=UnopenedOMMStreamSt open kwargs={'with_updates': False} [2025-04-10T12:44:36.090880+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' transition UnopenedOMMStreamSt -> OpeningOMMStreamSt [2025-04-10T12:44:36.091706+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' request cxn [2025-04-10T12:44:36.094335+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_auth_manager] - [verify_scope] - Scope for key=/streaming/pricing/v1/, method=GET not found. [2025-04-10T12:44:36.096643+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [http_service] - [build_request] - HTTP Request id 3 url = https://api.refinitiv.com/streaming/pricing/v1/ method = GET headers = {'Authorization': 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImJlcGpHV0dkOW44WU9VQ1NwX3M3SXlRMmlKMFkzeWRFaHo1VDJJVlNqWTgiLCJ0eXAiOiJhdCtqd3QifQ.eyJhdWQiOiJiNmI0YTZkMWJjODI0ZWZmOWIyMTBkOGJmNTBiMTAyMTFkOWViOGQzIiwiZGF0YSI6IntcImNpcGhlcnRleHRcIjpcIjNOLWdsYTN6Y19oX010S25aUDdjUmNLM3R2TllfanREY2RMSG9mT2RLVTBkdFJma1hEOVRjeVRjWVZyRjR3cHRPSFVDMk11b0FrMkNUSlVEMnZxSEZhVjFLV1JYVjZNMmZ4UWI5TVJvU0FuMjNCcFFhSHZ6cUc0eUd0R1ZxNk42R3N0TnhNSGtycThPZnkxSVM4MHBlUHlkMkVVNW1xRkI1dWhzSDZCRGNNY0tQXzFzemo1dkkyT2pjdHNHRGJfZkpnZGRnNGY3OE1LRlotMWowZllkSkxrcVZoU2dsTDRKaERUSVl1MEIzZXdzRUt5NWp1dVhlOFU3cllaYmZUekNpcV9iNGlnMWVZeFlTT3ZvbG1Zbms5dk93M2FsS1ZmaUhlNU9lZ0c4QTB0MTJXanp1Q2Ywb1d0LURpZnRTQWoteG9xbnZTZTBsZ3B1VnFwclpLWFo5RWczay1wS1c5cm5fRk80cTZMYWlVbTJUMnNmMEswc1RBeEJkNEkyT0FlREE5NVd3b0oyTUlpMDdYQ1E3Y3hkZ01ka2lmYktrNXJMYkd1WUlmSi1nZktISElhVUc3V0FLZF9lRGtoV2V1Rlh1UnpUTjhqTmxMV19rdENfcUtoNFZ2cDJmNngxV1EtRFEzQlNsWkptN1liWW5lZUc1OGV1OEdtUFlxV0NtOXduSXcwVk0zT29GT3hIbkxFaFBic2hmU1M2UXdKVTR1dkt1TTRIRkdudi1OSmtQUjNpd2g3UXM5MXpVSlZCWndjNlMyVTRGTlZ3MTJzY0o4bnNfZ19ENllxRzdBQXQtcE9zQ2IzTWNmaEV3NWl3MDhFX25Xa053c1FsZ1VxcDlkVWx2RVEzY1ZPMlUxZDdTYlFnQ2ZqZUpwZmZ5cU9zVFVZMEpYcXRvRzZrYXo1OEE2RWZnN3R4b2haUkRIU0pXd3RydU1vMTJlODJMak1YbE5BcXdodl9fU3A0Y0l1NWVzamtQQnBGREtWU0JGcHpNcEkzek9qT01CcWhLdmFjcDNQeWdqYTR3Vy1rV1RDMkNyY0xTdVJBRmI1LXNOLUg3TkgxT09GVThpLXM0NWROWjh0NG93YlFHSGdVR0w3QVVfUTFYVXh1NG1kdFlvdVowWmpSbktRMlVGejZ2cUVFNEd0S2dUbE5XZDJzTXhjbDBxaXEtZVp1ZW1lWk5pdDdfUlpMOVFzd3ViT0p5SllUdUNSTWJlSXFFWHJNRFNEdEVQZm13eUdYei1YMlpWVkRmdFRpdXRZUzFkcnNPUTk2UkR6dXNlczg4ZVNMRFpiY2Rfd3VySjhSaElsUWczNmpNZ0tBVU1LMFAyYjZnZ3ZDQlc3ZUJyeE5zRFIxZ0hkLTVDNThPc2FLNlBWOWlQVkFNMTFTZXdVMEF2RDB6bF8ySXZncWFXZFBKX1ZCNWlEMlR4cmVDazhcIixcImVuY3J5cHRlZF9rZXlcIjpcIkFRSUJBSGc0MnEyZXBScGU0WklaZDU4dHVhQkVPcVYtME4temZpWmZhSTVRd1NEQm9BRTE2bUFHR0VOOV9mM3NyaHJDS2lFVUFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTU1vd095Nnd5aGdkVm1jQUtBZ0VRZ0R2WXdWbDl3S1ZiakJ0Y2JyQzZfc2JGV0JfQWFQOHNfRV9jNi1LMGllRWRqTV9JZ3lOSl85V0ZHT3hKTXNwMk5RZDFJclc0SUFPT2MwN3JqUVwiLFwiaGVhZGVyXCI6e1wia2lkXCI6XCJhcm46YXdzOmttczphcC1zb3V0aGVhc3QtMTo4OTgwODQ5ODQ4Nzc6a2V5L21yay1jNzljNGNmNmI5NzA0NjQxYWQ4ZDkyZjYyNDRjODM1MFwifSxcIml2XCI6XCI1YTVhWk9Ub24zc21VQWxJXCIsXCJwcm90ZWN0ZWRcIjpcImV5SmhiR2NpT2lKQlYxTmZSVTVEWDFORVMxOUJNalUySWl3aVpXNWpJam9pUVRJMU5rZERUU0lzSW5wcGNDSTZJa1JGUmlKOVwiLFwidGFnXCI6XCI1aE1BcnBUY1N0SjVSak4wSnVXcVpRXCJ9IiwiZXhwIjoxNzQ0Mjg2MDQwLCJpYXQiOjE3NDQyODU0NDAsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuY2lhbS5yZWZpbml0aXYuY29tL2FwaS9pZGVudGl0eS9zdHNfcHJvZCIsInJzMSI6IjBlMzI3Y2IzMDc5ZGUxNWYxZTVhMGNmMWU1NmJlMmEwYWY3YWQ5Y2EifQ.iWa82fhf_x9CUNqz6URRjYvr_6YlbbcBcrl0_M5FR5CUN-mTwJqNbzQ-aSbpfVAuoTY6__Xa9n9yq2oCxVSVvhtR47hhzx7f37bC9y3Ilg3FLXXM-BNhdJWNcMu53fYl8QhG4jc5KOGj7hGstE1pQ_7TeVkNMrRbmAPF9fqbaUrw6lhj0dWKoFPGEg7tAoIC0NqCRVdVv-ykZvAmqKU43h0NwGVAkCaYjXF9PPPhk9sBU3F-MYtBsQwaauRq2MaXPRiQAMuugt7C4hhWKxeWpEanCesi61kwjzTF-KfeA7yd7SXKbt94HS9_XhrhwWyyEW3HPsbcEX0bA_cZQ6vJKA', 'x-tr-applicationid': 'b6b4a6d1bc824eff9b210d8bf50b10211d9eb8d3'} [2025-04-10T12:44:36.099267+01:00] - [RetryTransportBase] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_retry_transport] - [_handle_request] - Sending request to https://api.refinitiv.com/streaming/pricing/v1/ [2025-04-10T12:44:36.899835+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [http_service] - [request] - HTTP Response id 3 status_code = 200 text = {"services":[{"port":14002,"location":["ap-northeast-1a"],"transport":"tcp","provider":"aws","endpoint":"ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-northeast-1a","ap-northeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-northeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-northeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-northeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1a"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1a","ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["ap-southeast-1b"],"transport":"tcp","provider":"aws","endpoint":"ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-central-1a"],"transport":"tcp","provider":"aws","endpoint":"eu-central-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-central-1a","eu-central-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-central-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-central-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-central-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1a","eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["eu-west-1b"],"transport":"tcp","provider":"aws","endpoint":"eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a"],"transport":"tcp","provider":"aws","endpoint":"us-east-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1a","us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-1b"],"transport":"tcp","provider":"aws","endpoint":"us-east-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2a","us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":14002,"location":["us-east-2b"],"transport":"tcp","provider":"aws","endpoint":"us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["rwf"]},{"port":443,"location":["ap-northeast-1a"],"transport":"websocket","provider":"aws","endpoint":"ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-northeast-1a","ap-northeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-northeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-northeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-northeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-southeast-1a"],"transport":"websocket","provider":"aws","endpoint":"ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-southeast-1a","ap-southeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["ap-southeast-1b"],"transport":"websocket","provider":"aws","endpoint":"ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-central-1a"],"transport":"websocket","provider":"aws","endpoint":"eu-central-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-central-1a","eu-central-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-central-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-central-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-central-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-west-1a"],"transport":"websocket","provider":"aws","endpoint":"eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-west-1a","eu-west-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["eu-west-1b"],"transport":"websocket","provider":"aws","endpoint":"eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-1a"],"transport":"websocket","provider":"aws","endpoint":"us-east-1-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-1a","us-east-1b"],"transport":"websocket","provider":"aws","endpoint":"us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-1b"],"transport":"websocket","provider":"aws","endpoint":"us-east-1-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-2a"],"transport":"websocket","provider":"aws","endpoint":"us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-2a","us-east-2b"],"transport":"websocket","provider":"aws","endpoint":"us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]},{"port":443,"location":["us-east-2b"],"transport":"websocket","provider":"aws","endpoint":"us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net","dataFormat":["tr_json2"]}]} [2025-04-10T12:44:36.901734+01:00] - [ld.stream-factory] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream_factory] - [create_stream_cxn] - + Created: cxn : OMMStreamConnection name : ThreadOMMSTREAMING_PRICING_0.0 state : StreamCxnState.Initial subprotocol : tr_json2 is_auto_reconnect: True can_reconnect : True num_attempt : 0 config : PlatformStreamCxnConfig headers=[],data_formats=['tr_json2'],supported_protocols=['OMM'],data_fmt=tr_json2 urls : wss://ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-northeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-northeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-southeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://ap-southeast-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-central-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-central-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-central-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-west-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-west-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://eu-west-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-1-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-2-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-2-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket wss://us-east-2-aws-2-sm.optimized-pricing-api.refinitiv.net:443/WebSocket [2025-04-10T12:44:36.904097+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream_cxn_cache] - [get_cxn] - + StreamCxnCache created new connection: id=0, daemon=False, content_type=ContentType.STREAMING_PRICING, protocol_type=ProtocolType.OMM [2025-04-10T12:44:36.905049+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream_cxn_cache] - [get_cxn] - StreamCxnCache wait for connection: id=0, content_type=ContentType.STREAMING_PRICING, protocol_type=ProtocolType.OMM [2025-04-10T12:44:36.905307+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [run] - [OMMSTREAMING_PRICING_0.0] wait start connecting [2025-04-10T12:44:36.907007+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [run] - [OMMSTREAMING_PRICING_0.0] is connecting [2025-04-10T12:44:36.908361+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_run_websocket_listener] - [OMMSTREAMING_PRICING_0.0] connect num_attempt : 0 url : wss://ap-northeast-1-aws-1-sm.optimized-pricing-api.refinitiv.net:443/WebSocket headers : ['User-Agent: Python'] cookies : None transport : websocket subprotocols: ['tr_json2'] [2025-04-10T12:44:37.697089+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_ws_open] - [OMMSTREAMING_PRICING_0.0] on_ws_open [2025-04-10T12:44:37.698250+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_ws_open] - [OMMSTREAMING_PRICING_0.0] send login message {'Domain': 'Login', 'ID': 2, 'Key': {'Elements': {'AuthenticationToken': 'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJlcGpHV0dkOW44WU9VQ1NwX3M3SXlRMmlKMFkzeWRFaHo1VDJJVlNqWTgiLCJ0eXAiOiJhdCtqd3QifQ.eyJhdWQiOiJiNmI0YTZkMWJjODI0ZWZmOWIyMTBkOGJmNTBiMTAyMTFkOWViOGQzIiwiZGF0YSI6IntcImNpcGhlcnRleHRcIjpcIjNOLWdsYTN6Y19oX010S25aUDdjUmNLM3R2TllfanREY2RMSG9mT2RLVTBkdFJma1hEOVRjeVRjWVZyRjR3cHRPSFVDMk11b0FrMkNUSlVEMnZxSEZhVjFLV1JYVjZNMmZ4UWI5TVJvU0FuMjNCcFFhSHZ6cUc0eUd0R1ZxNk42R3N0TnhNSGtycThPZnkxSVM4MHBlUHlkMkVVNW1xRkI1dWhzSDZCRGNNY0tQXzFzemo1dkkyT2pjdHNHRGJfZkpnZGRnNGY3OE1LRlotMWowZllkSkxrcVZoU2dsTDRKaERUSVl1MEIzZXdzRUt5NWp1dVhlOFU3cllaYmZUekNpcV9iNGlnMWVZeFlTT3ZvbG1Zbms5dk93M2FsS1ZmaUhlNU9lZ0c4QTB0MTJXanp1Q2Ywb1d0LURpZnRTQWoteG9xbnZTZTBsZ3B1VnFwclpLWFo5RWczay1wS1c5cm5fRk80cTZMYWlVbTJUMnNmMEswc1RBeEJkNEkyT0FlREE5NVd3b0oyTUlpMDdYQ1E3Y3hkZ01ka2lmYktrNXJMYkd1WUlmSi1nZktISElhVUc3V0FLZF9lRGtoV2V1Rlh1UnpUTjhqTmxMV19rdENfcUtoNFZ2cDJmNngxV1EtRFEzQlNsWkptN1liWW5lZUc1OGV1OEdtUFlxV0NtOXduSXcwVk0zT29GT3hIbkxFaFBic2hmU1M2UXdKVTR1dkt1TTRIRkdudi1OSmtQUjNpd2g3UXM5MXpVSlZCWndjNlMyVTRGTlZ3MTJzY0o4bnNfZ19ENllxRzdBQXQtcE9zQ2IzTWNmaEV3NWl3MDhFX25Xa053c1FsZ1VxcDlkVWx2RVEzY1ZPMlUxZDdTYlFnQ2ZqZUpwZmZ5cU9zVFVZMEpYcXRvRzZrYXo1OEE2RWZnN3R4b2haUkRIU0pXd3RydU1vMTJlODJMak1YbE5BcXdodl9fU3A0Y0l1NWVzamtQQnBGREtWU0JGcHpNcEkzek9qT01CcWhLdmFjcDNQeWdqYTR3Vy1rV1RDMkNyY0xTdVJBRmI1LXNOLUg3TkgxT09GVThpLXM0NWROWjh0NG93YlFHSGdVR0w3QVVfUTFYVXh1NG1kdFlvdVowWmpSbktRMlVGejZ2cUVFNEd0S2dUbE5XZDJzTXhjbDBxaXEtZVp1ZW1lWk5pdDdfUlpMOVFzd3ViT0p5SllUdUNSTWJlSXFFWHJNRFNEdEVQZm13eUdYei1YMlpWVkRmdFRpdXRZUzFkcnNPUTk2UkR6dXNlczg4ZVNMRFpiY2Rfd3VySjhSaElsUWczNmpNZ0tBVU1LMFAyYjZnZ3ZDQlc3ZUJyeE5zRFIxZ0hkLTVDNThPc2FLNlBWOWlQVkFNMTFTZXdVMEF2RDB6bF8ySXZncWFXZFBKX1ZCNWlEMlR4cmVDazhcIixcImVuY3J5cHRlZF9rZXlcIjpcIkFRSUJBSGc0MnEyZXBScGU0WklaZDU4dHVhQkVPcVYtME4temZpWmZhSTVRd1NEQm9BRTE2bUFHR0VOOV9mM3NyaHJDS2lFVUFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTU1vd095Nnd5aGdkVm1jQUtBZ0VRZ0R2WXdWbDl3S1ZiakJ0Y2JyQzZfc2JGV0JfQWFQOHNfRV9jNi1LMGllRWRqTV9JZ3lOSl85V0ZHT3hKTXNwMk5RZDFJclc0SUFPT2MwN3JqUVwiLFwiaGVhZGVyXCI6e1wia2lkXCI6XCJhcm46YXdzOmttczphcC1zb3V0aGVhc3QtMTo4OTgwODQ5ODQ4Nzc6a2V5L21yay1jNzljNGNmNmI5NzA0NjQxYWQ4ZDkyZjYyNDRjODM1MFwifSxcIml2XCI6XCI1YTVhWk9Ub24zc21VQWxJXCIsXCJwcm90ZWN0ZWRcIjpcImV5SmhiR2NpT2lKQlYxTmZSVTVEWDFORVMxOUJNalUySWl3aVpXNWpJam9pUVRJMU5rZERUU0lzSW5wcGNDSTZJa1JGUmlKOVwiLFwidGFnXCI6XCI1aE1BcnBUY1N0SjVSak4wSnVXcVpRXCJ9IiwiZXhwIjoxNzQ0Mjg2MDQwLCJpYXQiOjE3NDQyODU0NDAsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuY2lhbS5yZWZpbml0aXYuY29tL2FwaS9pZGVudGl0eS9zdHNfcHJvZCIsInJzMSI6IjBlMzI3Y2IzMDc5ZGUxNWYxZTVhMGNmMWU1NmJlMmEwYWY3YWQ5Y2EifQ.iWa82fhf_x9CUNqz6URRjYvr_6YlbbcBcrl0_M5FR5CUN-mTwJqNbzQ-aSbpfVAuoTY6__Xa9n9yq2oCxVSVvhtR47hhzx7f37bC9y3Ilg3FLXXM-BNhdJWNcMu53fYl8QhG4jc5KOGj7hGstE1pQ_7TeVkNMrRbmAPF9fqbaUrw6lhj0dWKoFPGEg7tAoIC0NqCRVdVv-ykZvAmqKU43h0NwGVAkCaYjXF9PPPhk9sBU3F-MYtBsQwaauRq2MaXPRiQAMuugt7C4hhWKxeWpEanCesi61kwjzTF-KfeA7yd7SXKbt94HS9_XhrhwWyyEW3HPsbcEX0bA_cZQ6vJKA', 'ApplicationId': '256', 'Position': '10.10.11.44/PSCM-DXB-PC31'}, 'NameType': 'AuthnToken'}} [2025-04-10T12:44:39.537381+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 2, "Type": "Refresh", "Domain": "Login", "Key": {"Name": "AQIC5wM2LY4SfcwvOjWRfyvMLDV%2BIYevtTEYBzkKzImlrE4%3D%40AAJTSQACMTAAAlNLABM2NDQ4NDUxNzAzNjg2ODc2NTk4AAJTMQACMjc%3D%23", "Elements": {"AllowSuspectData": 1, "ApplicationId": "256", "ApplicationName": "RTO", "AuthenticationErrorCode": 0, "AuthenticationErrorText": {"Type": "AsciiString", "Data": null}, "AuthenticationTTReissue": 1746963878, "Position": "10.10.11.44/PSCM-DXB-PC31", "ProvidePermissionExpressions": 1, "ProvidePermissionProfile": 0, "SingleOpen": 1, "SupportEnhancedSymbolList": 1, "SupportOMMPost": 1, "SupportPauseResume": 0, "SupportStandby": 1, "SupportStandbyMode": 3, "SupportBatchRequests": 7, "SupportViewRequests": 1, "SupportOptimizedPauseResume": 0}}, "State": {"Stream": "Open", "Data": "Ok", "Text": "Login accepted by host ads-fanout-sm-az1-apne1-prd."}, "Elements": {"PingTimeout": 30, "MaxMsgSize": 65535}}] [2025-04-10T12:44:39.538343+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream_cxn_cache] - [get_cxn] - <=== StreamCxnCache connection id=0 is ready [2025-04-10T12:44:39.539237+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' received cxn=ThreadOMMSTREAMING_PRICING_0.0 [2025-04-10T12:44:39.540462+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' send open_message {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "/CFI2c1"}, "View": ["CF_BID", "CF_ASK"]} [2025-04-10T12:44:39.541790+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "/CFI2c1"}, "View": ["CF_BID", "CF_ASK"]} [2025-04-10T12:44:39.543436+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_stream] - [_do_open] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' wait open event [2025-04-10T12:44:39.724937+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 5, "Type": "Refresh", "Key": {"Service": "ELEKTRON_DD", "Name": "/CFI2c1"}, "State": {"Stream": "NonStreaming", "Data": "Ok"}, "Qos": {"Timeliness": "Realtime", "Rate": "JitConflated"}, "PermData": "AwEBEZY8", "SeqNumber": 40959, "Fields": {}}] [2025-04-10T12:44:39.725688+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] queued with priority 2: {"ID": 5, "Type": "Refresh", "Key": {"Service": "ELEKTRON_DD", "Name": "/CFI2c1"}, "State": {"Stream": "NonStreaming", "Data": "Ok"}, "Qos": {"Timeliness": "Realtime", "Rate": "JitConflated"}, "PermData": "AwEBEZY8", "SeqNumber": 40959, "Fields": {}} [2025-04-10T12:44:39.726326+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [32144 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [omm_stream_connection] - [_process_message] - [OMMSTREAMING_PRICING_0.0] process message {"ID": 5, "Type": "Refresh", "Key": {"Service": "ELEKTRON_DD", "Name": "/CFI2c1"}, "State": {"Stream": "NonStreaming", "Data": "Ok"}, "Qos": {"Timeliness": "Realtime", "Rate": "JitConflated"}, "PermData": "AwEBEZY8", "SeqNumber": 40959, "Fields": {}} [2025-04-10T12:44:39.727107+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [32144 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [_omm_cxn_listeners] - [callback] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' open event is set in CompleteOMMListener [2025-04-10T12:44:39.728179+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [32144 - Msg-Proc-ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_get_messages] - [OMMSTREAMING_PRICING_0.0] received messages: 1 | processed messages: 1 [2025-04-10T12:44:39.728491+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' transition OpeningOMMStreamSt -> OpenOMMStreamSt [2025-04-10T12:44:39.730804+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_universe_streams] - [open_streams] - MixedStreams id=0 universe=['/CFI2c1'] end open ['/CFI2c1'] [2025-04-10T12:44:39.731846+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['/CFI2c1'] transition OpeningUniverseStreamsSt -> OpenUniverseStreamsSt [2025-04-10T12:44:39.732871+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [close] - MixedStreams id=0 universe=['/CFI2c1'] state=OpenUniverseStreamsSt close [2025-04-10T12:44:39.733774+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_basestream] - [transition_to] - MixedStreams id=0 universe=['/CFI2c1'] transition OpenUniverseStreamsSt -> CloseUniverseStreamsSt [2025-04-10T12:44:39.734584+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_universe_streams] - [_do_close] - MixedStreams id=0 universe=['/CFI2c1'] start close [2025-04-10T12:44:39.736362+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [15004 - CloseUniverseStreams-Thread_0] - [_basestream] - [close] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' state=OpenOMMStreamSt close [2025-04-10T12:44:39.737573+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [15004 - CloseUniverseStreams-Thread_0] - [_basestream] - [transition_to] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' transition OpenOMMStreamSt -> CloseOMMStreamSt [2025-04-10T12:44:39.738653+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [15004 - CloseUniverseStreams-Thread_0] - [_stream] - [_do_close] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' send close_message {"ID": 5, "Type": "Close"} [2025-04-10T12:44:39.739744+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [15004 - CloseUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Type": "Close"} [2025-04-10T12:44:39.740986+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [15004 - CloseUniverseStreams-Thread_0] - [_stream] - [_do_close] - _UniverseStream owner.id=0 id=5 name='/CFI2c1' release cxn=ThreadOMMSTREAMING_PRICING_0.0 [2025-04-10T12:44:39.741975+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [15004 - CloseUniverseStreams-Thread_0] - [_stream_cxn_cache] - [release] - StreamCxnCache release (item=CacheItem(cxn=ThreadOMMSTREAMING_PRICING_0.0, number_in_use=0), content_type=ContentType.STREAMING_PRICING, session=ldp) [2025-04-10T12:44:39.743659+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [28612 - MainThread] - [_universe_streams] - [_do_close] - MixedStreams id=0 universe=['/CFI2c1'] end close
@profision
The CF_xxx fields are typically available for Workspace users.
Those fields are not available on the platform.ldp session. Please use other real-time fields instead which are not the CF_xxx fields.
According to log, the RDP platform (platform.ldp session) backend sent an empty data back to the library. The reason is the CF_xxx fields are available via the Workspace platform (Library Desktop session) only like mentioned by my colleague @Jirapongse.
Library sent request message:
[2025-04-10T12:44:39.541790+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [12816 - OpenUniverseStreams-Thread_0] - [stream_connection] - [send_message] - [OMMSTREAMING_PRICING_0.0] send {"ID": 5, "Domain": "MarketPrice", "Streaming": false, "Key": {"Name": "/CFI2c1"}, "View": ["CF_BID", "CF_ASK"]}
Library received response message from the backend:
[2025-04-10T12:44:39.724937+01:00] - [sessions.platform.ldp.0] - [DEBUG] - [33656 - ThreadOMMSTREAMING_PRICING_0.0] - [stream_connection] - [_on_message] - [OMMSTREAMING_PRICING_0.0] on_ws_message [{"ID": 5, "Type": "Refresh", "Key": {"Service": "ELEKTRON_DD", "Name": "/CFI2c1"}, "State": {"Stream": "NonStreaming", "Data": "Ok"}, "Qos": {"Timeliness": "Realtime", "Rate": "JitConflated"}, "PermData": "AwEBEZY8", "SeqNumber": 40959, "Fields": {}}]
Can either of you advise which fields are available for a platform.ldp session for RICS: CFI2c1 , LCOc1, and EUR= in order for me to obtain CF_BID, CF_ASK, CF_LAST, and CF_DATE fields?
CFI2c1
LCOc1
EUR=
CF_BID
CF_ASK
CF_LAST
CF_DATE
How can I easily discover which fields are available to me for a specific RIC using a platform.ldp session? Is there a better methodology than constant trial and error and constant guessing?
@Jirapongse @wasin.w
Please contact the content support team field via MyAccount for the equivalent fields for those consolidated fields.
According to your documentation, I should be able to request all fields using the instrument name only
Refer to: https://cdn.refinitiv.com/public/lseg-lib-python-doc/2.0.0.2/book/en/sections/access-layer/access/get-data-function.html)
However, the following code:
ld.open_session(name="platform.ldp", config_name=LSEG_CONFIG_LOCATION) df = ld.get_data(universe="CFI2c1") print(df.to_string()) ld.close_session()
Results in this:
Traceback (most recent call last): File "P:\Profision Shared\Market Analysis & Trading\Dan\refinitiv_eikon\11am_estimates.py", line 228, in <module> main() ~~~~^^ File "P:\Profision Shared\Market Analysis & Trading\Dan\refinitiv_eikon\11am_estimates.py", line 131, in main df = ld.get_data(universe="CFI2c1") TypeError: get_data() missing 1 required positional argument: 'fields'
Support is still asking me to contact the dev team @Jirapongse
@Jirapongse Good day!! Thanks for assisting on the request. As per checking the I found the below, please check and confirm if this is right-
import lseg.data as ld import pandas as pd ld.open_session() df = ld.get_data( universe = ['EUR=','CLc1','LCOc1'], fields = [ 'BID', 'ASK', 'TRDPRC_1', 'TRADE_DATE',
]
) display(df)