Skip to content

bugs:Update api.py #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

bugs:Update api.py #316

wants to merge 6 commits into from

Conversation

PurpleWZG
Copy link

If all agents are selected, the program encounters an error while running the run_hedge_fund function. Specifically, when invoking the michael_burry_agent function and executing the get_company_news method to request news data for Apple Inc. (AAPL), an HTTP 429 error is encountered. The HTTP 429 error indicates that the requests have been rate-limited, and the server's response suggests that requests can be resumed after a 30-second wait.
The server enforces request frequency limits. When an excessive number of requests are sent in a short period, the rate-limiting mechanism is triggered, resulting in a 429 error response.
To address this issue, you can add a retry mechanism with delays to the get_company_news function. This involves pausing for a specified period before retrying failed requests, typically using exponential backoff to gradually increase wait times between attempts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant