Ejemplo n.º 1
0
 public void onQuoteUpdate(
     MamdaSubscription sub,
     MamdaQuoteListener listener,
     MamaMsg msg,
     MamdaQuoteUpdate update,
     MamdaQuoteRecap recap)
 {
     Console.WriteLine("Quote (" + msg.getString
                           (MamdaCommonFields.ISSUE_SYMBOL) +
                       ":" + recap.getQuoteCount() +
                       "):  " + update.getBidPrice() +
                       " " + update.getBidSize() +
                       " X " + update.getAskSize() +
                       " " + update.getAskPrice() +
                       " (seq#: " + update.getEventSeqNum() +
                       "; time: " + update.getEventTime() +
                       "; qual: " + update.getQuoteQual() + ")");
 }
Ejemplo n.º 2
0
            public void onQuoteUpdate(
                MamdaSubscription subscription,
                MamdaQuoteListener listener,
                MamaMsg msg,
                MamdaQuoteUpdate update,
                MamdaQuoteRecap recap)
            {
                string format = "Quote ({0}:{1}): {2} {3} X {4} {5} (seq#: {6}; time: {7}; qual: {8})";

                Console.WriteLine(format,
                                  subscription.getSymbol(),
                                  recap.getQuoteCount(),
                                  update.getBidPrice(),
                                  update.getBidSize(),
                                  update.getAskSize(),
                                  update.getAskPrice(),
                                  update.getEventSeqNum(),
                                  update.getEventTime(),
                                  update.getQuoteQual());
            }
Ejemplo n.º 3
0
            public void onQuoteUpdate(
				MamdaSubscription   subscription,
				MamdaQuoteListener  listener,
				MamaMsg             msg,
				MamdaQuoteUpdate    update,
				MamdaQuoteRecap     recap)
            {
                string format = "Quote ({0}:{1}): {2} {3} X {4} {5} (seq#: {6}; time: {7}; qual: {8})";
                Console.WriteLine(format,
                    subscription.getSymbol(),
                    recap.getQuoteCount(),
                    update.getBidPrice(),
                    update.getBidSize(),
                    update.getAskSize(),
                    update.getAskPrice(),
                    update.getEventSeqNum(),
                    update.getEventTime(),
                    update.getQuoteQual());
            }
Ejemplo n.º 4
0
        public void onQuoteUpdate(
			MamdaSubscription   sub,
			MamdaQuoteListener  listener,
			MamaMsg             msg,
			MamdaQuoteUpdate    update,
			MamdaQuoteRecap     recap)
        {
            Console.WriteLine ("Quote ("  + msg.getString
                                (MamdaCommonFields.ISSUE_SYMBOL)   +
                                ":"        + recap.getQuoteCount()  +
                                "):  "     + update.getBidPrice()    +
                                " "        + update.getBidSize()     +
                                " X "      + update.getAskSize()     +
                                " "        + update.getAskPrice()    +
                                " (seq#: " + update.getEventSeqNum() +
                                "; time: " + update.getEventTime()   +
                                "; qual: " + update.getQuoteQual()   + ")");
        }