How to download only closed market data #1717
Unanswered
optimvsjag
asked this question in
Q&A
Replies: 1 comment
-
replace my last_date_df assignment with your own code
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, I'm trying to download daily data only if market is closed.
I've this code:
With this code i've this date just now:
datetime.today is 2023-10-07 03:02 New York Time
end = 2023-10-06
But yfinance function only download data to 2023-10-05
Market is closed for 2023-10-06 and should can download this day data too, but I dont know why not works. Any idea or help to understand better how works?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions