예제 #1
0
 public void onTradeReport(
     MamdaSubscription sub,
     MamdaTradeListener listener,
     MamaMsg msg,
     MamdaTradeReport trade,
     MamdaTradeRecap recap)
 {
     Console.WriteLine("Trade (" + msg.getString
                           (MamdaCommonFields.ISSUE_SYMBOL) +
                       ":" + recap.getTradeCount() +
                       "):  " + trade.getTradeVolume() +
                       " @ " + trade.getTradePrice() +
                       " (seq#: " + trade.getEventSeqNum() +
                       "; time: " + trade.getEventTime() +
                       "; qual: " + trade.getTradeQual() +
                       "; acttime: " + trade.getActivityTime() + ")");
 }
 public void onTradeReport(
     MamdaSubscription sub,
     MamdaTradeListener listener,
     MamaMsg msg,
     MamdaTradeReport trade,
     MamdaTradeRecap recap)
 {
     prettyPrint(
         "Trade ({0}:{1}): {2} @ {3} (seq#: {4}; time: {5}; acttime: {6}; qual: {7})",
         sub.getSymbol(),
         recap.getTradeCount(),
         trade.getTradeVolume(),
         trade.getTradePrice(),
         trade.getEventSeqNum(),
         trade.getEventTime(),
         trade.getActivityTime(),
         trade.getTradeQual());
 }
예제 #3
0
        public void onTradeReport(
			MamdaSubscription   sub,
			MamdaTradeListener  listener,
			MamaMsg             msg,
			MamdaTradeReport    trade,
			MamdaTradeRecap     recap)
        {
            Console.WriteLine ("Trade ("  + msg.getString
                                            (MamdaCommonFields.ISSUE_SYMBOL) +
                                ":"        + recap.getTradeCount()    +
                                "):  "     + trade.getTradeVolume()   +
                                " @ "      + trade.getTradePrice()    +
                                " (seq#: " + trade.getEventSeqNum()   +
                                "; time: " + trade.getEventTime()     +
                                "; qual: " + trade.getTradeQual()     +
                                "; acttime: " + trade.getActivityTime() + ")");
        }
예제 #4
0
            public void onTradeReport(
				MamdaSubscription   sub,
				MamdaTradeListener  listener,
				MamaMsg             msg,
				MamdaTradeReport    trade,
				MamdaTradeRecap     recap)
            {
                prettyPrint(
                    "Trade ({0}:{1}): {2} @ {3} (seq#: {4}; time: {5}; acttime: {6}; qual: {7})",
                    sub.getSymbol(),
                    recap.getTradeCount(),
                    trade.getTradeVolume(),
                    trade.getTradePrice(),
                    trade.getEventSeqNum(),
                    trade.getEventTime(),
                    trade.getActivityTime(),
                    trade.getTradeQual());
            }