RomelTorres / alpha_vantage

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

FundamentalData doesn't work with BSE data #308

Closed miralchevli closed 3 years ago

miralchevli commented 3 years ago
from alpha_vantage.fundamentaldata import FundamentalData
fd = FundamentalData(API_Key, output_format="pandas")

data1 = fd.get_income_statement_annual('TCS.BSE')

It gives an error like:

Traceback (most recent call last):
  File "D:\Stock\alpha_vantage\miral.py", line 12, in <module>
    data1 = fd.get_income_statement_annual('TCS.BSE')
  File "D:\Stock\alpha_vantage\alpha_vantage\alphavantage.py", line 218, in _format_wrapper
    call_response, data_key, meta_data_key = func(
  File "D:\Stock\alpha_vantage\alpha_vantage\alphavantage.py", line 160, in _call_wrapper
    return self._handle_api_call(url), data_key, meta_data_key
  File "D:\Stock\alpha_vantage\alpha_vantage\alphavantage.py", line 356, in _handle_api_call
    raise ValueError(
ValueError: Error getting data from the api, no return was given.
Process finished with exit code 1

It works with other symbols

AlphaVantageSupport commented 3 years ago

Hi @miralchevli, please kindly direct feature-specific questions to support@alphavantage.co. Thanks!