URL
The RESTful API call you are making (please be sure to omit your API key)
https://api.polygon.io/v2/aggs/grouped/locale/us/market/stocks/2023-01-09?adjusted=true
167329800 converts to Monday January 09, 2023 16:00:00 (pm) in time zone America/New York (EST)
Expected Result
Stocks Grouped Daily (Bars) API documentation says t - The Unix Msec timestamp for the start of the aggregate window. which should be 00:00:00 (am) but it returns timestamps with 16:00:00 (pm) instead.
Aggregate Bars API returns timestamps as expected, example for the same ticker and date
URL The RESTful API call you are making (please be sure to omit your API key)
https://api.polygon.io/v2/aggs/grouped/locale/us/market/stocks/2023-01-09?adjusted=true
Result What result are getting?
167329800 converts to Monday January 09, 2023 16:00:00 (pm) in time zone America/New York (EST)
Expected Result
Stocks Grouped Daily (Bars) API documentation says
t - The Unix Msec timestamp for the start of the aggregate window.
which should be 00:00:00 (am) but it returns timestamps with 16:00:00 (pm) instead.Aggregate Bars API returns timestamps as expected, example for the same ticker and date
https://api.polygon.io/v2/aggs/ticker/TTMI/range/1/day/2023-01-09/2023-01-09?adjusted=true&sort=asc&limit=120
1673240400 converts to Monday January 09, 2023 00:00:00 (am) in time zone America/New York (EST)