Back
Challenge 1 - Valid Limit Order
EasyOrderbookValidation1 / 12

Challenge 1: Valid Limit Order

Every matching engine starts with a precise order model.

Task

Implement new_order.

Rules

  • price == 0 is invalid.
  • quantity == 0 is invalid.
  • Otherwise construct and return the order.

This locks in the fields every later challenge uses: side, price, quantity, and timestamp.

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 1 - Valid Limit Order · ORDERBOOK Exercise | learn.sol