Back
Challenge 9 - Cancel Order By ID
EasyOrderbookCancellation9 / 12

Challenge 9: Cancel Order By ID

Users must be able to cancel resting orders that have not fully filled.

Task

Implement cancel_order.

Rules

  • Find the first order with matching id.
  • Remove it from the vector.
  • Return true if removed.
  • Return false if not found.
LanguageRust
Loading editor...
Run works without login. Submit requires sign-in so completion can be saved.
Run cases to compare your output against each configured input. Submit saves progress only when every case passes.
    Challenge 9 - Cancel Order By ID · ORDERBOOK Exercise | learn.sol