For any stock symbol on 10/07/2021, I get an empty dataframe. However, if I place a range that includes 10/07/2021 I get that data. Here is what I'm seeing:
from iexfinance.stocks import get_historical_data
Using only 2021-10-07:
get_historical_data("TSLA", '2021-10-07', '2021-10-07', token="*********************")
Using a range to include 2021-10-7 will return data:
get_historical_data("TSLA", '2021-10-06', '2021-10-08', token="*********************")
close high low open symbol volume id key subkey updated changeOverTime ... uHigh uLow uVolume fOpen fClose fHigh fLow fVolume label change changePercent
Having this issue again, but now noticing a pattern. Get_Historical_data() doesn't seem to work for any dates that are 5 days ago. For example, today is 10/17/2021 and now I can't run anything for 10/12/2021
Summary (include Python version)
Python 3.9.7
For any stock symbol on 10/07/2021, I get an empty dataframe. However, if I place a range that includes 10/07/2021 I get that data. Here is what I'm seeing:
from iexfinance.stocks import get_historical_data
Using only 2021-10-07:
get_historical_data("TSLA", '2021-10-07', '2021-10-07', token="*********************")
Using a range to include 2021-10-7 will return data:
get_historical_data("TSLA", '2021-10-06', '2021-10-08', token="*********************")
Date/time of issue
10/12/2021
Expected behavior
Get populated DataFrame for the date of 10/07/2021 for any stock symbol
Actual behavior
Getting empty DataFrame for all stock symbols for the date of 10/07/2021.