Ejemplo n.º 1
0
 private void PopulateTradeLog(int index, ExecutionMessage message)
 {
     tradeLogGrid[0, index].Value = message.Execution.ExecId;
     tradeLogGrid[1, index].Value = message.Execution.Time;
     tradeLogGrid[2, index].Value = message.Execution.AcctNumber;
     tradeLogGrid[3, index].Value = message.Execution.Side;
     tradeLogGrid[4, index].Value = message.Execution.Shares;
     tradeLogGrid[5, index].Value = message.Contract.Symbol + " " + message.Contract.SecType + " " + message.Contract.Exchange;
     tradeLogGrid[6, index].Value = message.Execution.Price;
 }
Ejemplo n.º 2
0
 private void HandleExecutionMessage(ExecutionMessage message)
 {
     for (int i = 0; i < tradeLogGrid.Rows.Count; i++)
     {
         if (((string)tradeLogGrid[0, i].Value).Equals(message.Execution.ExecId))
         {
             PopulateTradeLog(i, message);
         }
     }
     tradeLogGrid.Rows.Add(1);
     PopulateTradeLog(tradeLogGrid.Rows.Count-1, message);
 }