Knowledge Base/How does Polygon treat hourly bars when querying regular trading hours (9:30 AM - 4PM EST)?

How does Polygon treat hourly bars when querying regular trading hours (9:30 AM - 4PM EST)?

Our aggregates “snap” the time spans to the beginning of each timespan resolution. Snapping a time parameter means changing that time parameter to include a wider range to ensure all the aggregate bars are full.

Snapping a time parameter means changing that time parameter to include a wider range to ensure all the aggregate bars are full. We snap the ‘from’ parameter to the beginning of the resolution, and we snap the ‘to’ parameter to the end resolution. For example, minute bars begin at the top of the minute (9:30:00), hour bars begin at the top of the hour (9:00:00), daily bars begin at the beginning of the day (12:00:00 AM EST), weekly bars begin Sunday at 12:00:00 AM EST, monthly bars begin on the first day of the month and quarterly bars begin on the first day of the quarter. If you are trying to query the Open, High, Low, Close values from just the premarket times, you would need to use a ‘minute’ timespan and adjust the multiplier to 330 or 5.5 hours (4 AM - 9:30 AM). This would return one bar for the entire premarket. You can read more about this process in our blog post - Aggregate Updates



Was this article helpful?

https://cdn.sanity.io/images/dhlwe0i3/production/282ed6a0b66079b791c1fb54aef0d268fb193ad7-592x416.png

Schedule a demo

Talk with our market data experts

Calendly
https://cdn.sanity.io/images/dhlwe0i3/production/70ffe6ec85723f74679004a0a6bbdf66ce1fb58f-592x256.png

Modernizing Wall St.

Reimagining financial market data for the 21st century.

About Polygon

Recommended

Can’t find the answer you’re looking for? Contact our team.