Skip to content

[BugFix] openbb-fred: Fix 429 Error From FRED API & Implement Global Rate Limiter For Provider #7527

Merged
deeleeramone merged 5 commits into
developfrom
bugfix/fred-rate-limit
Jun 3, 2026
Merged

[BugFix] openbb-fred: Fix 429 Error From FRED API & Implement Global Rate Limiter For Provider #7527
deeleeramone merged 5 commits into
developfrom
bugfix/fred-rate-limit

Conversation

@deeleeramone

@deeleeramone deeleeramone commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This PR fixes HTTP 429 errors generated by the openbb-fred endpoints from hitting more than two requests per second. FRED has changed the calculation for their rate limiting so that is per second, instead of per minute. While the Fetchers fit into the 120/minute bucket, the new calculus engaged rate limits on most endpoints. The PR resolves the issue by implementing a global rate limiter and LRU cache to ensure the per-second limits are adhered to and that multiple requests for the same data do not generate new network calls.

Current symptoms will be partial, incomplete, or empty data.

Before:
image

After:
Screenshot 2026-06-02 at 1 15 35 PM

Additional notes:

The newest version of aiohttp breaks vcrpy - kevin1024/vcrpy#996 - so the version has been temporarily pinned in the devtools definition so that dev_install.py installs the right version for the CI tests.

@deeleeramone deeleeramone added bug Bugs and bug fixes platform OpenBB Platform extensions Extension-related v4 PRs for v4 labels Jun 2, 2026
@deeleeramone deeleeramone added this pull request to the merge queue Jun 3, 2026
Merged via the queue into develop with commit 564eb18 Jun 3, 2026
25 of 26 checks passed
@deeleeramone deeleeramone deleted the bugfix/fred-rate-limit branch June 3, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugs and bug fixes extensions Extension-related platform OpenBB Platform v4 PRs for v4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants