Got no premarket data for stock market untill main trading session started #1489
Replies: 2 comments 4 replies
-
@lebedev-a FYI |
Beta Was this translation helpful? Give feedback.
-
Here is what I tried and I know doesn't work: I've tried pulling data via a cron job that dumps the raw JSON for a later analysis and can definitely confirm that the following query returns pre-mkt data only after 9:30 am.
Run at 9:29am on the 13th Run at 9:30am on the 13th [Edits for readability and better output] |
Beta Was this translation helpful? Give feedback.
-
Hello, please share the code sample to get data for premarket. I use
df = yf.download(tickers='GOOG', period=timeslot, interval='1m', rounding=True, group_by='Ticker', prepost=True),
where timeslot covered premarket time from 4:00 to 09:30 EST, but got all data for premarket only, when main session of stock market is started.
Beta Was this translation helpful? Give feedback.
All reactions