fmilthaler / FinQuant

A program for financial portfolio management, analysis and optimisation.
MIT License
1.38k stars 190 forks source link

Error on data download #63

Closed sweetatyagiaz closed 4 years ago

sweetatyagiaz commented 4 years ago

getting error when i run the commend pf = build_portfolio(names=['GOOG', 'AMZN'], start_date=start_date, end_date=end_date)

Exception: Error during download of stock data from Quandl. Make sure all the requested stock names/tickers are supported by Quandl.

Kindly solve the issue

fmilthaler commented 4 years ago

Hi there.

You could try the following:

import quandl
stock_data = quandl.get(['GOOG', 'AMZN'], start_date=start_date, end_date=end_date)

And check if that was successful.

Also, you could try downloading the data from Yahoo Finance instead. Try:

pf = build_portfolio(names=['GOOG', 'AMZN'], start_date=start_date, end_date=end_date, data_api="yfinance")

I hope this helps.

sweetatyagiaz commented 4 years ago

Thanks for the reply. yahoo finance api is working.