Design a equity position system where trades are coming in any sequence , you can INSERT|UPDATE|CANCEL the position , can take BUY|SELL signal.