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/content/5c0778a9628b11955327f4c7b96b2025589ee7df-32x32.svgJoin us on Slack

Enter your email for an invite to our slack community!

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