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

Problem while scraping #10

Closed etozhefifan closed 2 years ago

etozhefifan commented 2 years ago
`from pyrtfolio.StockPortfolio import StockPortfolio

portfolio = StockPortfolio()

portfolio.add_stock(
    stock_symbol='CCJ',
    stock_country='United States',
    purchase_date='04/01/2021',
    num_of_shares=24,
    cost_per_share=22.72
)

print(portfolio.data)`

And I've got this error

raise RuntimeError("ERR#0004: data retrieval error while scraping.") RuntimeError: ERR#0004: data retrieval error while scraping.