Hi,
import pandas as pd
import eikon as ek
start_date = '2022-07-22'
end_date = '2022-07-22'
api_key = <API KEY>
id_list = ["US06654DAG25"]
ek.set_app_key(api_key)
if isinstance(id_list, str):
id_list =[id_list]
fields = ['TR.BIDPRICE', 'TR.ASKPRICE', 'TR.ASKPRICE.calcdate', 'TR.FiCurrency']
parameters = {'Frq': 'D', 'Sdate': start_date, 'Edate': end_date}
df, _ = ek.get_data(instruments = id_list, fields = fields, parameters = parameters)
Output:
However, using it from Excel:
=@TR("06654DAG2=","TR.BIDPRICE;TR.ASKPRICE","SDate=2022-07-22 CH=Fd RH=IN",B2)
Would appreciate any help as to why NA is being returned.
Thanks.