Repository navigation
fix(trading): a refused order, a lost tracker, and a stale balance are not success - #258
Open
carlito-hummingbot wants to merge 1 commit into
Open
carlito-hummingbot wants to merge 1 commit into
carlito-hummingbot wants to merge 1 commit into
Conversation
…e not success Three fixes that share the trading path, combined so they land once: - cancel an order by the venue's own id when the in-flight tracker no longer holds it (the order is still live at the venue) - a venue refusal is not a 201: place_trade waits for the submission result - refresh account balances after a bot is archived, as a second ordered background task, so the archive call itself is unchanged Supersedes hummingbot-api hummingbot#252, hummingbot#255 and hummingbot#257. Tests: 19 passed (test_cancel_by_exchange_id, test_place_order_refusal, test_stop_and_archive_bot_name). isort and flake8 clean.
This was referenced Nov 16, 2026
[High impact] The PR appears safe to merge; no actionable issues were established. SummaryThis PR adds cancellation by exchange order ID, checks order submission results before responding, and refreshes exchange balances after archiving a bot.
No actionable issues were established.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
One PR for the three hummingbot-api fixes, which otherwise conflict on
services/accounts_service.py.initiated(tracker path) orsubmitted(direct venue path). Supersedes fix(trading): cancel an order by venue id when the in-flight tracker lost it #252.place_tradewaits for the submission result and returns 502 when the venue refused it. Supersedes fix(trading): a refused order is not a successful submit #255.#334 is not involved. This does not touch Condor.
Test plan
test_cancel_by_exchange_id.pytest_place_order_refusal.pytest_stop_and_archive_bot_name.py— 19 passed