Back to Community
Equities data in future algo

I am building a future algo trade only in market hour and it requires to request SPY price data only in market hour.
I know how to execute the algo only in market hour but when I request the equity data, it includes NAN value outside regular hour.

Only continuous equities data in market hour is needed(which may include yesterday's price data). How can I do that?