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

[Orders] avoid portfolio desync after filled order #1162

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

GuillaumeDSM
Copy link
Member

No description provided.

@GuillaumeDSM GuillaumeDSM requested a review from Herklos January 10, 2025 17:10
@GuillaumeDSM GuillaumeDSM self-assigned this Jan 10, 2025
@GuillaumeDSM GuillaumeDSM changed the title WIP [Orders] avoid portfolio desync after filled order [Orders] avoid portfolio desync after filled order Jan 10, 2025
@GuillaumeDSM
Copy link
Member Author

up with 20s and 1 attempt

return refreshed
if self._has_filled_order_been_applied(order):
return refreshed
for i in range(constants.MAX_PORTFOLIO_SYNC_ATTEMPTS):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to use a loop here as it's only 1 loop?

octobot_trading/constants.py Show resolved Hide resolved
@GuillaumeDSM GuillaumeDSM enabled auto-merge (rebase) January 10, 2025 22:26
@GuillaumeDSM GuillaumeDSM disabled auto-merge January 10, 2025 22:26
@GuillaumeDSM GuillaumeDSM merged commit d2b272a into master Jan 10, 2025
6 checks passed
@GuillaumeDSM GuillaumeDSM deleted the fill_state branch January 10, 2025 22:40
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