Пример #1
0
        public static int Encode(NewOrderCross sno, DirectBuffer directBuffer, int bufferOffset)
        {
            // we position the car encoder on the direct buffer, at the correct offset (ie. just after the header)
            sno.WrapForEncode(directBuffer, bufferOffset);
            sno.SecurityID      = 48;
            sno.OrderQty        = 100;
            sno.MarketSegmentID = 70;
            sno.Price.Mantissa  = 11;
            NewOrderCross.NoSidesGroup g = sno.NoSidesCount(2);
            g.Next();
            g.Account = 1111;
            g.ClOrdID = 1234;
            g.Side    = Side.BUY;
            g.Next();
            g.Account = 2222;
            g.ClOrdID = 5678;
            g.Side    = Side.SELL;

            Negotiate n = new Negotiate();

            n.Timestamp.Time = 1123;

            return(sno.Size);
        }
Пример #2
0
 public Negotiate()
 {
     _parentMessage = this;
 }