public void execDetails(int reqId, Contract contract, Execution execution)
 {
     var message = new ExecutionMessage(reqId, contract, execution);
     MessageHandler.messageBox.Enqueue(message);
     
 }
        public void UpdateExecution(ExecutionMessage exMesage)
        {

            var executiondetails = exMesage.Execution;
           
            var executionExists = Executions.Exists(x => x.OrderId == executiondetails.OrderId);
            if (executionExists)
            {
                var i = Executions.FindIndex(x => x.OrderId == executiondetails.OrderId);
                Executions[i] = executiondetails;
            }
            else
            {
                Executions.Add(executiondetails);
            }

        }