You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Ticker class is used to get the data of multiple symbols, if one or some of the symbols do not have complete data in the yahoo finance website or some other reasons, an error occurs. Here is the sample code:
import yahooquery as yq
tickers = yq.Ticker(['AAPL', 'AASL', 'AAACX', 'AAMBAX', 'MSFT'], asynchronous=True)
summary = tickers.summary_detail
When running these three lines of code, an error popped up as following:
Traceback (most recent call last):
File "F:\Users\Huajiang\My Code & Modeling\Python\venvs\iTrade\Lib\site-packages\yahooquery\base.py", line 1217, in _construct_data
data = json[response_field]["result"][0][addl_key]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'summaryDetail'
The text was updated successfully, but these errors were encountered:
When the Ticker class is used to get the data of multiple symbols, if one or some of the symbols do not have complete data in the yahoo finance website or some other reasons, an error occurs. Here is the sample code:
import yahooquery as yq
tickers = yq.Ticker(['AAPL', 'AASL', 'AAACX', 'AAMBAX', 'MSFT'], asynchronous=True)
summary = tickers.summary_detail
When running these three lines of code, an error popped up as following:
Traceback (most recent call last):
File "F:\Users\Huajiang\My Code & Modeling\Python\venvs\iTrade\Lib\site-packages\yahooquery\base.py", line 1217, in _construct_data
data = json[response_field]["result"][0][addl_key]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'summaryDetail'
The text was updated successfully, but these errors were encountered: