def get_conversion_defs(symbols) -> pd.DataFrame:
response = symbol_conversion.Definition(symbols=symbols,
from_symbol_type='TickerSymbol'
).get_data()
df = response.data.df
return df
if __name__ == '__main__':
import refinitiv.data as rd
rd.open_session()
output = get_conversion_defs([
'BAC', # expecting suffix of NYSE .K OR .N but no suffix returned
'F', # expecting suffix of NYSE .K OR .N but no suffix returned
'AAPL', # NASDAQ suffix of .O AS EXPECTED
'ABBV' # NYSE suffix of .K - why is this different from BAC/F?
])
print (output.RIC)
for this code, why do BAC/F not come back with a .N or a .K as appropriate for NYSE stocks? yet ABBV has a .K for NYSE, and AAPL has a .O for nasdaq as expected
why is this the output for BAC/F - why no
BAC BAC
F F
AAPL AAPL.O
ABBV ABBV.K