My question - why is the timezone eastern time? Shouldn’t it be UTC or even timezone aware (I’m in PST). Is there another parameter I should pass in the URL?
The daily bars’ starting timestamp is midnight in New York. The reason for this is that the exchanges are located there.
Shouldn’t it be UTC
No. If it was UTC midnight, the last hour of extended hour trading (19-20 ET = 00-01 UTC) would be part of the next day’s bar.
if it is indeed UTC, converting it to PST, it will be 12/18, but it is showing me 12/19 data for Apple
You don’t need to convert it to PST. Again, the bar contains the trades between ET midnights, in this case between 2024-12-19 midnight and 2024-12-20 midnight.