Hello,
I am currently attempting to use the get_data function from the Refinitiv Python package to retrieve "0#LC0:".
I used the following code:
import os
import refinitiv.data as rd
os.environ["RD_LIB_CONFIG_PATH"] = "./Configuration"
def main() -> None:
rd.open_session()
df = rd.get_data(universe=['0#LC0:'], fields=['EXPIR_DATE', 'HST_CLOSE'])
print(df)
if name == "main":
main()
refinitiv-data.config.json Content of the document:
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "refinitiv-data-lib.log"
}
}
},
"sessions": {
"default": "desktop.workspace",
"platform": {
"rdp": {
"app-key": "YOUR APP KEY GOES HERE!",
"username": "YOUR RDP LOGIN OR MACHINE GOES HERE!",
"password": "YOUR RDP PASSWORD GOES HERE!"
},
"deployed": {
"app-key": "YOUR APP KEY GOES HERE!",
"realtime-distribution-system": {
"url" : "YOUR DEPLOYED HOST:PORT GOES HERE!",
"dacs" : {
"username" : "YOUR DACS ID GOES HERE!",
"application-id" : 256,
"position" : ""
}
}
}
},
"desktop": {
"workspace": {
"app-key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
But the following error was received: refinitiv.data._errors.RDError: Error code -1 | No data to return, please check errors: ERROR: No successful response.
(TS.Interday.UserRequestError.70005, The universe is not found)
Where did I go wrong?
Thank you for your support!