Skip to content

Add rate limit and timeout handling for Polygon.io API #47

@matvix90

Description

@matvix90

Description:
Current Polygon API usage lacks centralized rate-limiting and request timeout handling; this can cause failures or throttling.

Solution:
Implement a request wrapper that:

  • enforces retry/backoff on 429 responses,
  • sets per-request timeouts,
  • logs and surfaces rate-limit headers.

Acceptance criteria:

  • All Polygon API calls use the new wrapper.
  • Requests have a configurable timeout (default 10s).
  • 429 responses trigger exponential backoff with max retries (configurable).
  • Rate-limit and retry events are logged.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions