客户用workspace code book取nasdap股票的历史数据PE PB和PS,sample aapl.o
客户找不到合适的API example,麻烦可不可以协助提供sample code
@Hao.Tang
Thanks for reaching out to us.
You can use the get_history method in the RD library to retrieve historical data of PB, PE, and PS.
The code looks like this:
rd.get_history(universe="AAPL.O", fields=["TR.PE","TR.PriceToBVPerShare","TR.PriceToSalesPerShare"], interval="1D", start="2020-01-01", end="2020-02-01")
The output is:
You can also refer to the Access__Get_History.ipynb example in 01.01. Refinitiv Data Library.
Please feel free to reach out if you have any further questions.