Hi, I recently bought Model: GeekMagic SmallTV-PRO,Version: V3.3.76EN, and the product works really well, congrats on the project.
However I noticed on the stock menu, it only tracks prices during open market hours.
It would be a great improvement if overnight and pre-market prices are also implemented, since it is accessible within yahoo finance (see screenshot) and therefore the API should support fetching those values. I would love it if you could add it, thanks!
With this python code it easily fetches pre and post market prices, if not available (in case out of pre/post market time) it returns None, which could then easily filtered out with conditions to be defaulted to latest price available (the one currently shown) easily. Even with time schedules it could be filtered to avoid handling Nones:
Premarket: 4:00-9:30 am ET
Market hours: 9:30 am -16:00 pm ET
Post market: 16:00-20:00 pm ET
import yfinance as yf
nvda = yf.Ticker("NVDA")
info = nvda.info
print("Pre-market price:", info.get("preMarketPrice"))
print("Pre-market change %:", info.get("preMarketChangePercent"))
print("Post-market price:", info.get("postMarketPrice"))
print("Post-market change %:", info.get("postMarketChangePercent"))
Example of execution during premarket time:
C:\Users\fjroman\Downloads>python yf.py
Pre-market price: 176.5878
Pre-market change %: -0.59232175
Post-market price: None
Post-market change %: None
I hope you find this useful since it would be quite an improvement for people who buy this product for stock price monitoring 😄😄
Hi, I recently bought Model: GeekMagic SmallTV-PRO,Version: V3.3.76EN, and the product works really well, congrats on the project.
However I noticed on the stock menu, it only tracks prices during open market hours.
It would be a great improvement if overnight and pre-market prices are also implemented, since it is accessible within yahoo finance (see screenshot) and therefore the API should support fetching those values. I would love it if you could add it, thanks!
With this python code it easily fetches pre and post market prices, if not available (in case out of pre/post market time) it returns None, which could then easily filtered out with conditions to be defaulted to latest price available (the one currently shown) easily. Even with time schedules it could be filtered to avoid handling Nones:
Premarket: 4:00-9:30 am ET
Market hours: 9:30 am -16:00 pm ET
Post market: 16:00-20:00 pm ET
Example of execution during premarket time:
I hope you find this useful since it would be quite an improvement for people who buy this product for stock price monitoring 😄😄