For example, I want to pull the price of Hang Seng Index which the ric is ".HSI".
@Ren
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.
Oh.. I used the wrong field "P" to try to pull the index price.
Thank you!