Repository navigation
feat(orders): cancel a core's entry orders on the exchange (#1290) - #1490
Merged
Merged
Conversation
- moon-core: CoreCmd::CancelAllExchangeBuys, a live action routed once to trade().cancel_all_exchange_buys() (MoonProto UI/63). SessionManager::cancel_exchange_entries refuses an offline core and one that has not reported 7.73 N1 (CoreFeatures::exchange_buys_cancel); nothing local is enumerated or cleared. - Core-settings popup: a Cancel entries on exchange button beside Cancel all orders, disabled with the required version on older or unreported cores. Both share one armed confirmation slot (Shell::core_settings_armed replaces core_settings_cancel_confirm); the armed exchange confirmation names the core and is cleared if the core drops or loses N1. The toast says sent, not cancelled. - Locale keys in all eight languages; theme_contract follows the renamed click handler. Refs #1290
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.
What & why
Adds the exchange-wide entry cancellation requested in #1290: a Cancel entries on exchange button in the core settings popup, beside Cancel all orders. It calls MoonProto UI/63 once; the core fetches the open orders from the exchange and applies its own entry filter, so it also reaches orders the terminal's snapshot does not have.
CoreCmd::CancelAllExchangeBuys, a live action routed once totrade().cancel_all_exchange_buys().SessionManager::cancel_exchange_entriesrefuses an offline core and one that has not reported 7.73 N1 (CoreFeatures::exchange_buys_cancel). Nothing local is enumerated or cleared.Shell::core_settings_armedreplacescore_settings_cancel_confirm); the armed exchange confirmation names the core and is cleared if the core drops or loses N1. The toast says "sent", not "cancelled".Notable decisions
Known limitations
Issues
Closes #1290
How to verify
Local, after the rebase on
19127d094: fmt--checkexit 0, build--all-targetsexit 0, clippy--workspace --all-targets --locked -D warningszero warnings,cargo test --workspace10615 passed / 0 failed, doc-tests green.