コード例 #1
0
 public void execDetails(int reqId, Contract contract, Execution execution)
 {
     var message = new ExecutionMessage(reqId, contract, execution);
     MessageHandler.messageBox.Enqueue(message);
     
 }
コード例 #2
0
        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);
            }

        }