Feature Specification: Crossing Limit-Order Book
Feature Branch: YU13-limit-order-book
Created: 2026-07-20
Status: In implementation
Input: Real limit-order-book direction brief, parented on YU12-aeron-cluster
User Storiesβ
- As the trading-platform owner, I want orders matched by genuine crossing against resting counterparty orders so an execution always has two sides at an agreed price, rather than a unilateral fill against a reference price.
- As a trader, I want price-time priority; better-priced resting orders execute first, and at equal prices the earlier order executes first; so queue position is earned and predictable.
- As a trader, I want my marketable order to execute at the resting order's price, so crossing the spread can only improve my price, never worsen it past my limit.
- As a trader, I want market orders to execute immediately against available depth and cancel any unfilled remainder, so a market order can never rest at an undefined price.
- As the risk owner, I want limit prices admitted only on the price grid and inside a banded window around the security's trading range, so malformed or fat-fingered prices reject deterministically before any exposure is reserved.
- As the availability owner, I want the entire resting book carried in the cluster snapshot so a restored or replacement member answers the next crossing order exactly as a never-restarted member; same fills, same FIFO, same identifiers.
- As the operations owner, I want gateway offer/ack accounting to stay exact when counterparty resting-order updates interleave on the shared egress stream, so submit acceptance counting does not skew under two-sided flow.