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
I heard, Alpha vantage doesn't support indices.. but you can use ETFs that track same indices.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With