JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
896 stars 214 forks source link

TypeError: __init__() got an unexpected keyword argument 'concurrent' #155

Open zmadscientist opened 11 months ago

zmadscientist commented 11 months ago

When running from Jupyter notebook this fails. but code works from python script in the same customer kernel:

from yahoofinancials import YahooFinancials tickers = ['AAPL', 'GOOG', 'C'] yahoo_financials = YahooFinancials(tickers, concurrent=True, max_workers=8, country="US") balance_sheet_data_qt = yahoo_financials.get_financial_stmts('quarterly', 'balance') print(balance_sheet_data_qt)

generates error: TypeError: init() got an unexpected keyword argument 'concurrent'

IF I do a git clone from your repo and cd into that yahoofinancials folder and only in that folder (where I ran the python setup.py install): the above code in Jupyter works!

JECSand commented 11 months ago

@zmadscientist Thank you for reporting this issue! I'll look into this after work.

EDIT: Could you also include which versions of python and YahooFinancials you are encountering this issue with?