Knowledge Base/What is the function of the limit parameter in Polygon’s Aggregate Endpoint?

What is the function of the limit parameter in Polygon’s Aggregate Endpoint?

Our Aggregates endpoint has a limit parameter that limits the number of base aggregates queried to create the aggregate results.

The base aggregate would be the timespan used in the query. When querying minute or hourly aggregate bars, the limit parameter has a base of minutes. The maximum number of results returned is 50,000 results. This means that when querying minute bars with the maximum limit, you are querying 50,000 minutes’ worth of bars. This is approximately 1.5 months’ worth of minute bars. If you are querying a larger time frame, you may see gaps in the aggregate response. To avoid this, we recommend limiting any minute or hourly aggregate bar requests to 1-month time frames per query. You can read more about this process in our blog post - Aggregate Updates


Was this article helpful?

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

Schedule a demo

Talk with our market data experts

Calendly
https://cdn.sanity.io/images/dhlwe0i3/temp-test/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.