Dear support, I'm trying to recover the PAR_AMT field from Refinitiv Eikon API using Phyton as language. I could recover any record by using the instrument ISIN code as input. Thus, as suggested by Refinitiv support, I try to retrieve the RIC Code to be used as input to query the PAR_AMT field, but the result is the following:
I have access to the field, as confirmed by Refinitiv support. Below you can find an example of the code I'm using to recover the RIC Code:
# ======== First Demo Script ========
import eikon as ek
import refinitiv.dataplatform as rdp
from rich import print
from refinitiv.dataplatform.factory.content_factory import ContentFactory
rdp.open_platform_session(
app_key='***',
grant=rdp.GrantPassword(
'***',
'***'
)
)
df = rdp.get_data(
universe=['EU000A3JZR92', 'BE0312794663', 'ARARGE03E113'],
fields=['TR.PreferredRIC']#, 'TR.HeadquartersCountry']
)
#print(df)
#print(ContentFactory._last_result)
response: rdp.content.data_grid._response.FundamentalResponse = ContentFactory._last_result
print('\n\n',response.data.raw,'\n\n')
"""
RESULT
{'error': {'code': 221, 'description': 'The access to field(s) denied.', 'content': ...}}
"""
# ======== Second Demo Script ========
import eikon as ek
ek.set_app_key('***')
isin = ['EU000A3JZR92', 'BE0312794663', 'ARARGE03E113']
data, error = ek.get_data(isin, ['TR.PreferredRIC'])
print(
'data: ', data,
'\n\n\nerror: ', error
)
"""
RESULT
Failed to decode response to json: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Sign In</title><...
*****************************
Could you help me further please?
Thanks,
Sergio