Designing Order Book Interfaces
Parent Contract
Required parent: designing-financial-operations-workspaces.
Inherit the broader routing and decision boundary from this canonical parent; this specialist remains accountable only for the narrower ownership, failure topology, falsification criteria, and output contract defined below.
Decision ownership
Own representation of available quoted market depth when such data exists. Decide bid/ask orientation, price levels, size/quantity units, cumulative depth, aggregation, update cadence, spread, selected level, market halt/closed state, and handoff to order entry. It does not predict fills, fair value, or recommend a side.
Inputs and evidence
Require instrument/venue identity, market depth feed, timestamps/sequence, price/size units, aggregation level, entitlement/delay, market session/halt state, tick size, and data-gap behavior. Identify feeds that are indicative or partial rather than a complete central book.
Procedure
Persist instrument/venue and data freshness. Use consistent bid/ask orientation with text labels, not red/green alone. Price and quantity columns need units and tick context. If aggregating orders into price levels, state it; cumulative depth should be distinct from level size. Streaming updates should preserve readability—highlight meaningful changed levels without making the whole table flicker. Gaps/reconnect reset must not merge stale and fresh snapshots. Clicking a level may prefill a price in order entry only after explicit handoff and revalidation; it must not submit.
Failure topology
Failures include reversed bid/ask conventions, stale book during disconnect, cumulative size mistaken for level size, delayed data presented as live, one venue's partial book labeled total market, flickering rows impossible to read, and clicking a level placing an order directly. Another failure is showing depth as guarantee of fill.
Falsification
Reject if instrument/venue/freshness is unknown; if bid/ask relies only on color; if level versus cumulative quantity is ambiguous; if reconnect can display mixed stale/fresh state; if feed completeness/entitlement is overstated; if level click can bypass order confirmation; or if copy implies displayed size guarantees execution.
Output contract
Return an order-book-interfaces-contract with: instrument/venue; data source/freshness/delay; bid/ask orientation; price/tick units; level/cumulative size; aggregation; spread; streaming update treatment; session/halt state; reconnect behavior; selection/prefill handoff; and non-advice/non-fill-guarantee boundary. Include one reconnect snapshot case.
Handoffs
Order entry revalidates selected price, watchlists provide instrument navigation, trading market data supplies feed truth, and high-frequency rendering uses data-grid/real-time primitives.