alvarobartt / pyrtfolio

Python package to generate stock portfolios
https://investpy-portfolio.readthedocs.io
GNU General Public License v3.0
147 stars 26 forks source link

same code as you share as a sample #8

Open lorenzo1285 opened 2 years ago

lorenzo1285 commented 2 years ago

RuntimeError Traceback (most recent call last) in () 5 purchase_date='04/01/2018', 6 num_of_shares=2, ----> 7 cost_per_share=7.2) 8 9 portfolio.add_stock(stock_aymbol='ELE',

2 frames /usr/local/lib/python3.7/dist-packages/investpy/stocks.py in get_stock_historical_data(stock, country, from_date, to_date, as_json, order, interval) 610 611 else: --> 612 raise RuntimeError("ERR#0004: data retrieval error while scraping.") 613 614 if as_json is True:

RuntimeError: ERR#0004: data retrieval error while scraping.