public Order OnExecutionCommand(ExecutionCommand command)
{
var order = this.orders[command.OrderId];
if (order == null)
{
order = new Order(command);
this.orders[command.OrderId] = order;
order.Instrument = command.Instrument;
order.Provider = command.Provider;
order.Portfolio = command.Portfolio;
if (command.Type == ExecutionCommandType.Send)
order.Status = OrderStatus.PendingNew;
}
order.OnExecutionCommand(command);
return order;
}