Exemplo n.º 1
0
        public static void Decode(SimpleNewOrder sno,
                                  DirectBuffer directBuffer,
                                  int bufferOffset,
                                  int actingBlockLength,
                                  int actingVersion)
        {
            var buffer = new byte[128];
            var sb     = new StringBuilder();

            // position the car flyweight just after the header on the DirectBuffer
            sno.WrapForDecode(directBuffer, bufferOffset, actingBlockLength, actingVersion);

            // decode the car properties on by one, directly from the buffer
            sb.Append("\nClOrdID=").Append(sno.ClOrdID);
            sb.Append("\nAccount=").Append(sno.Account);
            sb.Append("\nSecurityID=").Append(sno.SecurityID);
            sb.Append("\nOrderQty=").Append(sno.OrderQty);
            sb.Append("\nMarketSegmentID=").Append(sno.MarketSegmentID);
            sb.Append("\nSide=").Append(sno.Side);
            sb.Append("\nOrdType=").Append(sno.OrdType);
            sb.Append("\nTimeInForce=").Append(sno.TimeInForce);
            sb.Append("\nInvestorID=").Append(sno.InvestorID);
            sb.Append("\nEnteringTrader=").Append(sno.GetEnteringTrader(0));
            sb.Append("\nMantissa=").Append(sno.Price.Mantissa);
            sb.Append("\nSize=").Append(sno.Size);

            Console.WriteLine(sb.ToString());
        }
Exemplo n.º 2
0
 public SimpleNewOrder()
 {
     _parentMessage = this;
 }