Hi all,
We are currently building out an application that is using the Refinitiv RDP API to retrieve information. We have found two ways of connecting to the API :
- We can just open a session using rd.open_session(), when running code locally with the Refinitiv workspace open
- We can specify a config file containing our API key using rd.open_session(config_name='credentials.json') when running code for example in VMs in the cloud.
However I've noticed that I get different results from the exact same code when using those two methods.
From exemple, i'm running
df = rd.get_data(
universe = ['DE294876855=RRPS'],
fields = ['TR.FiMaturityBenchmarkRIC']
)
print(df)
To get the pricing benchmark of a specific bond.
Using rd.open_session() (or the codebook in WS), i get result :
Instrument Maturity Benchmark RIC
0 DE294876855=RRPS EU10YT=RR
Which is the expected result.
Running the exact same code with
rd.open_session(config_name='credentials.json')
from a VM, i get
RDError: Error code -1 | The access to field(s) denied. Requested universes: ['DE294876855=RRPS']. Requested fields: ['TR.FIMATURITYBENCHMARKRIC']
FYI the config.json file looks like this :
{
"logs": {
"level": "debug",
"transports": {
"console": {
"enabled": false
},
"file": {
"enabled": false,
"name": "refinitiv-data-lib.log"
}
}
},
"sessions": {
"default": "platform.rdp",
"platform": {
"rdp": {
"app-key": "APPKEY",
"username": "USERNAME",
"password": "PW"
},
"deployed": {
"app-key": "APPKEY",
"realtime-distribution-system": {
"url" : "URL",
"dacs" : {
"username" : "USERNAME",
"application-id" : APPID,
"position" : ""
}
}
}
},
"desktop": {
"workspace": {
"app-key": "APPKEY"
}
}
}
}
Has anyone encountered something like this ?
Thank you.
Adam LeRoux