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.
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.