</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

47

:

37

Get this deal
Back to Dashboard

Find Maximum Trade Shares

Medium

A stock exchange processes a stream of trade orders sequentially. Each order specifies a limit price, a quantity of shares, and a side (either "buy" or "sell").

When a new order arrives, the exchange attempts to match it against resting orders on the opposite side: ...