Loading...
Loading...
Browse 4 real-world technical and behavioral interview questions about Order lifecycle. Review scenarios, edge cases, and architectural best practices.
There is no single point of no return - each downstream hand-off has its own. Model the change as a request that can be refused, priced and re-screened rather than an edit to the order, because a new address can move the shipping cost, the tax base and the fraud risk.
An equity order is validated and risk-checked at the broker, routed to a venue, matched by price-time priority into one or more fills reported back as execution reports, allocated to end accounts, novated to a clearing house that becomes the counterparty, and finally settled against cash at the custodian on T+1.
Book the fill. The venue decides what happened, so a fill against a cancelled order means your state was wrong, and the position, risk headroom and client record all have to be corrected from the venue's version. The design fix is to make cancelled a state only the venue can grant.
Model the journey as milestone events, each carrying both the time it happened and the time you recorded it, and derive current status by projecting that set in a fixed milestone order rather than storing a mutable column, because events arrive late, twice and in the wrong sequence.