Hi,
While using RDP API,
get_dtd = rd.get_data(
universe= ["ACERLNGBM"],
fields= ["TRDPRC_1", "INST_DESC", "HST_CLOSE"])
I am getting the attached error. I am using a platform session. Please help me to fix this ASAP.
Thanks,
Sree
New posts are disabled while we improve the user experience.
You can browse the site, or for urgent issues, raise a query at MyAccount.
Hi,
While using RDP API,
get_dtd = rd.get_data(
universe= ["ACERLNGBM"],
fields= ["TRDPRC_1", "INST_DESC", "HST_CLOSE"])
I am getting the attached error. I am using a platform session. Please help me to fix this ASAP.
Thanks,
Sree
Thank you for sharing the error code `Error code -1 | Cannot delete stream connection, because it is using (content_type=ContentType.STREAMING_PRICING`. It suggests that the issue comes from the loggin method, the 'Platform Session' method in this case. May I ask: How do you authenticate yourself to the LSEG service? Via a piece of code like `rd.open_sessin()` ?
To verify the problem, you need to enable logging in the library by using the following code.
config = rd.get_config() config.set_param("logs.transports.file.enabled", True) config.set_param("logs.transports.file.name", "refinitiv-data-lib.log") config.set_param("logs.level", "debug") rd.open_session() rd.get_data(universe= ["ACERLNGBM"],fields= ["TRDPRC_1", "INST_DESC", "HST_CLOSE"])
Then, the refinitiv-data-lib.log file will be created. Please share this log file.
Yes. I am using rd.open_session(). We wanted to use RDP API for a part of prodduction process. As I pinged you in chat, we have a few more questions. I can explain you the business case and you can help us with how to get it going..
Can you please suggest how can I resolve this issue. I prefer to use the 'Platform' session itself.