I'm trying to get data for these indexes SPX,COMP,DJIA,DJT,RUT,DJU using this Python library
I'm doing this
data, meta_data = ts.get_intraday(symbol='DJIA',interval='60min', outputsize='full')
but I get
ValueError: Error getting data from the api, no return was given.
If I change DJIA to AAPL I get a response.
How do I get data for the indexes mentioned above? Is there another API that I can use?
I tried Yahoo Finance API but could only retrieve data for DJIA,DJT, DJU