hi, i noticed there is no error msg returned for get_historical_price_summaries, but instead a "None" is returned even you input an invalid ric. is there a way to turn on the error msg?
df = rdp.get_historical_price_summaries('XXX.XX', interval=rdp.Intervals.DAILY, start='2020.11.01', end='2020.11.06')
also what is the data limit for get_historical_price_summaries, looks it works for a short lookback windows, but not even more than a year. i.e., "None" is return when more than a year.
df = rdp.get_historical_price_summaries('IBM.N', interval=rdp.Intervals.DAILY, start='2019.11.01', end='2020.11.06')
Not sure what version of python and RDP Lib for python you are using? I found a similar issue sometime when using 184.108.40.206a with python 3.7. I have to check if the df is not None before process it. It randomly occurs even I use a short period or set count to a minimal value.
But I just reconfigure conda env using python 3.8 with rdp 220.127.116.11a and it seems to works fine for me now.
The RDP Libraries have multiple layers to request for data, the lowest layer being the delivery, on top of that we have the content layer and for scripting languages such as Python we have the function layer. The code segment you provided is at the function layer providing simple syntax returning data. At this layer, if you encounter situations where no data is returned, you can use some convenient functions to check.
At the content layer, you have more control over the response. For example:
While the syntax to request for data is similar, the response contains some more information about the response.