limit defaults to 500). Hourly data passes 5,000 rows after
about seven months, so quarterly and annual plans need more than one request to fetch the whole window.
Rows come back newest first, so you page backwards: ask for the newest page, then set end to just
before the oldest row you received, and repeat until a page comes back short.
end is inclusive, which is why each page ends one second before the previous page’s oldest row. Without
that step the boundary row would come back twice.Staying under the rate limit
Each page counts as one request against your rate limit of 60 per minute. Three years of one hourly series is about six pages, so one series is well within the limit. If you’re backfilling many series at once, space the requests out or retry on429 using the Retry-After header.