In the system of copy trading, orders from the master trader’s account arrive from websocket. How do I know that the order which comes to me is an order relating to an existing position, and not an order opening a new position? For example:
The master opened a new long position at 1:00 a.m.
A new client joined the system at 2:00 a.m.
Master sets an additional order to the existing long position at 3:00 a.m.
Well, in fact this order should not trigger the new client (and it should trigger for the old clients), because the new client does not have an initial order that opened a position at 1:00 a.m. , and it is incorrect to open a position without an initial order by this additional order that was sent at 3:00 a.m.
Does the order have an indication that it is an order opening a position or is it an order being added to an already open position ?