protected override void OnExecutionUpdate(Execution execution, string executionId, double price, int quantity, MarketPosition marketPosition, string orderId, DateTime time)
- it contains Order object = represents the most current state
- it contains many parameters = that represents information for this callback, if we want process all events sequentially, as they happen. It means Order can contain latest up-to-date information, that is newer, than in following parameters.
It all makes sense.
I try, to understand the OnExecutionUpdate(...) the same way, but I cannot understand it:
Problem is, that I cannot understand the 1st parameter - the Execution object. It does not make sense to me see any order-execution like the most current state, because each one order-execution is individual separate event. These events add together, until whole order quantity is filled. So one order can have one or more multiple executions, until it is fully filled.
I want to say, that I don't see any logical parallel for first parameter between between these 2 methods. For OnOrderUpdate(...) it makes sense. For OnExecutionUpdate(..) not.
Can you give me example of situation, where I would need access the first parameter Execution and its internal properties, instead of all following parameters, so I can spot meaning/importance of the first Execution parameter?
Comment