For example, I want to pull the price of Hang Seng Index which the ric is ".HSI".
I can use the ric to pull price from Eikon, but I can't pull from datastream.For example, I want to pull the price of Hang Seng Index which the ric is ".HSI".
I can use the ric to pull price from Eikon, but I can't pull from datastream.To use a RIC in the Datastream, you need to embrace it with angle brackets <>.
ds.get_data(tickers='<.HSI>', fields=['PI','PE'], kind=0)
The output is:
To list all available fields, please refer to the Datastream Navigator website.