RomelTorres / alpha_vantage

A python wrapper for Alpha Vantage API for financial data.
MIT License
4.3k stars 741 forks source link

Sector Performance stopped working #359

Closed pythonian1027 closed 10 months ago

pythonian1027 commented 10 months ago

Sector Performances gives the following error:

from alpha_vantage.timeseries import TimeSeries from alpha_vantage.sectorperformance import SectorPerformances API_key =API_key ts = TimeSeries(key=API_key, output_format = 'pandas') data, meta = ts.get_daily_adjusted('NVDA', outputsize = 'full')

%%

sp = SectorPerformances(API_key, output_format='pandas') data, meta_data = sp.get_sector()

%%

Error: 355 if not json_response: --> 356 raise ValueError( 357 'Error getting data from the api, no return was given.') 358 elif "Error Message" in json_response: 359 raise ValueError(json_response["Error Message"])

ValueError: Error getting data from the api, no return was given.

AlphaVantageSupport commented 10 months ago

Closing this for now, as the issue seems to be due to the API supportability rather than specific to this python wrapper.