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
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()` ?
Hi,
Thank you for your participation in the forum.
Are any of the replies below satisfactory in resolving your query?
If yes please click the 'Accept' text next to the most appropriate reply, and then close the question. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS
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.
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.