Skip to content
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

after_market_closes() was getting the wrong price data from get_last_… #570

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

davidlatte
Copy link
Collaborator

@davidlatte davidlatte commented Oct 3, 2024

…price()

Description by Korbit AI

What change is being made?

Correct the logic in get_last_price to use the closing price after market closes and add exception handling in the polling process to prevent thread termination.

Why are these changes being made?

The after_market_closes() function was incorrectly using the opening price instead of the closing price, which could lead to inaccurate data analysis. The added exception handling in the polling process ensures that the polling thread remains operational even if an error occurs, improving the robustness of the system.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

Copy link
Contributor

korbit-ai bot commented Oct 3, 2024

You've used up your 5 PR reviews for this month under the Korbit Starter Plan. You'll get 5 more reviews on October 20th, 2024 or you can upgrade to Pro for unlimited PR reviews and enhanced features in your Korbit Console.

Copy link
Contributor

korbit-ai bot commented Oct 3, 2024

I’ve found 1 issues in this PR, but you have exceeded your plan limits.

Upgrade to Korbit Pro and ask for another review with /korbit-review.

@grzesir grzesir merged commit 5a7ee69 into dev Oct 3, 2024
1 check passed
@davidlatte davidlatte deleted the more_tradier_exc_mitigation branch October 3, 2024 22:43
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.

2 participants