Skip to content

Error: No data found for this date range, symbol may be delisted #949

Open
@bhishanpdl

Description

@bhishanpdl

I am following the example shown in README, but I am getting no data found error.

I am running python 3.11 in Windows and have installed pandas datareader and finance.

The MWE is given below:

import yfinance as yf
import pandas_datareader
import sys

data = yf.download("SPY AAPL", start="2017-01-01", end="2017-04-30")

print(yf.__version__) # '0.1.87'
print(pandas_datareader.__version__) # '0.10.0'
print(sys.version) # 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]

Output:

[*********************100%***********************]  2 of 2 completed

2 Failed downloads:
- AAPL: No data found for this date range, symbol may be delisted
- SPY: No data found for this date range, symbol may be delisted
0.1.87
0.10.0
3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions