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. Aggregates (Bars) API on the other hand work as expected.
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. Aggregates (Bars) API on the other hand work as expected.Example below.
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)
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)