Hello,
I thought getting the most recent market close for all US stock tickers would be a simple task.
But, I probably do it the wrong way.
I need to get this info whenever during a day (even during afterHours or after it, during week-end)
If there is no trade for a symbol that day during market hours, I need the most recent (eligible trade) price prior to the market close.
By eligible trade, I mean a trade with eligible Last Price conditions, and coming from the primary exchange of the symbol.
NOTE: I would also be interested in having similarly the close of the previous 'session'
(meaning: if we are in market hours -> get the last price at preMarket close, if after 8pm EST -> get the last price at afterHours close)
How do you guys do to get that simple feature?
Regards
I thought getting the most recent market close for all US stock tickers would be a simple task.
But, I probably do it the wrong way.
I need to get this info whenever during a day (even during afterHours or after it, during week-end)
If there is no trade for a symbol that day during market hours, I need the most recent (eligible trade) price prior to the market close.
By eligible trade, I mean a trade with eligible Last Price conditions, and coming from the primary exchange of the symbol.
NOTE: I would also be interested in having similarly the close of the previous 'session'
(meaning: if we are in market hours -> get the last price at preMarket close, if after 8pm EST -> get the last price at afterHours close)
How do you guys do to get that simple feature?
Regards
Being new in the field, you assume that there is one correct way of doing things and that "platforms" like google do things in the correct way. Erase these thoughts from your mind. The reality is platforms are shit. They are all buggy and all work slightly differently. The best you can do is understand the raw data and use it in the way that makes sense for your needs.