Back
Challenge 3 - Best Bid And Best Ask
EasyOrderbookTop Of Book3 / 12

Challenge 3: Best Bid And Best Ask

The top of book is the most important summary of an orderbook.

Task

Implement best_bid_ask.

Rules

  • Best bid = highest bid price.
  • Best ask = lowest ask price.
  • Return None when a side has no orders.

Use iteration and comparisons; no matching is needed yet.

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 3 - Best Bid And Best Ask · ORDERBOOK Exercise | learn.sol