Back
Challenge 11 - Post Only Rejection
MediumOrderbookPost Only11 / 12

Challenge 11: Post Only Rejection

Post-only orders are intended to add maker liquidity, not immediately take liquidity.

Task

Implement accepts_post_only.

Rules

  • Post-only bid is rejected when it crosses the best ask.
  • Post-only ask is rejected when it crosses the best bid.
  • If the opposite side is empty, the order can post.

This introduces maker/taker behavior without adding fee complexity.

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 11 - Post Only Rejection · ORDERBOOK Exercise | learn.sol